blob: 3759c9c9dda3c27ebaddffb860b69522d57048d8 [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
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400628LDFLAGS_SHLIB
629CFLAGS_STLIB
630CFLAGS_SHLIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100631BUILD_LDFLAGS
632BUILD_CFLAGS
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -0400633MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400634INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100635DO_TEST_SUITE
636ET_DIR
637SS_DIR
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400638LDFLAGS_STATIC
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100639root_sysconfdir
640root_libdir
641root_sbindir
642root_bindir
643root_prefix
644UNIX_CMT
645CYGWIN_CMT
646LINUX_CMT
647UNI_DIFF_OPTS
648SEM_INIT_LIB
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700649FUSE_CMT
650FUSE_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700651MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100652SOCKET_LIB
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400653SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100654SIZEOF_LONG_LONG
655SIZEOF_LONG
656SIZEOF_INT
657SIZEOF_SHORT
658BUILD_CC
659MAKEINFO
660STRIP
661AR
662LDCONFIG
663PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100664AWK
665CHMOD
666RM
667CP
668MV
669LN_S
670LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400671ifNotGNUmake
672ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100673BINARY_TYPE
674POSUB
675LTLIBINTL
676LIBINTL
677INTLLIBS
678INTL_LIBTOOL_SUFFIX_PREFIX
679INTLOBJS
680GENCAT
681INSTOBJEXT
682DATADIRNAME
683CATOBJEXT
684USE_INCLUDED_LIBINTL
685BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400686LTLIBC
687WINDRES
688WOE32
689WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100690HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400691HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100692HAVE_SNPRINTF
693HAVE_ASPRINTF
694HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400695INTL_DEFAULT_VERBOSITY
696INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100697GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400698INTLBISON
699LTLIBICONV
700LIBICONV
701LTLIBMULTITHREAD
702LIBMULTITHREAD
703LTLIBTHREAD
704LIBTHREAD
705LIBPTH_PREFIX
706LTLIBPTH
707LIBPTH
708PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400710HAVE_VISIBILITY
711CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100712RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400713GLIBC2
714XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100715MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400716XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400718GMSGFMT_015
719MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720GMSGFMT
721MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400722GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100723USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400724SED
725MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729SET_MAKE
730VERSION
731PACKAGE
732GETTEXT_PACKAGE
733UUIDD_CMT
734E2INITRD_MAN
735E2INITRD_PROG
736FSCK_MAN
737FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500738DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100739RESIZER_CMT
740IMAGER_CMT
741DEBUGFS_CMT
742BLKID_CMT
743DEPPROFILED_LIBBLKID
744PROFILED_LIBBLKID
745DEPSTATIC_LIBBLKID
746STATIC_LIBBLKID
747DEPLIBBLKID
748LIBBLKID
749UUID_CMT
750DEPPROFILED_LIBUUID
751PROFILED_LIBUUID
752DEPSTATIC_LIBUUID
753STATIC_LIBUUID
754DEPLIBUUID
755LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400756PKG_CONFIG_LIBDIR
757PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100758PKG_CONFIG
759TEST_IO_CMT
760PRIVATE_LIBS_CMT
761LDFLAG_DYNAMIC
762PROFILED_LIB_EXT
763STATIC_LIB_EXT
764LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100765PROFILE_CMT
766BSDLIB_CMT
767ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400768Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400769ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400770E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400771LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400772SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400773LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100774MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400775EGREP
776GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100777CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400778RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500779DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100780OBJEXT
781EXEEXT
782ac_ct_CC
783CPPFLAGS
784LDFLAGS
785CFLAGS
786CC
787host_os
788host_vendor
789host_cpu
790host
791build_os
792build_vendor
793build_cpu
794build
795E2FSPROGS_PKGVER
796E2FSPROGS_VERSION
797E2FSPROGS_DAY
798E2FSPROGS_MONTH
799E2FSPROGS_YEAR
800target_alias
801host_alias
802build_alias
803LIBS
804ECHO_T
805ECHO_N
806ECHO_C
807DEFS
808mandir
809localedir
810libdir
811psdir
812pdfdir
813dvidir
814htmldir
815infodir
816docdir
817oldincludedir
818includedir
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400819runstatedir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100820localstatedir
821sharedstatedir
822sysconfdir
823datadir
824datarootdir
825libexecdir
826sbindir
827bindir
828program_transform_name
829prefix
830exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500831PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100832PACKAGE_BUGREPORT
833PACKAGE_STRING
834PACKAGE_VERSION
835PACKAGE_TARNAME
836PACKAGE_NAME
837PATH_SEPARATOR
838SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400839ac_subst_files='MCONFIG
840MAKEFILE_ELF
841MAKEFILE_BSDLIB
842MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400843MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400844ASM_TYPES_HEADER
845PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100846ac_user_opts='
847enable_option_checking
848with_diet_libc
849with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100850with_ccopts
851with_ldopts
852with_root_prefix
853enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400854enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400855enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400856enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400857enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400858enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100859enable_elf_shlibs
860enable_bsd_shlibs
861enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500862enable_gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400863enable_hardening
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100864enable_jbd_debug
865enable_blkid_debug
866enable_testio_debug
867enable_libuuid
868enable_libblkid
Theodore Ts'o3df60142013-06-16 16:14:40 -0400869enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100870enable_debugfs
871enable_imager
872enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500873enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100874enable_fsck
875enable_e2initrd_helper
876enable_tls
877enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000878enable_mmp
Tony Breeds1625bf42012-07-30 14:44:12 -0400879enable_bmap_stats
880enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100881enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400882enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100883with_gnu_ld
884enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400885with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100886with_libiconv_prefix
887with_included_gettext
888with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700889enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400890with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100891'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400892 ac_precious_vars='build_alias
893host_alias
894target_alias
895CC
896CFLAGS
897LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400898LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400899CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400900CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400901PKG_CONFIG
902PKG_CONFIG_PATH
903PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400904
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000905
906# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500907ac_init_help=
908ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100909ac_unrecognized_opts=
910ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000911# The variables have the same names as the options, with
912# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500913cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916no_recursion=
917prefix=NONE
918program_prefix=NONE
919program_suffix=NONE
920program_transform_name=s,x,x,
921silent=
922site=
923srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924verbose=
925x_includes=NONE
926x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500927
928# Installation directory options.
929# These are left unexpanded so users can "make install exec_prefix=/foo"
930# and all the variables that are supposed to be based on exec_prefix
931# by default will actually change.
932# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400933# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000934bindir='${exec_prefix}/bin'
935sbindir='${exec_prefix}/sbin'
936libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937datarootdir='${prefix}/share'
938datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000939sysconfdir='${prefix}/etc'
940sharedstatedir='${prefix}/com'
941localstatedir='${prefix}/var'
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400942runstatedir='${localstatedir}/run'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000943includedir='${prefix}/include'
944oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400945docdir='${datarootdir}/doc/${PACKAGE}'
946infodir='${datarootdir}/info'
947htmldir='${docdir}'
948dvidir='${docdir}'
949pdfdir='${docdir}'
950psdir='${docdir}'
951libdir='${exec_prefix}/lib'
952localedir='${datarootdir}/locale'
953mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000954
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000955ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400956ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000957for ac_option
958do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400961 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000962 ac_prev=
963 continue
964 fi
965
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000967 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
968 *=) ac_optarg= ;;
969 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400970 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
Theodore Ts'oe1052142006-10-21 21:46:47 -0400974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000977
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500981 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000982
983 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500984 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000997
Theodore Ts'oe1052142006-10-21 21:46:47 -0400998 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000999 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001001 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001002
Theodore Ts'oe1052142006-10-21 21:46:47 -04001003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001010 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001011 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001012 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001014 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001015 ac_useropt_orig=$ac_useropt
1016 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1018 *"
1019"enable_$ac_useropt"
1020"*) ;;
1021 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep=', ';;
1023 esac
1024 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001025
1026 -docdir | --docdir | --docdi | --doc | --do)
1027 ac_prev=docdir ;;
1028 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1029 docdir=$ac_optarg ;;
1030
1031 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1032 ac_prev=dvidir ;;
1033 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1034 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001035
1036 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001037 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001038 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001040 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001041 ac_useropt_orig=$ac_useropt
1042 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1044 *"
1045"enable_$ac_useropt"
1046"*) ;;
1047 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep=', ';;
1049 esac
1050 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001051
1052 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1053 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1054 | --exec | --exe | --ex)
1055 ac_prev=exec_prefix ;;
1056 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1057 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1058 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001059 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001060
1061 -gas | --gas | --ga | --g)
1062 # Obsolete; use --with-gas.
1063 with_gas=yes ;;
1064
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001065 -help | --help | --hel | --he | -h)
1066 ac_init_help=long ;;
1067 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1068 ac_init_help=recursive ;;
1069 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1070 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001071
1072 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001073 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001074 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001075 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076
Theodore Ts'oe1052142006-10-21 21:46:47 -04001077 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1078 ac_prev=htmldir ;;
1079 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1080 | --ht=*)
1081 htmldir=$ac_optarg ;;
1082
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001083 -includedir | --includedir | --includedi | --included | --include \
1084 | --includ | --inclu | --incl | --inc)
1085 ac_prev=includedir ;;
1086 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1087 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001088 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001089
1090 -infodir | --infodir | --infodi | --infod | --info | --inf)
1091 ac_prev=infodir ;;
1092 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001093 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001094
1095 -libdir | --libdir | --libdi | --libd)
1096 ac_prev=libdir ;;
1097 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099
1100 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1101 | --libexe | --libex | --libe)
1102 ac_prev=libexecdir ;;
1103 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1104 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001105 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001106
Theodore Ts'oe1052142006-10-21 21:46:47 -04001107 -localedir | --localedir | --localedi | --localed | --locale)
1108 ac_prev=localedir ;;
1109 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1110 localedir=$ac_optarg ;;
1111
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001112 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001113 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001114 ac_prev=localstatedir ;;
1115 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001116 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001117 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001118
1119 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1120 ac_prev=mandir ;;
1121 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001123
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001124 -nfp | --nfp | --nf)
1125 # Obsolete; use --without-fp.
1126 with_fp=no ;;
1127
1128 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001129 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001130 no_create=yes ;;
1131
1132 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1133 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1134 no_recursion=yes ;;
1135
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001136 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1137 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1138 | --oldin | --oldi | --old | --ol | --o)
1139 ac_prev=oldincludedir ;;
1140 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1141 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1142 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001143 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001144
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001145 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1146 ac_prev=prefix ;;
1147 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001148 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149
1150 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1151 | --program-pre | --program-pr | --program-p)
1152 ac_prev=program_prefix ;;
1153 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1154 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001155 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001156
1157 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1158 | --program-suf | --program-su | --program-s)
1159 ac_prev=program_suffix ;;
1160 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1161 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001162 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001163
1164 -program-transform-name | --program-transform-name \
1165 | --program-transform-nam | --program-transform-na \
1166 | --program-transform-n | --program-transform- \
1167 | --program-transform | --program-transfor \
1168 | --program-transfo | --program-transf \
1169 | --program-trans | --program-tran \
1170 | --progr-tra | --program-tr | --program-t)
1171 ac_prev=program_transform_name ;;
1172 -program-transform-name=* | --program-transform-name=* \
1173 | --program-transform-nam=* | --program-transform-na=* \
1174 | --program-transform-n=* | --program-transform-=* \
1175 | --program-transform=* | --program-transfor=* \
1176 | --program-transfo=* | --program-transf=* \
1177 | --program-trans=* | --program-tran=* \
1178 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001179 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001180
Theodore Ts'oe1052142006-10-21 21:46:47 -04001181 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1182 ac_prev=pdfdir ;;
1183 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1184 pdfdir=$ac_optarg ;;
1185
1186 -psdir | --psdir | --psdi | --psd | --ps)
1187 ac_prev=psdir ;;
1188 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1189 psdir=$ac_optarg ;;
1190
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001191 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1192 | -silent | --silent | --silen | --sile | --sil)
1193 silent=yes ;;
1194
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001195 -runstatedir | --runstatedir | --runstatedi | --runstated \
1196 | --runstate | --runstat | --runsta | --runst | --runs \
1197 | --run | --ru | --r)
1198 ac_prev=runstatedir ;;
1199 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1200 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1201 | --run=* | --ru=* | --r=*)
1202 runstatedir=$ac_optarg ;;
1203
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001204 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1205 ac_prev=sbindir ;;
1206 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1207 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001208 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001209
1210 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1211 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1212 | --sharedst | --shareds | --shared | --share | --shar \
1213 | --sha | --sh)
1214 ac_prev=sharedstatedir ;;
1215 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1216 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1217 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1218 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001219 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001220
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001221 -site | --site | --sit)
1222 ac_prev=site ;;
1223 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001224 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001225
1226 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1227 ac_prev=srcdir ;;
1228 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001230
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001231 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1232 | --syscon | --sysco | --sysc | --sys | --sy)
1233 ac_prev=sysconfdir ;;
1234 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1235 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001236 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001237
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001238 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001240 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001241 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001242
1243 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1244 verbose=yes ;;
1245
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001246 -version | --version | --versio | --versi | --vers | -V)
1247 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001248
1249 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001250 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001251 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001252 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001253 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001254 ac_useropt_orig=$ac_useropt
1255 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1256 case $ac_user_opts in
1257 *"
1258"with_$ac_useropt"
1259"*) ;;
1260 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1261 ac_unrecognized_sep=', ';;
1262 esac
1263 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001264
1265 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001266 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001267 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001268 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001269 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001270 ac_useropt_orig=$ac_useropt
1271 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1272 case $ac_user_opts in
1273 *"
1274"with_$ac_useropt"
1275"*) ;;
1276 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1277 ac_unrecognized_sep=', ';;
1278 esac
1279 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001280
1281 --x)
1282 # Obsolete; use --with-x.
1283 with_x=yes ;;
1284
1285 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1286 | --x-incl | --x-inc | --x-in | --x-i)
1287 ac_prev=x_includes ;;
1288 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1289 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001290 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001291
1292 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1293 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1294 ac_prev=x_libraries ;;
1295 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1296 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001297 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001298
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001299 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1300Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001301 ;;
1302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001303 *=*)
1304 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1305 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001306 case $ac_envvar in #(
1307 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001308 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001309 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001310 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001311 export $ac_envvar ;;
1312
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001313 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001314 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001315 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001316 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001317 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001318 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001319 ;;
1320
1321 esac
1322done
1323
1324if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001325 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001326 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001327fi
1328
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001329if test -n "$ac_unrecognized_opts"; then
1330 case $enable_option_checking in
1331 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001332 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001333 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1334 esac
1335fi
1336
1337# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001338for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1339 datadir sysconfdir sharedstatedir localstatedir includedir \
1340 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001341 libdir localedir mandir runstatedir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001342do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001344 # Remove trailing slashes.
1345 case $ac_val in
1346 */ )
1347 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1348 eval $ac_var=\$ac_val;;
1349 esac
1350 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001351 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001352 [\\/$]* | ?:[\\/]* ) continue;;
1353 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001354 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001355 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001356done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001358# There might be people who depend on the old broken behavior: `$host'
1359# used to hold the argument of --host etc.
1360# FIXME: To remove some day.
1361build=$build_alias
1362host=$host_alias
1363target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001364
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001365# FIXME: To remove some day.
1366if test "x$host_alias" != x; then
1367 if test "x$build_alias" = x; then
1368 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001369 elif test "x$build_alias" != "x$host_alias"; then
1370 cross_compiling=yes
1371 fi
1372fi
1373
1374ac_tool_prefix=
1375test -n "$host_alias" && ac_tool_prefix=$host_alias-
1376
1377test "$silent" = yes && exec 6>/dev/null
1378
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001379
Theodore Ts'oe1052142006-10-21 21:46:47 -04001380ac_pwd=`pwd` && test -n "$ac_pwd" &&
1381ac_ls_di=`ls -di .` &&
1382ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001383 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001384test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001385 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001386
1387
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001388# Find the source files, if location was not specified.
1389if test -z "$srcdir"; then
1390 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001391 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001392 ac_confdir=`$as_dirname -- "$as_myself" ||
1393$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1394 X"$as_myself" : 'X\(//\)[^/]' \| \
1395 X"$as_myself" : 'X\(//\)$' \| \
1396 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1397$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1399 s//\1/
1400 q
1401 }
1402 /^X\(\/\/\)[^/].*/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)$/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\).*/{
1411 s//\1/
1412 q
1413 }
1414 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001415 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001416 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001417 srcdir=..
1418 fi
1419else
1420 ac_srcdir_defaulted=no
1421fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001422if test ! -r "$srcdir/$ac_unique_file"; then
1423 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001424 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1427ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001428 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001429 pwd)`
1430# When building in place, set srcdir=.
1431if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 srcdir=.
1433fi
1434# Remove unnecessary trailing slashes from srcdir.
1435# Double slashes in file names in object file debugging info
1436# mess up M-x gdb in Emacs.
1437case $srcdir in
1438*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1439esac
1440for ac_var in $ac_precious_vars; do
1441 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_${ac_var}_value=\$${ac_var}
1443 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001447#
1448# Report the --help message.
1449#
1450if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1453 cat <<_ACEOF
1454\`configure' configures this package to adapt to many kinds of systems.
1455
1456Usage: $0 [OPTION]... [VAR=VALUE]...
1457
1458To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459VAR=VALUE. See below for descriptions of some of the useful variables.
1460
1461Defaults for the options are specified in brackets.
1462
1463Configuration:
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001468 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001476 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001478 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479
1480By default, \`make install' will install all the files in
1481\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483for instance \`--prefix=\$HOME'.
1484
1485For better control, use the options below.
1486
1487Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001494 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001508_ACEOF
1509
1510 cat <<\_ACEOF
1511
1512System types:
1513 --build=BUILD configure for building on BUILD [guessed]
1514 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1515_ACEOF
1516fi
1517
1518if test -n "$ac_init_help"; then
1519
1520 cat <<\_ACEOF
1521
1522Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001523 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001524 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1525 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001526 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001527 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001528 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001529
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001530 --enable-symlink-build use symlinks while building instead of hard links
1531 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001532 --enable-elf-shlibs select ELF shared libraries
1533 --enable-bsd-shlibs select BSD shared libraries
1534 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001535 --enable-gcov build for coverage testing using gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04001536 --enable-hardening build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 --enable-jbd-debug enable journal debugging
1538 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001539 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001540 --enable-libuuid build and use private uuid library
1541 --enable-libblkid build and use private blkid library
Theodore Ts'o3df60142013-06-16 16:14:40 -04001542 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001543 --disable-debugfs disable support of debugfs program
1544 --disable-imager disable support of e2image program
1545 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001546 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547 --enable-fsck build fsck wrapper program
1548 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001549 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001550 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001551 --disable-mmp disable support mmp, Multi Mount Protection
Tony Breeds1625bf42012-07-30 14:44:12 -04001552 --disable-bmap-stats disable collection of bitmap stats.
1553 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001554 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001555 --enable-threads={posix|solaris|pth|windows}
1556 specify multithreading API
1557 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001559 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001560
1561Optional Packages:
1562 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1563 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001564 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001565 --with-cc no longer supported, use CC= instead
1566 --with-ccopts no longer supported, use CFLAGS= instead
1567 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001568 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001569 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1570 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1571 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1573 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1574 --with-included-gettext use the GNU gettext library included here
1575 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1576 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001577 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001578
1579Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001584 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001585 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001586 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001587 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001588 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001589 PKG_CONFIG_PATH
1590 directories to add to pkg-config's search path
1591 PKG_CONFIG_LIBDIR
1592 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001593
1594Use these variables to override the choices made by `configure' or to help
1595it to find libraries and programs with nonstandard names/locations.
1596
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001597Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001598_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001599ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001600fi
1601
1602if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1607 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001608 ac_builddir=.
1609
Theodore Ts'oe1052142006-10-21 21:46:47 -04001610case "$ac_dir" in
1611.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1612*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001614 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1619 esac ;;
1620esac
1621ac_abs_top_builddir=$ac_pwd
1622ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623# for backward compatibility:
1624ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001625
1626case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001627 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001628 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1635 *) # Relative name.
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001639esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001640ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001641
Theodore Ts'oe1052142006-10-21 21:46:47 -04001642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1645 echo &&
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1648 echo &&
1649 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001650 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001652 fi || ac_status=$?
1653 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654 done
1655fi
1656
Theodore Ts'oe1052142006-10-21 21:46:47 -04001657test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001658if $ac_init_version; then
1659 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001660configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001661generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001662
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001663Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001664This configure script is free software; the Free Software Foundation
1665gives unlimited permission to copy, distribute and modify it.
1666_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001667 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001668fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001669
1670## ------------------------ ##
1671## Autoconf initialization. ##
1672## ------------------------ ##
1673
1674# ac_fn_c_try_compile LINENO
1675# --------------------------
1676# Try to compile conftest.$ac_ext, and return whether this succeeded.
1677ac_fn_c_try_compile ()
1678{
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 rm -f conftest.$ac_objext
1681 if { { ac_try="$ac_compile"
1682case "(($ac_try" in
1683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1684 *) ac_try_echo=$ac_try;;
1685esac
1686eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1687$as_echo "$ac_try_echo"; } >&5
1688 (eval "$ac_compile") 2>conftest.err
1689 ac_status=$?
1690 if test -s conftest.err; then
1691 grep -v '^ *+' conftest.err >conftest.er1
1692 cat conftest.er1 >&5
1693 mv -f conftest.er1 conftest.err
1694 fi
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && {
1697 test -z "$ac_c_werror_flag" ||
1698 test ! -s conftest.err
1699 } && test -s conftest.$ac_objext; then :
1700 ac_retval=0
1701else
1702 $as_echo "$as_me: failed program was:" >&5
1703sed 's/^/| /' conftest.$ac_ext >&5
1704
1705 ac_retval=1
1706fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001708 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001709
1710} # ac_fn_c_try_compile
1711
1712# ac_fn_c_try_link LINENO
1713# -----------------------
1714# Try to link conftest.$ac_ext, and return whether this succeeded.
1715ac_fn_c_try_link ()
1716{
1717 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1718 rm -f conftest.$ac_objext conftest$ac_exeext
1719 if { { ac_try="$ac_link"
1720case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_link") 2>conftest.err
1727 ac_status=$?
1728 if test -s conftest.err; then
1729 grep -v '^ *+' conftest.err >conftest.er1
1730 cat conftest.er1 >&5
1731 mv -f conftest.er1 conftest.err
1732 fi
1733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1734 test $ac_status = 0; } && {
1735 test -z "$ac_c_werror_flag" ||
1736 test ! -s conftest.err
1737 } && test -s conftest$ac_exeext && {
1738 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001739 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001740 }; then :
1741 ac_retval=0
1742else
1743 $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747fi
1748 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1749 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1750 # interfere with the next link command; also delete a directory that is
1751 # left behind by Apple's compiler. We do this before executing the actions.
1752 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001753 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001754 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001755
1756} # ac_fn_c_try_link
1757
1758# ac_fn_c_try_cpp LINENO
1759# ----------------------
1760# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1761ac_fn_c_try_cpp ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_cpp conftest.$ac_ext"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1777 fi
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001779 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 }; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
1787
1788 ac_retval=1
1789fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001790 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001791 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001792
1793} # ac_fn_c_try_cpp
1794
1795# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1796# -------------------------------------------------------
1797# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1798# the include files in INCLUDES and setting the cache variable VAR
1799# accordingly.
1800ac_fn_c_check_header_mongrel ()
1801{
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001803 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1805$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001806if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001807 $as_echo_n "(cached) " >&6
1808fi
1809eval ac_res=\$$3
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1811$as_echo "$ac_res" >&6; }
1812else
1813 # Is the header compilable?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1815$as_echo_n "checking $2 usability... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818$4
1819#include <$2>
1820_ACEOF
1821if ac_fn_c_try_compile "$LINENO"; then :
1822 ac_header_compiler=yes
1823else
1824 ac_header_compiler=no
1825fi
1826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1828$as_echo "$ac_header_compiler" >&6; }
1829
1830# Is the header present?
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1832$as_echo_n "checking $2 presence... " >&6; }
1833cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1834/* end confdefs.h. */
1835#include <$2>
1836_ACEOF
1837if ac_fn_c_try_cpp "$LINENO"; then :
1838 ac_header_preproc=yes
1839else
1840 ac_header_preproc=no
1841fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001842rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1844$as_echo "$ac_header_preproc" >&6; }
1845
1846# So? What about this header?
1847case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1848 yes:no: )
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1850$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1852$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1853 ;;
1854 no:yes:* )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1856$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1858$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1860$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1862$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1865 ;;
1866esac
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001869if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001870 $as_echo_n "(cached) " >&6
1871else
1872 eval "$3=\$ac_header_compiler"
1873fi
1874eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876$as_echo "$ac_res" >&6; }
1877fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001878 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001879
1880} # ac_fn_c_check_header_mongrel
1881
Theodore Ts'o93613952014-07-03 23:44:13 -04001882# ac_fn_c_try_run LINENO
1883# ----------------------
1884# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1885# that executables *can* be run.
1886ac_fn_c_try_run ()
1887{
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 if { { ac_try="$ac_link"
1890case "(($ac_try" in
1891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1892 *) ac_try_echo=$ac_try;;
1893esac
1894eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1895$as_echo "$ac_try_echo"; } >&5
1896 (eval "$ac_link") 2>&5
1897 ac_status=$?
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1900 { { case "(($ac_try" in
1901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1902 *) ac_try_echo=$ac_try;;
1903esac
1904eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1905$as_echo "$ac_try_echo"; } >&5
1906 (eval "$ac_try") 2>&5
1907 ac_status=$?
1908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1909 test $ac_status = 0; }; }; then :
1910 ac_retval=0
1911else
1912 $as_echo "$as_me: program exited with status $ac_status" >&5
1913 $as_echo "$as_me: failed program was:" >&5
1914sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_retval=$ac_status
1917fi
1918 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1920 as_fn_set_status $ac_retval
1921
1922} # ac_fn_c_try_run
1923
1924# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1925# -------------------------------------------------------
1926# Tests whether HEADER exists and can be compiled using the include files in
1927# INCLUDES, setting the cache variable VAR accordingly.
1928ac_fn_c_check_header_compile ()
1929{
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932$as_echo_n "checking for $2... " >&6; }
1933if eval \${$3+:} false; then :
1934 $as_echo_n "(cached) " >&6
1935else
1936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937/* end confdefs.h. */
1938$4
1939#include <$2>
1940_ACEOF
1941if ac_fn_c_try_compile "$LINENO"; then :
1942 eval "$3=yes"
1943else
1944 eval "$3=no"
1945fi
1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947fi
1948eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950$as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952
1953} # ac_fn_c_check_header_compile
1954
1955# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1956# -------------------------------------------
1957# Tests whether TYPE exists after having included INCLUDES, setting cache
1958# variable VAR accordingly.
1959ac_fn_c_check_type ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963$as_echo_n "checking for $2... " >&6; }
1964if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966else
1967 eval "$3=no"
1968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1969/* end confdefs.h. */
1970$4
1971int
1972main ()
1973{
1974if (sizeof ($2))
1975 return 0;
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then :
1981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1982/* end confdefs.h. */
1983$4
1984int
1985main ()
1986{
1987if (sizeof (($2)))
1988 return 0;
1989 ;
1990 return 0;
1991}
1992_ACEOF
1993if ac_fn_c_try_compile "$LINENO"; then :
1994
1995else
1996 eval "$3=yes"
1997fi
1998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1999fi
2000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2001fi
2002eval ac_res=\$$3
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2004$as_echo "$ac_res" >&6; }
2005 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2006
2007} # ac_fn_c_check_type
2008
2009# ac_fn_c_check_func LINENO FUNC VAR
2010# ----------------------------------
2011# Tests whether FUNC exists, setting the cache variable VAR accordingly
2012ac_fn_c_check_func ()
2013{
2014 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2016$as_echo_n "checking for $2... " >&6; }
2017if eval \${$3+:} false; then :
2018 $as_echo_n "(cached) " >&6
2019else
2020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2021/* end confdefs.h. */
2022/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2024#define $2 innocuous_$2
2025
2026/* System header to define __stub macros and hopefully few prototypes,
2027 which can conflict with char $2 (); below.
2028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2029 <limits.h> exists even on freestanding compilers. */
2030
2031#ifdef __STDC__
2032# include <limits.h>
2033#else
2034# include <assert.h>
2035#endif
2036
2037#undef $2
2038
2039/* Override any GCC internal prototype to avoid an error.
2040 Use char because int might match the return type of a GCC
2041 builtin and then its argument prototype would still apply. */
2042#ifdef __cplusplus
2043extern "C"
2044#endif
2045char $2 ();
2046/* The GNU C library defines this for functions which it implements
2047 to always fail with ENOSYS. Some functions are actually named
2048 something starting with __ and the normal name is an alias. */
2049#if defined __stub_$2 || defined __stub___$2
2050choke me
2051#endif
2052
2053int
2054main ()
2055{
2056return $2 ();
2057 ;
2058 return 0;
2059}
2060_ACEOF
2061if ac_fn_c_try_link "$LINENO"; then :
2062 eval "$3=yes"
2063else
2064 eval "$3=no"
2065fi
2066rm -f core conftest.err conftest.$ac_objext \
2067 conftest$ac_exeext conftest.$ac_ext
2068fi
2069eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071$as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073
2074} # ac_fn_c_check_func
2075
2076# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2077# ---------------------------------------------
2078# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2079# accordingly.
2080ac_fn_c_check_decl ()
2081{
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 as_decl_name=`echo $2|sed 's/ *(.*//'`
2084 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2086$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2087if eval \${$3+:} false; then :
2088 $as_echo_n "(cached) " >&6
2089else
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091/* end confdefs.h. */
2092$4
2093int
2094main ()
2095{
2096#ifndef $as_decl_name
2097#ifdef __cplusplus
2098 (void) $as_decl_use;
2099#else
2100 (void) $as_decl_name;
2101#endif
2102#endif
2103
2104 ;
2105 return 0;
2106}
2107_ACEOF
2108if ac_fn_c_try_compile "$LINENO"; then :
2109 eval "$3=yes"
2110else
2111 eval "$3=no"
2112fi
2113rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2114fi
2115eval ac_res=\$$3
2116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2117$as_echo "$ac_res" >&6; }
2118 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2119
2120} # ac_fn_c_check_decl
2121
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002122# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2123# --------------------------------------------
2124# Tries to find the compile-time value of EXPR in a program that includes
2125# INCLUDES, setting VAR accordingly. Returns whether the value could be
2126# computed
2127ac_fn_c_compute_int ()
2128{
2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2130 if test "$cross_compiling" = yes; then
2131 # Depending upon the size, compute the lo and hi bounds.
2132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002139test_array [0] = 0;
2140return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002141
2142 ;
2143 return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_lo=0 ac_mid=0
2148 while :; do
2149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2150/* end confdefs.h. */
2151$4
2152int
2153main ()
2154{
2155static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002156test_array [0] = 0;
2157return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002158
2159 ;
2160 return 0;
2161}
2162_ACEOF
2163if ac_fn_c_try_compile "$LINENO"; then :
2164 ac_hi=$ac_mid; break
2165else
2166 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2167 if test $ac_lo -le $ac_mid; then
2168 ac_lo= ac_hi=
2169 break
2170 fi
2171 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2172fi
2173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2174 done
2175else
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$4
2179int
2180main ()
2181{
2182static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002183test_array [0] = 0;
2184return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002185
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_hi=-1 ac_mid=-1
2192 while :; do
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195$4
2196int
2197main ()
2198{
2199static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002200test_array [0] = 0;
2201return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002202
2203 ;
2204 return 0;
2205}
2206_ACEOF
2207if ac_fn_c_try_compile "$LINENO"; then :
2208 ac_lo=$ac_mid; break
2209else
2210 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2211 if test $ac_mid -le $ac_hi; then
2212 ac_lo= ac_hi=
2213 break
2214 fi
2215 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218 done
2219else
2220 ac_lo= ac_hi=
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225# Binary search between lo and hi bounds.
2226while test "x$ac_lo" != "x$ac_hi"; do
2227 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h. */
2230$4
2231int
2232main ()
2233{
2234static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002235test_array [0] = 0;
2236return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002237
2238 ;
2239 return 0;
2240}
2241_ACEOF
2242if ac_fn_c_try_compile "$LINENO"; then :
2243 ac_hi=$ac_mid
2244else
2245 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2246fi
2247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2248done
2249case $ac_lo in #((
2250?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2251'') ac_retval=1 ;;
2252esac
2253 else
2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2255/* end confdefs.h. */
2256$4
2257static long int longval () { return $2; }
2258static unsigned long int ulongval () { return $2; }
2259#include <stdio.h>
2260#include <stdlib.h>
2261int
2262main ()
2263{
2264
2265 FILE *f = fopen ("conftest.val", "w");
2266 if (! f)
2267 return 1;
2268 if (($2) < 0)
2269 {
2270 long int i = longval ();
2271 if (i != ($2))
2272 return 1;
2273 fprintf (f, "%ld", i);
2274 }
2275 else
2276 {
2277 unsigned long int i = ulongval ();
2278 if (i != ($2))
2279 return 1;
2280 fprintf (f, "%lu", i);
2281 }
2282 /* Do not output a trailing newline, as this causes \r\n confusion
2283 on some platforms. */
2284 return ferror (f) || fclose (f) != 0;
2285
2286 ;
2287 return 0;
2288}
2289_ACEOF
2290if ac_fn_c_try_run "$LINENO"; then :
2291 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2292else
2293 ac_retval=1
2294fi
2295rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2296 conftest.$ac_objext conftest.beam conftest.$ac_ext
2297rm -f conftest.val
2298
2299 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002301 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002302
2303} # ac_fn_c_compute_int
2304
2305# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2306# ----------------------------------------------------
2307# Tries to find if the field MEMBER exists in type AGGR, after including
2308# INCLUDES, setting cache variable VAR accordingly.
2309ac_fn_c_check_member ()
2310{
2311 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2313$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002314if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002315 $as_echo_n "(cached) " >&6
2316else
2317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2318/* end confdefs.h. */
2319$5
2320int
2321main ()
2322{
2323static $2 ac_aggr;
2324if (ac_aggr.$3)
2325return 0;
2326 ;
2327 return 0;
2328}
2329_ACEOF
2330if ac_fn_c_try_compile "$LINENO"; then :
2331 eval "$4=yes"
2332else
2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2334/* end confdefs.h. */
2335$5
2336int
2337main ()
2338{
2339static $2 ac_aggr;
2340if (sizeof ac_aggr.$3)
2341return 0;
2342 ;
2343 return 0;
2344}
2345_ACEOF
2346if ac_fn_c_try_compile "$LINENO"; then :
2347 eval "$4=yes"
2348else
2349 eval "$4=no"
2350fi
2351rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2352fi
2353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2354fi
2355eval ac_res=\$$4
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2357$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002358 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002359
2360} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002361cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002362This file contains any messages produced by compilers while
2363running configure, to aid debugging if configure makes a mistake.
2364
2365It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002366generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002367
2368 $ $0 $@
2369
2370_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002371exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002372{
2373cat <<_ASUNAME
2374## --------- ##
2375## Platform. ##
2376## --------- ##
2377
2378hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2379uname -m = `(uname -m) 2>/dev/null || echo unknown`
2380uname -r = `(uname -r) 2>/dev/null || echo unknown`
2381uname -s = `(uname -s) 2>/dev/null || echo unknown`
2382uname -v = `(uname -v) 2>/dev/null || echo unknown`
2383
2384/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2385/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2386
2387/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2388/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2389/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002390/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002391/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2392/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2393/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2394
2395_ASUNAME
2396
2397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2398for as_dir in $PATH
2399do
2400 IFS=$as_save_IFS
2401 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002402 $as_echo "PATH: $as_dir"
2403 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002404IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002405
2406} >&5
2407
2408cat >&5 <<_ACEOF
2409
2410
2411## ----------- ##
2412## Core tests. ##
2413## ----------- ##
2414
2415_ACEOF
2416
2417
2418# Keep a trace of the command line.
2419# Strip out --no-create and --no-recursion so they do not pile up.
2420# Strip out --silent because we don't want to record it for future runs.
2421# Also quote any args containing shell meta-characters.
2422# Make two passes to allow for proper duplicate-argument suppression.
2423ac_configure_args=
2424ac_configure_args0=
2425ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002426ac_must_keep_next=false
2427for ac_pass in 1 2
2428do
2429 for ac_arg
2430 do
2431 case $ac_arg in
2432 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2433 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2434 | -silent | --silent | --silen | --sile | --sil)
2435 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002436 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002437 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002438 esac
2439 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002440 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002441 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002442 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443 if test $ac_must_keep_next = true; then
2444 ac_must_keep_next=false # Got value, back to normal.
2445 else
2446 case $ac_arg in
2447 *=* | --config-cache | -C | -disable-* | --disable-* \
2448 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2449 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2450 | -with-* | --with-* | -without-* | --without-* | --x)
2451 case "$ac_configure_args0 " in
2452 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2453 esac
2454 ;;
2455 -* ) ac_must_keep_next=true ;;
2456 esac
2457 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002458 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002459 ;;
2460 esac
2461 done
2462done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002463{ ac_configure_args0=; unset ac_configure_args0;}
2464{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002465
2466# When interrupted or exit'd, cleanup temporary files, and complete
2467# config.log. We remove comments because anyway the quotes in there
2468# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002469# WARNING: Use '\'' to represent an apostrophe within the trap.
2470# 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 -05002471trap 'exit_status=$?
2472 # Save into config.log some information that might help in debugging.
2473 {
2474 echo
2475
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002476 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002477## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002478## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002479 echo
2480 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002481(
2482 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2483 eval ac_val=\$$ac_var
2484 case $ac_val in #(
2485 *${as_nl}*)
2486 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002487 *_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 +01002488$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002489 esac
2490 case $ac_var in #(
2491 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002492 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002493 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494 esac ;;
2495 esac
2496 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002497 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002498 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2499 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002500 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501 "s/'\''/'\''\\\\'\'''\''/g;
2502 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2503 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507 esac |
2508 sort
2509)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 echo
2511
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002512 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002514## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515 echo
2516 for ac_var in $ac_subst_vars
2517 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002518 eval ac_val=\$$ac_var
2519 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002520 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002521 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002522 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002523 done | sort
2524 echo
2525
2526 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002527 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002528## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002529## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002530 echo
2531 for ac_var in $ac_subst_files
2532 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002533 eval ac_val=\$$ac_var
2534 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002536 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002537 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002538 done | sort
2539 echo
2540 fi
2541
2542 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002543 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002544## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002545## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002546 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002547 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548 echo
2549 fi
2550 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002551 $as_echo "$as_me: caught signal $ac_signal"
2552 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002554 rm -f core *.core core.conftest.* &&
2555 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002556 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002557' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002559 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002560done
2561ac_signal=0
2562
2563# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002564rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002566$as_echo "/* confdefs.h */" > confdefs.h
2567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002568# Predefined preprocessor variables.
2569
2570cat >>confdefs.h <<_ACEOF
2571#define PACKAGE_NAME "$PACKAGE_NAME"
2572_ACEOF
2573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2576_ACEOF
2577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_VERSION "$PACKAGE_VERSION"
2580_ACEOF
2581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_STRING "$PACKAGE_STRING"
2584_ACEOF
2585
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2588_ACEOF
2589
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_URL "$PACKAGE_URL"
2592_ACEOF
2593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002594
2595# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002596# Prefer an explicitly selected file to automatically selected ones.
2597ac_site_file1=NONE
2598ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002599if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002600 # We do not want a PATH search for config.site.
2601 case $CONFIG_SITE in #((
2602 -*) ac_site_file1=./$CONFIG_SITE;;
2603 */*) ac_site_file1=$CONFIG_SITE;;
2604 *) ac_site_file1=./$CONFIG_SITE;;
2605 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002606elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002607 ac_site_file1=$prefix/share/config.site
2608 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002609else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002610 ac_site_file1=$ac_default_prefix/share/config.site
2611 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002612fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002613for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002614do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002615 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002616 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002617 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002618$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002619 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002620 . "$ac_site_file" \
2621 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2622$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2623as_fn_error $? "failed to load site script $ac_site_file
2624See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002625 fi
2626done
2627
2628if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002629 # Some versions of bash will fail to source /dev/null (special files
2630 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2631 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002633$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002634 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002635 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2636 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002637 esac
2638 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002639else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002640 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002641$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002642 >$cache_file
2643fi
2644
Theodore Ts'o93613952014-07-03 23:44:13 -04002645gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002646as_fn_append ac_header_list " stdlib.h"
2647as_fn_append ac_header_list " unistd.h"
2648as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002649as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002650# Check that the precious variables saved in the cache have kept the same
2651# value.
2652ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002653for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002654 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2655 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002656 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2657 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 case $ac_old_set,$ac_new_set in
2659 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002660 { $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 +01002661$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 -05002662 ac_cache_corrupted=: ;;
2663 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002664 { $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 +01002665$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002666 ac_cache_corrupted=: ;;
2667 ,);;
2668 *)
2669 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002670 # differences in whitespace do not lead to failure.
2671 ac_old_val_w=`echo x $ac_old_val`
2672 ac_new_val_w=`echo x $ac_new_val`
2673 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002674 { $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 +01002675$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2676 ac_cache_corrupted=:
2677 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002678 { $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 +01002679$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2680 eval $ac_var=\$ac_old_val
2681 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002682 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002683$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002684 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002685$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002686 fi;;
2687 esac
2688 # Pass precious variables to config.status.
2689 if test "$ac_new_set" = set; then
2690 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002691 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002692 *) ac_arg=$ac_var=$ac_new_val ;;
2693 esac
2694 case " $ac_configure_args " in
2695 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002696 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002697 esac
2698 fi
2699done
2700if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002701 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002703 { $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 +01002704$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002705 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002706fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002707## -------------------- ##
2708## Main body of script. ##
2709## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002710
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002711ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002712ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002713ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2714ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2715ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002716
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002717
2718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002719ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002720for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002721 if test -f "$ac_dir/install-sh"; then
2722 ac_aux_dir=$ac_dir
2723 ac_install_sh="$ac_aux_dir/install-sh -c"
2724 break
2725 elif test -f "$ac_dir/install.sh"; then
2726 ac_aux_dir=$ac_dir
2727 ac_install_sh="$ac_aux_dir/install.sh -c"
2728 break
2729 elif test -f "$ac_dir/shtool"; then
2730 ac_aux_dir=$ac_dir
2731 ac_install_sh="$ac_aux_dir/shtool install -c"
2732 break
2733 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002734done
2735if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002736 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 +00002737fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002738
2739# These three variables are undocumented and unsupported,
2740# and are intended to be withdrawn in a future Autoconf release.
2741# They can cause serious problems if a builder's source tree is in a directory
2742# whose full name contains unusual characters.
2743ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2744ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2745ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2746
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002747
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002748ac_config_headers="$ac_config_headers lib/config.h"
2749
2750
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002751MCONFIG=./MCONFIG
2752
Theodore Ts'o74becf31997-04-26 14:37:06 +00002753BINARY_TYPE=bin
2754E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2755 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2756DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2757 | tr \" " "`
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002758E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
Theodore Ts'o74becf31997-04-26 14:37:06 +00002759MONTH=`echo $DATE | awk -F- '{print $2}'`
2760YEAR=`echo $DATE | awk -F- '{print $3}'`
2761
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002762if expr $YEAR ">" 1900 > /dev/null ; then
2763 E2FSPROGS_YEAR=$YEAR
2764elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002765 E2FSPROGS_YEAR=19$YEAR
2766else
2767 E2FSPROGS_YEAR=20$YEAR
2768fi
2769
2770case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002771Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2772Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2773Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2774Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2775May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2776Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2777Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2778Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2779Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2780Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2781Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2782Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002783*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002784$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002785esac
2786
Andreas Dilger927566a2006-11-12 19:41:25 -05002787base_ver=`echo $E2FSPROGS_VERSION | \
2788 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002789
2790date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2791
2792case $E2FSPROGS_VERSION in
2793*-WIP|pre-*)
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002794 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
Andreas Dilger927566a2006-11-12 19:41:25 -05002795 ;;
2796*)
2797 E2FSPROGS_PKGVER="$base_ver"
2798 ;;
2799esac
2800
2801unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002802{ $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 +01002803$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002805$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002806
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002807
2808
2809
Andreas Dilger927566a2006-11-12 19:41:25 -05002810
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002811WITH_DIET_LIBC=
2812
2813# Check whether --with-diet-libc was given.
2814if test "${with_diet_libc+set}" = set; then :
2815 withval=$with_diet_libc; CC="diet cc -nostdinc"
2816WITH_DIET_LIBC=yes
2817if test -z "$LIBS"
2818then
2819 LIBS="-lcompat"
2820else
2821 LIBS="$LIBS -lcompat"
2822fi
2823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2824$as_echo "CC=$CC" >&6; }
2825fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002826# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002827$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002828 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002829
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002831$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002832if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002833 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002834else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002835 ac_build_alias=$build_alias
2836test "x$ac_build_alias" = x &&
2837 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2838test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002839 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002840ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002841 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002842
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002843fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002845$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002846case $ac_cv_build in
2847*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002848*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002849esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002850build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002851ac_save_IFS=$IFS; IFS='-'
2852set x $ac_cv_build
2853shift
2854build_cpu=$1
2855build_vendor=$2
2856shift; shift
2857# Remember, the first character of IFS is used to create $*,
2858# except with old shells:
2859build_os=$*
2860IFS=$ac_save_IFS
2861case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002862
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002863
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002865$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002866if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002867 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002868else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002869 if test "x$host_alias" = x; then
2870 ac_cv_host=$ac_cv_build
2871else
2872 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002874fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002875
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002876fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002878$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002879case $ac_cv_host in
2880*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002881*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002882esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002883host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002884ac_save_IFS=$IFS; IFS='-'
2885set x $ac_cv_host
2886shift
2887host_cpu=$1
2888host_vendor=$2
2889shift; shift
2890# Remember, the first character of IFS is used to create $*,
2891# except with old shells:
2892host_os=$*
2893IFS=$ac_save_IFS
2894case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002895
2896
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002897DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002898ac_ext=c
2899ac_cpp='$CPP $CPPFLAGS'
2900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2902ac_compiler_gnu=$ac_cv_c_compiler_gnu
2903if test -n "$ac_tool_prefix"; then
2904 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2905set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002907$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002908if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002909 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002910else
2911 if test -n "$CC"; then
2912 ac_cv_prog_CC="$CC" # Let the user override the test.
2913else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002914as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915for as_dir in $PATH
2916do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002919 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002923 break 2
2924 fi
2925done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002926 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002927IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002928
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002929fi
2930fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002931CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002932if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002934$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002935else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002937$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938fi
2939
Theodore Ts'oe1052142006-10-21 21:46:47 -04002940
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002941fi
2942if test -z "$ac_cv_prog_CC"; then
2943 ac_ct_CC=$CC
2944 # Extract the first word of "gcc", so it can be a program name with args.
2945set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002947$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002948if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002949 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002950else
2951 if test -n "$ac_ct_CC"; then
2952 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2953else
2954as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2955for as_dir in $PATH
2956do
2957 IFS=$as_save_IFS
2958 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002959 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002961 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002963 break 2
2964 fi
2965done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002966 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002967IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968
2969fi
2970fi
2971ac_ct_CC=$ac_cv_prog_ac_ct_CC
2972if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002974$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002975else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002977$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002978fi
2979
Theodore Ts'oe1052142006-10-21 21:46:47 -04002980 if test "x$ac_ct_CC" = x; then
2981 CC=""
2982 else
2983 case $cross_compiling:$ac_tool_warned in
2984yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002985{ $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 +01002986$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002987ac_tool_warned=yes ;;
2988esac
2989 CC=$ac_ct_CC
2990 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002991else
2992 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002993fi
2994
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002995if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002996 if test -n "$ac_tool_prefix"; then
2997 # 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 -05002998set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003000$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003001if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003002 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003003else
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC="$CC" # Let the user override the test.
3006else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3008for as_dir in $PATH
3009do
3010 IFS=$as_save_IFS
3011 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003012 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003014 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003016 break 2
3017 fi
3018done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003019 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003020IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021
3022fi
3023fi
3024CC=$ac_cv_prog_CC
3025if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003027$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003028else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003030$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003031fi
3032
Theodore Ts'oe1052142006-10-21 21:46:47 -04003033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003034 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035fi
3036if test -z "$CC"; then
3037 # Extract the first word of "cc", so it can be a program name with args.
3038set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003040$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003041if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003042 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003043else
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC="$CC" # Let the user override the test.
3046else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003047 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049for as_dir in $PATH
3050do
3051 IFS=$as_save_IFS
3052 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003053 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3056 ac_prog_rejected=yes
3057 continue
3058 fi
3059 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061 break 2
3062 fi
3063done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003064 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003065IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003067if test $ac_prog_rejected = yes; then
3068 # We found a bogon in the path, so make sure we never use it.
3069 set dummy $ac_cv_prog_CC
3070 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003072 # We chose a different compiler from the bogus one.
3073 # However, it has the same basename, so the bogon will be chosen
3074 # first if we set CC to just the basename; use the full file name.
3075 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003076 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003077 fi
3078fi
3079fi
3080fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003081CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003082if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003084$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003085else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003087$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003088fi
3089
Theodore Ts'oe1052142006-10-21 21:46:47 -04003090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003091fi
3092if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003094 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003095 do
3096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003099$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003100if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003101 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003102else
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC="$CC" # Let the user override the test.
3105else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3107for as_dir in $PATH
3108do
3109 IFS=$as_save_IFS
3110 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003111 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115 break 2
3116 fi
3117done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003118 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003119IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003121fi
3122fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003123CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003124if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003126$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003127else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003129$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003130fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003131
Theodore Ts'oe1052142006-10-21 21:46:47 -04003132
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003133 test -n "$CC" && break
3134 done
3135fi
3136if test -z "$CC"; then
3137 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003138 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003139do
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003143$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003144if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003145 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003146else
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3149else
3150as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151for as_dir in $PATH
3152do
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003155 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003157 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003159 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003160 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003161done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003162 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003163IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003164
3165fi
3166fi
3167ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003170$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003171else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003173$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003174fi
3175
Theodore Ts'oe1052142006-10-21 21:46:47 -04003176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003177 test -n "$ac_ct_CC" && break
3178done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003179
Theodore Ts'oe1052142006-10-21 21:46:47 -04003180 if test "x$ac_ct_CC" = x; then
3181 CC=""
3182 else
3183 case $cross_compiling:$ac_tool_warned in
3184yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003185{ $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 +01003186$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003187ac_tool_warned=yes ;;
3188esac
3189 CC=$ac_ct_CC
3190 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003191fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003193fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003194
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003195
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003196test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003197$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003198as_fn_error $? "no acceptable C compiler found in \$PATH
3199See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003200
3201# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003202$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003203set X $ac_compile
3204ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003205for ac_option in --version -v -V -qversion; do
3206 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003207case "(($ac_try" in
3208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3209 *) ac_try_echo=$ac_try;;
3210esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003211eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3212$as_echo "$ac_try_echo"; } >&5
3213 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003214 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003215 if test -s conftest.err; then
3216 sed '10a\
3217... rest of stderr output deleted ...
3218 10q' conftest.err >conftest.er1
3219 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003220 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003221 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3223 test $ac_status = 0; }
3224done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003225
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003227/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003228
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003229int
3230main ()
3231{
3232
3233 ;
3234 return 0;
3235}
3236_ACEOF
3237ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003238ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003239# Try to create an executable without -o first, disregard a.out.
3240# It will help us diagnose broken compilers, and finding out an intuition
3241# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3243$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003244ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3245
3246# The possible output files:
3247ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3248
Theodore Ts'oe1052142006-10-21 21:46:47 -04003249ac_rmfiles=
3250for ac_file in $ac_files
3251do
3252 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003254 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3255 esac
3256done
3257rm -f $ac_rmfiles
3258
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003259if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260case "(($ac_try" in
3261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3263esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3265$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003266 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003267 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3269 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003270 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3271# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3272# in a Makefile. We should not override ac_cv_exeext if it was cached,
3273# so that the user can short-circuit this test for compilers unknown to
3274# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003275for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003276do
3277 test -f "$ac_file" || continue
3278 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003279 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003280 ;;
3281 [ab].out )
3282 # We found the default executable, but exeext='' is most
3283 # certainly right.
3284 break;;
3285 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003286 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003287 then :; else
3288 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3289 fi
3290 # We set ac_cv_exeext here because the later test for it is not
3291 # safe: cross compilers may not add the suffix if given an `-o'
3292 # argument, so we may need to know it at that point already.
3293 # Even if this section looks crufty: it has the advantage of
3294 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003295 break;;
3296 * )
3297 break;;
3298 esac
3299done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003300test "$ac_cv_exeext" = no && ac_cv_exeext=
3301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003302else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003303 ac_file=''
3304fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003305if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307$as_echo "no" >&6; }
3308$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309sed 's/^/| /' conftest.$ac_ext >&5
3310
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003311{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003313as_fn_error 77 "C compiler cannot create executables
3314See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003315else
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3317$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003318fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3320$as_echo_n "checking for C compiler default output file name... " >&6; }
3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3322$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003323ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003324
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003325rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003326ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003328$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003329if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003330case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3333esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003334eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3335$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003336 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003337 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3339 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003340 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3341# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3342# work properly (i.e., refer to `conftest.exe'), while it won't with
3343# `rm'.
3344for ac_file in conftest.exe conftest conftest.*; do
3345 test -f "$ac_file" || continue
3346 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003347 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003348 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003349 break;;
3350 * ) break;;
3351 esac
3352done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003353else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003354 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003356as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3357See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003358fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003359rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003361$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003362
3363rm -f conftest.$ac_ext
3364EXEEXT=$ac_cv_exeext
3365ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003366cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3367/* end confdefs.h. */
3368#include <stdio.h>
3369int
3370main ()
3371{
3372FILE *f = fopen ("conftest.out", "w");
3373 return ferror (f) || fclose (f) != 0;
3374
3375 ;
3376 return 0;
3377}
3378_ACEOF
3379ac_clean_files="$ac_clean_files conftest.out"
3380# Check that the compiler produces executables we can run. If not, either
3381# the compiler is broken, or we cross compile.
3382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3383$as_echo_n "checking whether we are cross compiling... " >&6; }
3384if test "$cross_compiling" != yes; then
3385 { { ac_try="$ac_link"
3386case "(($ac_try" in
3387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3388 *) ac_try_echo=$ac_try;;
3389esac
3390eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3391$as_echo "$ac_try_echo"; } >&5
3392 (eval "$ac_link") 2>&5
3393 ac_status=$?
3394 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3395 test $ac_status = 0; }
3396 if { ac_try='./conftest$ac_cv_exeext'
3397 { { case "(($ac_try" in
3398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3400esac
3401eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402$as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_try") 2>&5
3404 ac_status=$?
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }; }; then
3407 cross_compiling=no
3408 else
3409 if test "$cross_compiling" = maybe; then
3410 cross_compiling=yes
3411 else
3412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003414as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003415If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003416See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003417 fi
3418 fi
3419fi
3420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3421$as_echo "$cross_compiling" >&6; }
3422
3423rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3424ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003426$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003427if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003428 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003429else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003431/* end confdefs.h. */
3432
3433int
3434main ()
3435{
3436
3437 ;
3438 return 0;
3439}
3440_ACEOF
3441rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003442if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003443case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003447eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003449 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003450 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003453 for ac_file in conftest.o conftest.obj conftest.*; do
3454 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003456 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003457 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3458 break;;
3459 esac
3460done
3461else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003462 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463sed 's/^/| /' conftest.$ac_ext >&5
3464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003465{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003466$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003467as_fn_error $? "cannot compute suffix of object files: cannot compile
3468See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003469fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003470rm -f conftest.$ac_cv_objext conftest.$ac_ext
3471fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003473$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474OBJEXT=$ac_cv_objext
3475ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003476{ $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 +01003477$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003478if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003479 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003480else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003482/* end confdefs.h. */
3483
3484int
3485main ()
3486{
3487#ifndef __GNUC__
3488 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003489#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003490
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003491 ;
3492 return 0;
3493}
3494_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003495if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003496 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003497else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003498 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003499fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003501ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003502
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003505$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3506if test $ac_compiler_gnu = yes; then
3507 GCC=yes
3508else
3509 GCC=
3510fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003511ac_test_CFLAGS=${CFLAGS+set}
3512ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003514$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003515if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003516 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003517else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003518 ac_save_c_werror_flag=$ac_c_werror_flag
3519 ac_c_werror_flag=yes
3520 ac_cv_prog_cc_g=no
3521 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003523/* end confdefs.h. */
3524
3525int
3526main ()
3527{
3528
3529 ;
3530 return 0;
3531}
3532_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003533if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003534 ac_cv_prog_cc_g=yes
3535else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003536 CFLAGS=""
3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003538/* end confdefs.h. */
3539
3540int
3541main ()
3542{
3543
3544 ;
3545 return 0;
3546}
3547_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003548if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003549
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003550else
3551 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003552 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003554/* end confdefs.h. */
3555
3556int
3557main ()
3558{
3559
3560 ;
3561 return 0;
3562}
3563_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003564if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003565 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003566fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 ac_c_werror_flag=$ac_save_c_werror_flag
3573fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003575$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003576if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003577 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003578elif test $ac_cv_prog_cc_g = yes; then
3579 if test "$GCC" = yes; then
3580 CFLAGS="-g -O2"
3581 else
3582 CFLAGS="-g"
3583 fi
3584else
3585 if test "$GCC" = yes; then
3586 CFLAGS="-O2"
3587 else
3588 CFLAGS=
3589 fi
3590fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003592$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003593if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003594 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003595else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003596 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003597ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003599/* end confdefs.h. */
3600#include <stdarg.h>
3601#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003602struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003603/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3604struct buf { int x; };
3605FILE * (*rcsopen) (struct buf *, struct stat *, int);
3606static char *e (p, i)
3607 char **p;
3608 int i;
3609{
3610 return p[i];
3611}
3612static char *f (char * (*g) (char **, int), char **p, ...)
3613{
3614 char *s;
3615 va_list v;
3616 va_start (v,p);
3617 s = g (p, va_arg (v,int));
3618 va_end (v);
3619 return s;
3620}
3621
3622/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3623 function prototypes and stuff, but not '\xHH' hex character constants.
3624 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003625 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003626 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3627 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003628 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003629int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3630
Theodore Ts'oe1052142006-10-21 21:46:47 -04003631/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3632 inside strings and character constants. */
3633#define FOO(x) 'x'
3634int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003636int test (int i, double x);
3637struct s1 {int (*f) (int a);};
3638struct s2 {int (*f) (double a);};
3639int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3640int argc;
3641char **argv;
3642int
3643main ()
3644{
3645return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3646 ;
3647 return 0;
3648}
3649_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3651 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652do
3653 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003654 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003655 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003656fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003657rm -f core conftest.err conftest.$ac_objext
3658 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003659done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003660rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003661CC=$ac_save_CC
3662
3663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003664# AC_CACHE_VAL
3665case "x$ac_cv_prog_cc_c89" in
3666 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003668$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003669 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003671$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003672 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003673 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003675$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003676esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003677if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003678
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003679fi
3680
3681ac_ext=c
3682ac_cpp='$CPP $CPPFLAGS'
3683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3685ac_compiler_gnu=$ac_cv_c_compiler_gnu
3686
3687
3688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3689$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003690if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003691 $as_echo_n "(cached) " >&6
3692else
3693 ac_check_lib_save_LIBS=$LIBS
3694LIBS="-ldl $LIBS"
3695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696/* end confdefs.h. */
3697
3698/* Override any GCC internal prototype to avoid an error.
3699 Use char because int might match the return type of a GCC
3700 builtin and then its argument prototype would still apply. */
3701#ifdef __cplusplus
3702extern "C"
3703#endif
3704char dlopen ();
3705int
3706main ()
3707{
3708return dlopen ();
3709 ;
3710 return 0;
3711}
3712_ACEOF
3713if ac_fn_c_try_link "$LINENO"; then :
3714 ac_cv_lib_dl_dlopen=yes
3715else
3716 ac_cv_lib_dl_dlopen=no
3717fi
3718rm -f core conftest.err conftest.$ac_objext \
3719 conftest$ac_exeext conftest.$ac_ext
3720LIBS=$ac_check_lib_save_LIBS
3721fi
3722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3723$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003724if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003725 DLOPEN_LIB=-ldl
Theodore Ts'od1154eb2011-09-18 17:34:37 -04003726
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003727$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
3728
3729fi
3730
3731
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003732
3733# Check whether --with-cc was given.
3734if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003735 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003736fi
3737
3738
3739# Check whether --with-ccopts was given.
3740if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003741 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003742fi
3743
3744
3745# Check whether --with-ldopts was given.
3746if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003747 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003748fi
3749
3750ac_ext=c
3751ac_cpp='$CPP $CPPFLAGS'
3752ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755if test -n "$ac_tool_prefix"; then
3756 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3757set dummy ${ac_tool_prefix}gcc; ac_word=$2
3758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003760if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003761 $as_echo_n "(cached) " >&6
3762else
3763 if test -n "$CC"; then
3764 ac_cv_prog_CC="$CC" # Let the user override the test.
3765else
3766as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3767for as_dir in $PATH
3768do
3769 IFS=$as_save_IFS
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003773 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3775 break 2
3776 fi
3777done
3778 done
3779IFS=$as_save_IFS
3780
3781fi
3782fi
3783CC=$ac_cv_prog_CC
3784if test -n "$CC"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3786$as_echo "$CC" >&6; }
3787else
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789$as_echo "no" >&6; }
3790fi
3791
3792
3793fi
3794if test -z "$ac_cv_prog_CC"; then
3795 ac_ct_CC=$CC
3796 # Extract the first word of "gcc", so it can be a program name with args.
3797set dummy gcc; ac_word=$2
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003800if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003801 $as_echo_n "(cached) " >&6
3802else
3803 if test -n "$ac_ct_CC"; then
3804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
3811 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003813 ac_cv_prog_ac_ct_CC="gcc"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
3817done
3818 done
3819IFS=$as_save_IFS
3820
3821fi
3822fi
3823ac_ct_CC=$ac_cv_prog_ac_ct_CC
3824if test -n "$ac_ct_CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3826$as_echo "$ac_ct_CC" >&6; }
3827else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
3830fi
3831
3832 if test "x$ac_ct_CC" = x; then
3833 CC=""
3834 else
3835 case $cross_compiling:$ac_tool_warned in
3836yes:)
3837{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3838$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3839ac_tool_warned=yes ;;
3840esac
3841 CC=$ac_ct_CC
3842 fi
3843else
3844 CC="$ac_cv_prog_CC"
3845fi
3846
3847if test -z "$CC"; then
3848 if test -n "$ac_tool_prefix"; then
3849 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3850set dummy ${ac_tool_prefix}cc; ac_word=$2
3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3852$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003853if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003854 $as_echo_n "(cached) " >&6
3855else
3856 if test -n "$CC"; then
3857 ac_cv_prog_CC="$CC" # Let the user override the test.
3858else
3859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3860for as_dir in $PATH
3861do
3862 IFS=$as_save_IFS
3863 test -z "$as_dir" && as_dir=.
3864 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003866 ac_cv_prog_CC="${ac_tool_prefix}cc"
3867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3868 break 2
3869 fi
3870done
3871 done
3872IFS=$as_save_IFS
3873
3874fi
3875fi
3876CC=$ac_cv_prog_CC
3877if test -n "$CC"; then
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3879$as_echo "$CC" >&6; }
3880else
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3882$as_echo "no" >&6; }
3883fi
3884
3885
3886 fi
3887fi
3888if test -z "$CC"; then
3889 # Extract the first word of "cc", so it can be a program name with args.
3890set dummy cc; ac_word=$2
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003893if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003894 $as_echo_n "(cached) " >&6
3895else
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3898else
3899 ac_prog_rejected=no
3900as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3901for as_dir in $PATH
3902do
3903 IFS=$as_save_IFS
3904 test -z "$as_dir" && as_dir=.
3905 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003907 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3908 ac_prog_rejected=yes
3909 continue
3910 fi
3911 ac_cv_prog_CC="cc"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3914 fi
3915done
3916 done
3917IFS=$as_save_IFS
3918
3919if test $ac_prog_rejected = yes; then
3920 # We found a bogon in the path, so make sure we never use it.
3921 set dummy $ac_cv_prog_CC
3922 shift
3923 if test $# != 0; then
3924 # We chose a different compiler from the bogus one.
3925 # However, it has the same basename, so the bogon will be chosen
3926 # first if we set CC to just the basename; use the full file name.
3927 shift
3928 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3929 fi
3930fi
3931fi
3932fi
3933CC=$ac_cv_prog_CC
3934if test -n "$CC"; then
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3936$as_echo "$CC" >&6; }
3937else
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3939$as_echo "no" >&6; }
3940fi
3941
3942
3943fi
3944if test -z "$CC"; then
3945 if test -n "$ac_tool_prefix"; then
3946 for ac_prog in cl.exe
3947 do
3948 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3949set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3951$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003952if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003953 $as_echo_n "(cached) " >&6
3954else
3955 if test -n "$CC"; then
3956 ac_cv_prog_CC="$CC" # Let the user override the test.
3957else
3958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3959for as_dir in $PATH
3960do
3961 IFS=$as_save_IFS
3962 test -z "$as_dir" && as_dir=.
3963 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003965 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3967 break 2
3968 fi
3969done
3970 done
3971IFS=$as_save_IFS
3972
3973fi
3974fi
3975CC=$ac_cv_prog_CC
3976if test -n "$CC"; then
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3978$as_echo "$CC" >&6; }
3979else
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3981$as_echo "no" >&6; }
3982fi
3983
3984
3985 test -n "$CC" && break
3986 done
3987fi
3988if test -z "$CC"; then
3989 ac_ct_CC=$CC
3990 for ac_prog in cl.exe
3991do
3992 # Extract the first word of "$ac_prog", so it can be a program name with args.
3993set dummy $ac_prog; ac_word=$2
3994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3995$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003996if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003997 $as_echo_n "(cached) " >&6
3998else
3999 if test -n "$ac_ct_CC"; then
4000 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4001else
4002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4003for as_dir in $PATH
4004do
4005 IFS=$as_save_IFS
4006 test -z "$as_dir" && as_dir=.
4007 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004009 ac_cv_prog_ac_ct_CC="$ac_prog"
4010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4011 break 2
4012 fi
4013done
4014 done
4015IFS=$as_save_IFS
4016
4017fi
4018fi
4019ac_ct_CC=$ac_cv_prog_ac_ct_CC
4020if test -n "$ac_ct_CC"; then
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4022$as_echo "$ac_ct_CC" >&6; }
4023else
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4025$as_echo "no" >&6; }
4026fi
4027
4028
4029 test -n "$ac_ct_CC" && break
4030done
4031
4032 if test "x$ac_ct_CC" = x; then
4033 CC=""
4034 else
4035 case $cross_compiling:$ac_tool_warned in
4036yes:)
4037{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4038$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4039ac_tool_warned=yes ;;
4040esac
4041 CC=$ac_ct_CC
4042 fi
4043fi
4044
4045fi
4046
4047
4048test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004050as_fn_error $? "no acceptable C compiler found in \$PATH
4051See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004052
4053# Provide some information about the compiler.
4054$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4055set X $ac_compile
4056ac_compiler=$2
4057for ac_option in --version -v -V -qversion; do
4058 { { ac_try="$ac_compiler $ac_option >&5"
4059case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062esac
4063eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4064$as_echo "$ac_try_echo"; } >&5
4065 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4066 ac_status=$?
4067 if test -s conftest.err; then
4068 sed '10a\
4069... rest of stderr output deleted ...
4070 10q' conftest.err >conftest.er1
4071 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004072 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004073 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4075 test $ac_status = 0; }
4076done
4077
4078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4079$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004080if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004081 $as_echo_n "(cached) " >&6
4082else
4083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084/* end confdefs.h. */
4085
4086int
4087main ()
4088{
4089#ifndef __GNUC__
4090 choke me
4091#endif
4092
4093 ;
4094 return 0;
4095}
4096_ACEOF
4097if ac_fn_c_try_compile "$LINENO"; then :
4098 ac_compiler_gnu=yes
4099else
4100 ac_compiler_gnu=no
4101fi
4102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4103ac_cv_c_compiler_gnu=$ac_compiler_gnu
4104
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4107$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4108if test $ac_compiler_gnu = yes; then
4109 GCC=yes
4110else
4111 GCC=
4112fi
4113ac_test_CFLAGS=${CFLAGS+set}
4114ac_save_CFLAGS=$CFLAGS
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4116$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004117if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004118 $as_echo_n "(cached) " >&6
4119else
4120 ac_save_c_werror_flag=$ac_c_werror_flag
4121 ac_c_werror_flag=yes
4122 ac_cv_prog_cc_g=no
4123 CFLAGS="-g"
4124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125/* end confdefs.h. */
4126
4127int
4128main ()
4129{
4130
4131 ;
4132 return 0;
4133}
4134_ACEOF
4135if ac_fn_c_try_compile "$LINENO"; then :
4136 ac_cv_prog_cc_g=yes
4137else
4138 CFLAGS=""
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h. */
4141
4142int
4143main ()
4144{
4145
4146 ;
4147 return 0;
4148}
4149_ACEOF
4150if ac_fn_c_try_compile "$LINENO"; then :
4151
4152else
4153 ac_c_werror_flag=$ac_save_c_werror_flag
4154 CFLAGS="-g"
4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4156/* end confdefs.h. */
4157
4158int
4159main ()
4160{
4161
4162 ;
4163 return 0;
4164}
4165_ACEOF
4166if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_cv_prog_cc_g=yes
4168fi
4169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172fi
4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174 ac_c_werror_flag=$ac_save_c_werror_flag
4175fi
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4177$as_echo "$ac_cv_prog_cc_g" >&6; }
4178if test "$ac_test_CFLAGS" = set; then
4179 CFLAGS=$ac_save_CFLAGS
4180elif test $ac_cv_prog_cc_g = yes; then
4181 if test "$GCC" = yes; then
4182 CFLAGS="-g -O2"
4183 else
4184 CFLAGS="-g"
4185 fi
4186else
4187 if test "$GCC" = yes; then
4188 CFLAGS="-O2"
4189 else
4190 CFLAGS=
4191 fi
4192fi
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4194$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004195if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004196 $as_echo_n "(cached) " >&6
4197else
4198 ac_cv_prog_cc_c89=no
4199ac_save_CC=$CC
4200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4201/* end confdefs.h. */
4202#include <stdarg.h>
4203#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004204struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004205/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4206struct buf { int x; };
4207FILE * (*rcsopen) (struct buf *, struct stat *, int);
4208static char *e (p, i)
4209 char **p;
4210 int i;
4211{
4212 return p[i];
4213}
4214static char *f (char * (*g) (char **, int), char **p, ...)
4215{
4216 char *s;
4217 va_list v;
4218 va_start (v,p);
4219 s = g (p, va_arg (v,int));
4220 va_end (v);
4221 return s;
4222}
4223
4224/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4225 function prototypes and stuff, but not '\xHH' hex character constants.
4226 These don't provoke an error unfortunately, instead are silently treated
4227 as 'x'. The following induces an error, until -std is added to get
4228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4229 array size at least. It's necessary to write '\x00'==0 to get something
4230 that's true only with -std. */
4231int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4232
4233/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4234 inside strings and character constants. */
4235#define FOO(x) 'x'
4236int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4237
4238int test (int i, double x);
4239struct s1 {int (*f) (int a);};
4240struct s2 {int (*f) (double a);};
4241int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4242int argc;
4243char **argv;
4244int
4245main ()
4246{
4247return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4248 ;
4249 return 0;
4250}
4251_ACEOF
4252for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4254do
4255 CC="$ac_save_CC $ac_arg"
4256 if ac_fn_c_try_compile "$LINENO"; then :
4257 ac_cv_prog_cc_c89=$ac_arg
4258fi
4259rm -f core conftest.err conftest.$ac_objext
4260 test "x$ac_cv_prog_cc_c89" != "xno" && break
4261done
4262rm -f conftest.$ac_ext
4263CC=$ac_save_CC
4264
4265fi
4266# AC_CACHE_VAL
4267case "x$ac_cv_prog_cc_c89" in
4268 x)
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4270$as_echo "none needed" >&6; } ;;
4271 xno)
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4273$as_echo "unsupported" >&6; } ;;
4274 *)
4275 CC="$CC $ac_cv_prog_cc_c89"
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4277$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4278esac
4279if test "x$ac_cv_prog_cc_c89" != xno; then :
4280
4281fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004282
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283ac_ext=c
4284ac_cpp='$CPP $CPPFLAGS'
4285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4287ac_compiler_gnu=$ac_cv_c_compiler_gnu
4288
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004289if test "$GCC" = yes; then
4290 RDYNAMIC="-rdynamic"
4291
4292fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004293ac_ext=c
4294ac_cpp='$CPP $CPPFLAGS'
4295ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4296ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4297ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004299$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004300# On Suns, sometimes $CPP names a directory.
4301if test -n "$CPP" && test -d "$CPP"; then
4302 CPP=
4303fi
4304if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004305 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004306 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004307else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004308 # Double quotes because CPP needs to be expanded
4309 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4310 do
4311 ac_preproc_ok=false
4312for ac_c_preproc_warn_flag in '' yes
4313do
4314 # Use a header file that comes with gcc, so configuring glibc
4315 # with a fresh cross-compiler works.
4316 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4317 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004318 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004319 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004321/* end confdefs.h. */
4322#ifdef __STDC__
4323# include <limits.h>
4324#else
4325# include <assert.h>
4326#endif
4327 Syntax error
4328_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004329if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004330
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004331else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004332 # Broken: fails on valid input.
4333continue
4334fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004335rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336
Theodore Ts'oe1052142006-10-21 21:46:47 -04004337 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340/* end confdefs.h. */
4341#include <ac_nonexistent.h>
4342_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004343if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004344 # Broken: success on invalid input.
4345continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004346else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004347 # Passes both tests.
4348ac_preproc_ok=:
4349break
4350fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004351rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004352
4353done
4354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004355rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004356if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004357 break
4358fi
4359
4360 done
4361 ac_cv_prog_CPP=$CPP
4362
4363fi
4364 CPP=$ac_cv_prog_CPP
4365else
4366 ac_cv_prog_CPP=$CPP
4367fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004369$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004370ac_preproc_ok=false
4371for ac_c_preproc_warn_flag in '' yes
4372do
4373 # Use a header file that comes with gcc, so configuring glibc
4374 # with a fresh cross-compiler works.
4375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4376 # <limits.h> exists even on freestanding compilers.
4377 # On the NeXT, cc -E runs the code through the compiler's parser,
4378 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004380/* end confdefs.h. */
4381#ifdef __STDC__
4382# include <limits.h>
4383#else
4384# include <assert.h>
4385#endif
4386 Syntax error
4387_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004388if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004389
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004390else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004391 # Broken: fails on valid input.
4392continue
4393fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004394rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004395
Theodore Ts'oe1052142006-10-21 21:46:47 -04004396 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004397 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004399/* end confdefs.h. */
4400#include <ac_nonexistent.h>
4401_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004402if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004403 # Broken: success on invalid input.
4404continue
4405else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004406 # Passes both tests.
4407ac_preproc_ok=:
4408break
4409fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004410rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004411
4412done
4413# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004414rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004415if $ac_preproc_ok; then :
4416
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004417else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004420as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4421See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004422fi
4423
4424ac_ext=c
4425ac_cpp='$CPP $CPPFLAGS'
4426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4428ac_compiler_gnu=$ac_cv_c_compiler_gnu
4429
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004431$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004432if test "$GCC" = yes
4433then
4434 case "$host_cpu" in
4435 alpha) addcflags="-mieee" ;;
4436 esac
4437fi
4438if test "x$addcflags" != x
4439then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004441$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004442 CFLAGS="$addcflags $CFLAGS"
4443else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004445$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004446fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004447
4448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4449$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4450if ${ac_cv_path_GREP+:} false; then :
4451 $as_echo_n "(cached) " >&6
4452else
4453 if test -z "$GREP"; then
4454 ac_path_GREP_found=false
4455 # Loop through the user's path and test for each of PROGNAME-LIST
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
4461 for ac_prog in grep ggrep; do
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4464 as_fn_executable_p "$ac_path_GREP" || continue
4465# Check for GNU ac_path_GREP and select it if it is found.
4466 # Check for GNU $ac_path_GREP
4467case `"$ac_path_GREP" --version 2>&1` in
4468*GNU*)
4469 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4470*)
4471 ac_count=0
4472 $as_echo_n 0123456789 >"conftest.in"
4473 while :
4474 do
4475 cat "conftest.in" "conftest.in" >"conftest.tmp"
4476 mv "conftest.tmp" "conftest.in"
4477 cp "conftest.in" "conftest.nl"
4478 $as_echo 'GREP' >> "conftest.nl"
4479 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4480 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4481 as_fn_arith $ac_count + 1 && ac_count=$as_val
4482 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4483 # Best one so far, save it but keep looking for a better one
4484 ac_cv_path_GREP="$ac_path_GREP"
4485 ac_path_GREP_max=$ac_count
4486 fi
4487 # 10*(2^10) chars as input seems more than enough
4488 test $ac_count -gt 10 && break
4489 done
4490 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4491esac
4492
4493 $ac_path_GREP_found && break 3
4494 done
4495 done
4496 done
4497IFS=$as_save_IFS
4498 if test -z "$ac_cv_path_GREP"; then
4499 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4500 fi
4501else
4502 ac_cv_path_GREP=$GREP
4503fi
4504
4505fi
4506{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4507$as_echo "$ac_cv_path_GREP" >&6; }
4508 GREP="$ac_cv_path_GREP"
4509
4510
4511{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4512$as_echo_n "checking for egrep... " >&6; }
4513if ${ac_cv_path_EGREP+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515else
4516 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4517 then ac_cv_path_EGREP="$GREP -E"
4518 else
4519 if test -z "$EGREP"; then
4520 ac_path_EGREP_found=false
4521 # Loop through the user's path and test for each of PROGNAME-LIST
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4524do
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_prog in egrep; do
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4530 as_fn_executable_p "$ac_path_EGREP" || continue
4531# Check for GNU ac_path_EGREP and select it if it is found.
4532 # Check for GNU $ac_path_EGREP
4533case `"$ac_path_EGREP" --version 2>&1` in
4534*GNU*)
4535 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4536*)
4537 ac_count=0
4538 $as_echo_n 0123456789 >"conftest.in"
4539 while :
4540 do
4541 cat "conftest.in" "conftest.in" >"conftest.tmp"
4542 mv "conftest.tmp" "conftest.in"
4543 cp "conftest.in" "conftest.nl"
4544 $as_echo 'EGREP' >> "conftest.nl"
4545 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4546 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4547 as_fn_arith $ac_count + 1 && ac_count=$as_val
4548 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4549 # Best one so far, save it but keep looking for a better one
4550 ac_cv_path_EGREP="$ac_path_EGREP"
4551 ac_path_EGREP_max=$ac_count
4552 fi
4553 # 10*(2^10) chars as input seems more than enough
4554 test $ac_count -gt 10 && break
4555 done
4556 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4557esac
4558
4559 $ac_path_EGREP_found && break 3
4560 done
4561 done
4562 done
4563IFS=$as_save_IFS
4564 if test -z "$ac_cv_path_EGREP"; then
4565 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4566 fi
4567else
4568 ac_cv_path_EGREP=$EGREP
4569fi
4570
4571 fi
4572fi
4573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4574$as_echo "$ac_cv_path_EGREP" >&6; }
4575 EGREP="$ac_cv_path_EGREP"
4576
4577
4578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4579$as_echo_n "checking for ANSI C header files... " >&6; }
4580if ${ac_cv_header_stdc+:} false; then :
4581 $as_echo_n "(cached) " >&6
4582else
4583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4584/* end confdefs.h. */
4585#include <stdlib.h>
4586#include <stdarg.h>
4587#include <string.h>
4588#include <float.h>
4589
4590int
4591main ()
4592{
4593
4594 ;
4595 return 0;
4596}
4597_ACEOF
4598if ac_fn_c_try_compile "$LINENO"; then :
4599 ac_cv_header_stdc=yes
4600else
4601 ac_cv_header_stdc=no
4602fi
4603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604
4605if test $ac_cv_header_stdc = yes; then
4606 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h. */
4609#include <string.h>
4610
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "memchr" >/dev/null 2>&1; then :
4614
4615else
4616 ac_cv_header_stdc=no
4617fi
4618rm -f conftest*
4619
4620fi
4621
4622if test $ac_cv_header_stdc = yes; then
4623 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625/* end confdefs.h. */
4626#include <stdlib.h>
4627
4628_ACEOF
4629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630 $EGREP "free" >/dev/null 2>&1; then :
4631
4632else
4633 ac_cv_header_stdc=no
4634fi
4635rm -f conftest*
4636
4637fi
4638
4639if test $ac_cv_header_stdc = yes; then
4640 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4641 if test "$cross_compiling" = yes; then :
4642 :
4643else
4644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4645/* end confdefs.h. */
4646#include <ctype.h>
4647#include <stdlib.h>
4648#if ((' ' & 0x0FF) == 0x020)
4649# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4650# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4651#else
4652# define ISLOWER(c) \
4653 (('a' <= (c) && (c) <= 'i') \
4654 || ('j' <= (c) && (c) <= 'r') \
4655 || ('s' <= (c) && (c) <= 'z'))
4656# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4657#endif
4658
4659#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4660int
4661main ()
4662{
4663 int i;
4664 for (i = 0; i < 256; i++)
4665 if (XOR (islower (i), ISLOWER (i))
4666 || toupper (i) != TOUPPER (i))
4667 return 2;
4668 return 0;
4669}
4670_ACEOF
4671if ac_fn_c_try_run "$LINENO"; then :
4672
4673else
4674 ac_cv_header_stdc=no
4675fi
4676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4677 conftest.$ac_objext conftest.beam conftest.$ac_ext
4678fi
4679
4680fi
4681fi
4682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4683$as_echo "$ac_cv_header_stdc" >&6; }
4684if test $ac_cv_header_stdc = yes; then
4685
4686$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4687
4688fi
4689
4690# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4691for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4692 inttypes.h stdint.h unistd.h
4693do :
4694 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4695ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4696"
4697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4698 cat >>confdefs.h <<_ACEOF
4699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4700_ACEOF
4701
4702fi
4703
4704done
4705
4706
4707
4708 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4709if test "x$ac_cv_header_minix_config_h" = xyes; then :
4710 MINIX=yes
4711else
4712 MINIX=
4713fi
4714
4715
4716 if test "$MINIX" = yes; then
4717
4718$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4719
4720
4721$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4722
4723
4724$as_echo "#define _MINIX 1" >>confdefs.h
4725
4726 fi
4727
4728
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4730$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4731if ${ac_cv_safe_to_define___extensions__+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733else
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735/* end confdefs.h. */
4736
4737# define __EXTENSIONS__ 1
4738 $ac_includes_default
4739int
4740main ()
4741{
4742
4743 ;
4744 return 0;
4745}
4746_ACEOF
4747if ac_fn_c_try_compile "$LINENO"; then :
4748 ac_cv_safe_to_define___extensions__=yes
4749else
4750 ac_cv_safe_to_define___extensions__=no
4751fi
4752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753fi
4754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4755$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4756 test $ac_cv_safe_to_define___extensions__ = yes &&
4757 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4758
4759 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4760
4761 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4762
4763 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4764
4765 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4766
4767
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004768LIB_EXT=.a
4769STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004770PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004771
Theodore Ts'oe1052142006-10-21 21:46:47 -04004772# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004773if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004774 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004775else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004776 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004777fi
4778# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004779if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004780 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004781then
4782 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004784$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004785else
4786 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004788$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004789fi
4790
4791else
4792 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004794$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004795
Theodore Ts'oe1052142006-10-21 21:46:47 -04004796fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004797
Theodore Ts'oe1052142006-10-21 21:46:47 -04004798
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004799# Check whether --enable-symlink-install was given.
4800if test "${enable_symlink_install+set}" = set; then :
4801 enableval=$enable_symlink_install; if test "$enableval" = "no"
4802then
4803 LINK_INSTALL_FLAGS=-f
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4805$as_echo "Disabling symlinks for install" >&6; }
4806else
4807 LINK_INSTALL_FLAGS=-sf
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4809$as_echo "Enabling symlinks for install" >&6; }
4810fi
4811
4812else
4813 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4815$as_echo "Disabling symlinks for install by default" >&6; }
4816
4817fi
4818
4819
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004820relative_symlink_defined=
4821# Check whether --enable-relative-symlinks was given.
4822if test "${enable_relative_symlinks+set}" = set; then :
4823 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004824then
4825 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004826 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4828$as_echo "Disabling relative symlinks for install" >&6; }
4829else
4830 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004831 relative_symlink_defined=yes
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4833$as_echo "Enabling relative symlinks for install" >&6; }
4834fi
4835fi
4836
4837# Check whether --enable-symlink-relative-symlinks was given.
4838if test "${enable_symlink_relative_symlinks+set}" = set; then :
4839 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4840then
4841 SYMLINK_RELATIVE=yes
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4843$as_echo "Disabling relative symlinks for install" >&6; }
4844else
4845 SYMLINK_RELATIVE=--relative
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4847$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004848fi
4849
4850else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004851 if test -z "$relative_symlink_defined"
4852then
4853 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4855$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004856fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004857
4858fi
4859
4860
4861# Check whether --enable-symlink-build was given.
4862if test "${enable_symlink_build+set}" = set; then :
4863 enableval=$enable_symlink_build; if test "$enableval" = "no"
4864then
4865 LINK_BUILD_FLAGS=
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4867$as_echo "Disabling symlinks for build" >&6; }
4868else
4869 LINK_BUILD_FLAGS=-s
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4871$as_echo "Enabling symlinks for build" >&6; }
4872fi
4873
4874else
4875 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4877$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004878
4879fi
4880
4881
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004882# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004883if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004884 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4885then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004887$as_echo "Disabling verbose make commands" >&6; }
4888 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004889 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004890 Q=@
4891else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004893$as_echo "Enabling verbose make commands" >&6; }
4894 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004895 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004896 Q=
4897fi
4898
4899else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004901$as_echo "Disabling verbose make commands" >&6; }
4902E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004903ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004904Q=@
4905
4906fi
4907
4908
4909
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004910
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004911E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004912LDFLAG_DYNAMIC=
4913PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004914# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004915if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004916 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004917then
4918 ELF_CMT=#
4919 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004921$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004922else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004923 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004924 ELF_CMT=
4925 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004926 case "$host_os" in
4927 solaris2.*)
4928 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4929 ;;
4930 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004931 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004932 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004933 PRIVATE_LIBS_CMT=#
4934 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004936$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004937fi
4938
4939else
4940 MAKEFILE_ELF=/dev/null
4941ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004942{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004943$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004944
Theodore Ts'oe1052142006-10-21 21:46:47 -04004945fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004946
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004947
Theodore Ts'oe1052142006-10-21 21:46:47 -04004948
4949# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004950if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004951 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004952then
4953 BSDLIB_CMT=#
4954 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004956$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004957else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004958 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959 BSDLIB_CMT=
4960 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004961 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004962 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004963 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004964 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4965 LIB_EXT=.dylib
4966 ;;
4967 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004969$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004970fi
4971
4972else
4973 MAKEFILE_BSDLIB=/dev/null
4974BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004976$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004977
Theodore Ts'oe1052142006-10-21 21:46:47 -04004978fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004979
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004980
Theodore Ts'oe1052142006-10-21 21:46:47 -04004981
4982# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004983if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004984 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004985then
4986 PROFILE_CMT=#
4987 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004989$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004990else
4991 PROFILE_CMT=
4992 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4993 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004995$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004996fi
4997
4998else
4999 PROFILE_CMT=#
5000MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005002$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005003
Theodore Ts'oe1052142006-10-21 21:46:47 -04005004fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005005
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005006
Theodore Ts'oe1052142006-10-21 21:46:47 -04005007
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005008# Check whether --enable-gcov was given.
5009if test "${enable_gcov+set}" = set; then :
5010 enableval=$enable_gcov; if test "$enableval" = "yes"
5011then
5012 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5013 LDFLAGS="-fprofile-arcs -ftest-coverage"
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5015$as_echo "Enabling gcov support" >&6; }
5016fi
5017
5018fi
5019
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04005020CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5021CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5022LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5023LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5024# Check whether --enable-hardening was given.
5025if test "${enable_hardening+set}" = set; then :
5026 enableval=$enable_hardening; if test "$enableval" = "yes"
5027then
5028 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5029 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5030 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5031 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5032 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5033 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5034 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5035 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5037$as_echo "Enabling hardening support" >&6; }
5038fi
5039
5040fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005041
5042
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005043
Theodore Ts'oe1052142006-10-21 21:46:47 -04005044
Theodore Ts'o55da9872008-09-02 23:12:38 -04005045
5046
Theodore Ts'oe1052142006-10-21 21:46:47 -04005047# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005048if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005049 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005050then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005052$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005053else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005054
5055$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005056
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005058$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005059fi
5060
5061else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005063$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005064
Theodore Ts'oe1052142006-10-21 21:46:47 -04005065fi
5066
5067# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005068if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005069 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005070then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005072$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005073else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005074
5075$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005076
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005078$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005079fi
5080
5081else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005083$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005084
Theodore Ts'oe1052142006-10-21 21:46:47 -04005085fi
5086
5087# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005088if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005089 enableval=$enable_testio_debug;
5090if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005091then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005093$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005094 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005095else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005096 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005097 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005098
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005100$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005101fi
5102
5103else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005105$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005106$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005107
5108TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005109
Theodore Ts'oe1052142006-10-21 21:46:47 -04005110fi
5111
Theodore Ts'oaf773652008-09-01 11:27:27 -04005112
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005113
5114
Theodore Ts'o93613952014-07-03 23:44:13 -04005115
5116
5117
5118
5119
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005120if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005121 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005122 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5123set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005125$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005126if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005127 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005128else
5129 case $PKG_CONFIG in
5130 [\\/]* | ?:[\\/]*)
5131 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5132 ;;
5133 *)
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135for as_dir in $PATH
5136do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005139 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005141 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005143 break 2
5144 fi
5145done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005146 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005147IFS=$as_save_IFS
5148
5149 ;;
5150esac
5151fi
5152PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5153if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005155$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005156else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005158$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005159fi
5160
5161
5162fi
5163if test -z "$ac_cv_path_PKG_CONFIG"; then
5164 ac_pt_PKG_CONFIG=$PKG_CONFIG
5165 # Extract the first word of "pkg-config", so it can be a program name with args.
5166set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005168$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005169if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005170 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005171else
5172 case $ac_pt_PKG_CONFIG in
5173 [\\/]* | ?:[\\/]*)
5174 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5175 ;;
5176 *)
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178for as_dir in $PATH
5179do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005182 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005184 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005186 break 2
5187 fi
5188done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005189 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005190IFS=$as_save_IFS
5191
5192 ;;
5193esac
5194fi
5195ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5196if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005198$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005199else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005201$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005202fi
5203
5204 if test "x$ac_pt_PKG_CONFIG" = x; then
5205 PKG_CONFIG=""
5206 else
5207 case $cross_compiling:$ac_tool_warned in
5208yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005209{ $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 +01005210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005211ac_tool_warned=yes ;;
5212esac
5213 PKG_CONFIG=$ac_pt_PKG_CONFIG
5214 fi
5215else
5216 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5217fi
5218
5219fi
5220if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005221 _pkg_min_version=0.9.0
5222 { $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 +01005223$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005224 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005226$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005227 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005229$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005230 PKG_CONFIG=""
5231 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005232fi
5233LIBUUID=
5234DEPLIBUUID=
5235STATIC_LIBUUID=
5236DEPSTATIC_LIBUUID=
5237PROFILED_LIBUUID=
5238DEPPROFILED_LIBUUID=
5239UUID_CMT=
5240# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005241if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005242 enableval=$enable_libuuid; if test "$enableval" = "no"
5243then
5244 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005245 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005246 fi
5247
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005249$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005250if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005251 $as_echo_n "(cached) " >&6
5252else
5253 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005254LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005256/* end confdefs.h. */
5257
5258/* Override any GCC internal prototype to avoid an error.
5259 Use char because int might match the return type of a GCC
5260 builtin and then its argument prototype would still apply. */
5261#ifdef __cplusplus
5262extern "C"
5263#endif
5264char uuid_generate ();
5265int
5266main ()
5267{
5268return uuid_generate ();
5269 ;
5270 return 0;
5271}
5272_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005273if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005274 ac_cv_lib_uuid_uuid_generate=yes
5275else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005276 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005277fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005278rm -f core conftest.err conftest.$ac_objext \
5279 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005280LIBS=$ac_check_lib_save_LIBS
5281fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005283$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005284if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005285 LIBUUID=`$PKG_CONFIG --libs uuid`;
5286 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5287else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005288 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005289fi
5290
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005291 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005292 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005294$as_echo "Disabling private uuid library" >&6; }
5295else
5296 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5297 DEPLIBUUID=$LIBUUID
5298 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5299 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5300 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5301 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005303$as_echo "Enabling private uuid library" >&6; }
5304fi
5305
5306else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005307 if test -n "$PKG_CONFIG"; then
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5309$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5310if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5311 $as_echo_n "(cached) " >&6
5312else
5313 ac_check_lib_save_LIBS=$LIBS
5314LIBS="-luuid $LIBS"
5315cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5316/* end confdefs.h. */
5317
5318/* Override any GCC internal prototype to avoid an error.
5319 Use char because int might match the return type of a GCC
5320 builtin and then its argument prototype would still apply. */
5321#ifdef __cplusplus
5322extern "C"
5323#endif
5324char uuid_generate ();
5325int
5326main ()
5327{
5328return uuid_generate ();
5329 ;
5330 return 0;
5331}
5332_ACEOF
5333if ac_fn_c_try_link "$LINENO"; then :
5334 ac_cv_lib_uuid_uuid_generate=yes
5335else
5336 ac_cv_lib_uuid_uuid_generate=no
5337fi
5338rm -f core conftest.err conftest.$ac_objext \
5339 conftest$ac_exeext conftest.$ac_ext
5340LIBS=$ac_check_lib_save_LIBS
5341fi
5342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5343$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5344if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5345 LIBUUID=`$PKG_CONFIG --libs uuid`;
5346 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5347fi
5348
5349fi
5350if test -n "$LIBUUID"; then
5351 PROFILED_LIBUUID=$LIBUUID
5352 UUID_CMT=#
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5354$as_echo "Using system uuid by default" >&6; }
5355else
5356 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5357 DEPLIBUUID=$LIBUUID
5358 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5359 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5360 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5361 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005363$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005364fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005365
5366fi
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
Theodore Ts'o93613952014-07-03 23:44:13 -04005377
5378
5379
5380
5381
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005382if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005383 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005384 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5385set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005387$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005388if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005389 $as_echo_n "(cached) " >&6
5390else
5391 case $PKG_CONFIG in
5392 [\\/]* | ?:[\\/]*)
5393 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5394 ;;
5395 *)
5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5397for as_dir in $PATH
5398do
5399 IFS=$as_save_IFS
5400 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005401 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005403 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005405 break 2
5406 fi
5407done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005408 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005409IFS=$as_save_IFS
5410
5411 ;;
5412esac
5413fi
5414PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5415if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005417$as_echo "$PKG_CONFIG" >&6; }
5418else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005420$as_echo "no" >&6; }
5421fi
5422
5423
5424fi
5425if test -z "$ac_cv_path_PKG_CONFIG"; then
5426 ac_pt_PKG_CONFIG=$PKG_CONFIG
5427 # Extract the first word of "pkg-config", so it can be a program name with args.
5428set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005430$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005431if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005432 $as_echo_n "(cached) " >&6
5433else
5434 case $ac_pt_PKG_CONFIG in
5435 [\\/]* | ?:[\\/]*)
5436 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5437 ;;
5438 *)
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440for as_dir in $PATH
5441do
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005444 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005446 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005448 break 2
5449 fi
5450done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005451 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005452IFS=$as_save_IFS
5453
5454 ;;
5455esac
5456fi
5457ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5458if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005460$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5461else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005463$as_echo "no" >&6; }
5464fi
5465
5466 if test "x$ac_pt_PKG_CONFIG" = x; then
5467 PKG_CONFIG=""
5468 else
5469 case $cross_compiling:$ac_tool_warned in
5470yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005471{ $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 +01005472$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5473ac_tool_warned=yes ;;
5474esac
5475 PKG_CONFIG=$ac_pt_PKG_CONFIG
5476 fi
5477else
5478 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5479fi
5480
5481fi
5482if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005483 _pkg_min_version=0.9.0
5484 { $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 +01005485$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005486 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005488$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005489 else
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005491$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005492 PKG_CONFIG=""
5493 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005494fi
5495LIBBLKID=
5496DEPLIBBLKID=
5497STATIC_LIBBLKID=
5498DEPSTATIC_LIBBLKID=
5499PROFILED_LIBBLKID=
5500DEPPROFILED_LIBBLKID=
5501BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005502
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005503# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005504if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005505 enableval=$enable_libblkid; if test "$enableval" = "no"
5506then
5507 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005508 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005509 fi
5510
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005512$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005513if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005514 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005515else
5516 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005517LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005518cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005519/* end confdefs.h. */
5520
5521/* Override any GCC internal prototype to avoid an error.
5522 Use char because int might match the return type of a GCC
5523 builtin and then its argument prototype would still apply. */
5524#ifdef __cplusplus
5525extern "C"
5526#endif
5527char blkid_get_cache ();
5528int
5529main ()
5530{
5531return blkid_get_cache ();
5532 ;
5533 return 0;
5534}
5535_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005536if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005537 ac_cv_lib_blkid_blkid_get_cache=yes
5538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005539 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005540fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005541rm -f core conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005543LIBS=$ac_check_lib_save_LIBS
5544fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005546$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005547if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005548 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5549 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5550else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005551 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005552fi
5553
5554 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005555 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005557$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005558else
5559 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5560 DEPLIBBLKID=$LIBBLKID
5561 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5562 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5563 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5564 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005565 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005566
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005568$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005569fi
5570
5571else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005572 if test -n "$PKG_CONFIG"; then
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5574$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5575if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5576 $as_echo_n "(cached) " >&6
5577else
5578 ac_check_lib_save_LIBS=$LIBS
5579LIBS="-lblkid $LIBS"
5580cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5581/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005582
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005583/* Override any GCC internal prototype to avoid an error.
5584 Use char because int might match the return type of a GCC
5585 builtin and then its argument prototype would still apply. */
5586#ifdef __cplusplus
5587extern "C"
5588#endif
5589char blkid_get_cache ();
5590int
5591main ()
5592{
5593return blkid_get_cache ();
5594 ;
5595 return 0;
5596}
5597_ACEOF
5598if ac_fn_c_try_link "$LINENO"; then :
5599 ac_cv_lib_blkid_blkid_get_cache=yes
5600else
5601 ac_cv_lib_blkid_blkid_get_cache=no
5602fi
5603rm -f core conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605LIBS=$ac_check_lib_save_LIBS
5606fi
5607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5608$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5609if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5610 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5611 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5612fi
5613
5614fi
5615if test -n "$LIBBLKID"; then
5616 BLKID_CMT=#
5617 PROFILED_LIBBLKID=$LIBBLKID
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5619$as_echo "Using system blkid library by default" >&6; }
5620else
5621 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5622 DEPLIBBLKID=$LIBBLKID
5623 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5624 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5625 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5626 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5627 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005630$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005631fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005632
5633fi
5634
5635
5636
5637
5638
5639
5640
5641
Theodore Ts'o3df60142013-06-16 16:14:40 -04005642
5643# Check whether --enable-backtrace was given.
5644if test "${enable_backtrace+set}" = set; then :
5645 enableval=$enable_backtrace; if test "$enableval" = "no"
5646then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5648$as_echo "Disabling use of backtrace" >&6; }
5649 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5650
5651else
5652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5653$as_echo "Enabling use of backtrace" >&6; }
5654fi
5655
5656else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5658$as_echo "Enabling use of backtrace by default" >&6; }
5659
5660fi
5661
Theodore Ts'oe1052142006-10-21 21:46:47 -04005662# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005663if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005664 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005665then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005667$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005668 DEBUGFS_CMT="#"
5669else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005670 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005672$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005673fi
5674
5675else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005677$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005678DEBUGFS_CMT=
5679
Theodore Ts'oe1052142006-10-21 21:46:47 -04005680fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005681
Theodore Ts'oe1052142006-10-21 21:46:47 -04005682
5683# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005684if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005685 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005686then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005688$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005689 IMAGER_CMT="#"
5690else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005691 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005693$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005694fi
5695
5696else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005698$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005699IMAGER_CMT=
5700
Theodore Ts'oe1052142006-10-21 21:46:47 -04005701fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005702
Theodore Ts'oe1052142006-10-21 21:46:47 -04005703
5704# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005705if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005706 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005707then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005709$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005710 RESIZER_CMT="#"
5711else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005712 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005714$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005715fi
5716
5717else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005719$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005720RESIZER_CMT=
5721
Theodore Ts'oe1052142006-10-21 21:46:47 -04005722fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005723
Theodore Ts'oe1052142006-10-21 21:46:47 -04005724
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005725# Check whether --enable-defrag was given.
5726if test "${enable_defrag+set}" = set; then :
5727 enableval=$enable_defrag; if test "$enableval" = "no"
5728then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5730$as_echo "Disabling e4defrag support" >&6; }
5731 DEFRAG_CMT="#"
5732else
5733 DEFRAG_CMT=
5734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5735$as_echo "Enabling e4defrag support" >&6; }
5736fi
5737
5738else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005739 if test -z "$WITH_DIET_LIBC"
5740then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005742$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005743 DEFRAG_CMT=
5744else
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5746$as_echo "Disabling e4defrag support by default" >&6; }
5747 DEFRAG_CMT="#"
5748fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005749
5750fi
5751
5752
Theodore Ts'oe1052142006-10-21 21:46:47 -04005753# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005754if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005755 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005756then
5757 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005759$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005760else
5761 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005763$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005764fi
5765
5766else
5767 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005768 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005769 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005771$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005772 ;;
5773 *)
5774 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005776$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005777esac
5778
Theodore Ts'oe1052142006-10-21 21:46:47 -04005779fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005780
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005781
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782
5783# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005784if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005785 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005786then
5787 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005789$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005790else
5791 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005793$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005794fi
5795
5796else
5797 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005799$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005800
Theodore Ts'oe1052142006-10-21 21:46:47 -04005801fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005802
5803
Theodore Ts'oe1052142006-10-21 21:46:47 -04005804
Theodore Ts'o32493942007-12-31 10:45:01 -05005805# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005806if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005807 enableval=$enable_tls; if test "$enableval" = "no"
5808then
5809 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005811$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005812else
5813 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005815$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005816fi
5817
5818else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005819 if test -n "$WITH_DIET_LIBC"
5820then
5821 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005822 { $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 +01005823$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005824else
5825 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005827$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005828fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005829
5830fi
5831
5832if test "$try_tls" = "yes"
5833then
5834
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005836$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005837 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005838 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005839else
5840
5841 ax_tls_keywords="__thread __declspec(thread) none"
5842 for ax_tls_keyword in $ax_tls_keywords; do
5843 case $ax_tls_keyword in
5844 none) ac_cv_tls=none ; break ;;
5845 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005847/* end confdefs.h. */
5848#include <stdlib.h>
5849 static void
5850 foo(void) {
5851 static $ax_tls_keyword int bar;
5852 exit(1);
5853 }
5854int
5855main ()
5856{
5857
5858 ;
5859 return 0;
5860}
5861_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005862if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005863 ac_cv_tls=$ax_tls_keyword ; break
5864else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005865 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005866
5867fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5869 esac
5870 done
5871
5872fi
5873
5874
5875 if test "$ac_cv_tls" != "none"; then
5876
5877cat >>confdefs.h <<_ACEOF
5878#define TLS $ac_cv_tls
5879_ACEOF
5880
5881 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005883$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005884
5885fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005886
Theodore Ts'o5610f992007-12-31 11:16:56 -05005887# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005888if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005889 enableval=$enable_uuidd; if test "$enableval" = "no"
5890then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005892$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005893 UUIDD_CMT="#"
5894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005895 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005896
5897 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005899$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005900fi
5901
5902else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005903 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005904
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005905if test -z "$UUID_CMT"
5906then
5907 UUIDD_CMT=""
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005909$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005910else
5911 UUIDD_CMT="#"
5912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5913$as_echo "Disabling uuidd by default" >&6; }
5914fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005915
5916fi
5917
5918
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005919
5920# Check whether --enable-mmp was given.
5921if test "${enable_mmp+set}" = set; then :
5922 enableval=$enable_mmp; if test "$enableval" = "no"
5923then
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5925$as_echo "Disabling mmp support" >&6; }
5926else
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5928$as_echo "Enabling mmp support" >&6; }
5929 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5930
5931fi
5932
5933else
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5935$as_echo "Enabling mmp support by default" >&6; }
5936$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5937
5938
5939fi
5940
Tony Breeds1625bf42012-07-30 14:44:12 -04005941
5942# Check whether --enable-bmap-stats was given.
5943if test "${enable_bmap_stats+set}" = set; then :
5944 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5945then
5946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5947$as_echo "Disabling bitmap statistics support" >&6; }
5948else
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5950$as_echo "Enabling bitmap statistics support" >&6; }
5951 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5952
5953fi
5954
5955else
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5957$as_echo "Enabling bitmap statistics support by default" >&6; }
5958$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5959
5960
5961fi
5962
5963
5964# Check whether --enable-bmap-stats-ops was given.
5965if test "${enable_bmap_stats_ops+set}" = set; then :
5966 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5967then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5969$as_echo "Disabling additional bitmap statistics" >&6; }
5970else
5971 if test "x${enable_bmap_stats}" = "xno"; then :
5972 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5973$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5974as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5975See \`config.log' for more details" "$LINENO" 5; }
5976fi
5977
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5979$as_echo "Enabling additional bitmap statistics" >&6; }
5980 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5981
5982fi
5983
5984else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5986$as_echo "Disabling additional bitmap statistics by default" >&6; }
5987
5988fi
5989
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005990MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
5991
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005992GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005993PACKAGE=e2fsprogs
5994VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005995VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005997cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005998#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005999_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006000
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006001
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006002cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006003#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006004_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006005
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006006
6007
6008
6009
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006011$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6012set x ${MAKE-make}
6013ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006014if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006015 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006016else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006017 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006018SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006019all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006020 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006021_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006022# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006023case `${MAKE-make} -f conftest.make 2>/dev/null` in
6024 *@@@%%%=?*=@@@%%%*)
6025 eval ac_cv_prog_make_${ac_make}_set=yes;;
6026 *)
6027 eval ac_cv_prog_make_${ac_make}_set=no;;
6028esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006031if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006033$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006034 SET_MAKE=
6035else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006037$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006038 SET_MAKE="MAKE=${MAKE-make}"
6039fi
6040
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006041# Find a good install program. We prefer a C program (faster),
6042# so one script is as good as another. But avoid the broken or
6043# incompatible versions:
6044# SysV /etc/install, /usr/sbin/install
6045# SunOS /usr/etc/install
6046# IRIX /sbin/install
6047# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006048# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006049# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6050# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6051# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006053# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006054# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006056$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006057if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006058if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006059 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006060else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006066 # Account for people who put trailing slashes in PATH elements.
6067case $as_dir/ in #((
6068 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006069 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006070 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006071 /usr/ucb/* ) ;;
6072 *)
6073 # OSF1 and SCO ODT 3.0 have their own names for install.
6074 # Don't use installbsd from OSF since it installs stuff as root
6075 # by default.
6076 for ac_prog in ginstall scoinst install; do
6077 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006078 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006079 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006080 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006081 # AIX install. It has an incompatible calling convention.
6082 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083 elif test $ac_prog = install &&
6084 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6085 # program-specific install script used by HP pwplus--don't use.
6086 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006087 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006088 rm -rf conftest.one conftest.two conftest.dir
6089 echo one > conftest.one
6090 echo two > conftest.two
6091 mkdir conftest.dir
6092 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6093 test -s conftest.one && test -s conftest.two &&
6094 test -s conftest.dir/conftest.one &&
6095 test -s conftest.dir/conftest.two
6096 then
6097 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6098 break 3
6099 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006100 fi
6101 fi
6102 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006103 done
6104 ;;
6105esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006106
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006107 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006108IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006109
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006110rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006111
6112fi
6113 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006115 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006116 # As a last resort, use the slow shell script. Don't cache a
6117 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006118 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006119 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006121 fi
6122fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006124$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006125
6126# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6127# It thinks the first close brace ends the variable substitution.
6128test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6129
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006130test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006131
6132test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6133
Theodore Ts'o93613952014-07-03 23:44:13 -04006134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6135$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6136if test -z "$MKDIR_P"; then
6137 if ${ac_cv_path_mkdir+:} false; then :
6138 $as_echo_n "(cached) " >&6
6139else
6140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6141for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6142do
6143 IFS=$as_save_IFS
6144 test -z "$as_dir" && as_dir=.
6145 for ac_prog in mkdir gmkdir; do
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6148 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6149 'mkdir (GNU coreutils) '* | \
6150 'mkdir (coreutils) '* | \
6151 'mkdir (fileutils) '4.1*)
6152 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6153 break 3;;
6154 esac
6155 done
6156 done
6157 done
6158IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006159
Theodore Ts'o93613952014-07-03 23:44:13 -04006160fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006161
Theodore Ts'o93613952014-07-03 23:44:13 -04006162 test -d ./--version && rmdir ./--version
6163 if test "${ac_cv_path_mkdir+set}" = set; then
6164 MKDIR_P="$ac_cv_path_mkdir -p"
6165 else
6166 # As a last resort, use the slow shell script. Don't cache a
6167 # value for MKDIR_P within a source directory, because that will
6168 # break other packages using the cache if that directory is
6169 # removed, or if the value is a relative name.
6170 MKDIR_P="$ac_install_sh -d"
6171 fi
6172fi
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6174$as_echo "$MKDIR_P" >&6; }
6175
6176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6177$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6178if ${ac_cv_path_SED+:} false; then :
6179 $as_echo_n "(cached) " >&6
6180else
6181 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6182 for ac_i in 1 2 3 4 5 6 7; do
6183 ac_script="$ac_script$as_nl$ac_script"
6184 done
6185 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6186 { ac_script=; unset ac_script;}
6187 if test -z "$SED"; then
6188 ac_path_SED_found=false
6189 # Loop through the user's path and test for each of PROGNAME-LIST
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_prog in sed gsed; do
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6198 as_fn_executable_p "$ac_path_SED" || continue
6199# Check for GNU ac_path_SED and select it if it is found.
6200 # Check for GNU $ac_path_SED
6201case `"$ac_path_SED" --version 2>&1` in
6202*GNU*)
6203 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6204*)
6205 ac_count=0
6206 $as_echo_n 0123456789 >"conftest.in"
6207 while :
6208 do
6209 cat "conftest.in" "conftest.in" >"conftest.tmp"
6210 mv "conftest.tmp" "conftest.in"
6211 cp "conftest.in" "conftest.nl"
6212 $as_echo '' >> "conftest.nl"
6213 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6214 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6215 as_fn_arith $ac_count + 1 && ac_count=$as_val
6216 if test $ac_count -gt ${ac_path_SED_max-0}; then
6217 # Best one so far, save it but keep looking for a better one
6218 ac_cv_path_SED="$ac_path_SED"
6219 ac_path_SED_max=$ac_count
6220 fi
6221 # 10*(2^10) chars as input seems more than enough
6222 test $ac_count -gt 10 && break
6223 done
6224 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6225esac
6226
6227 $ac_path_SED_found && break 3
6228 done
6229 done
6230 done
6231IFS=$as_save_IFS
6232 if test -z "$ac_cv_path_SED"; then
6233 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6234 fi
6235else
6236 ac_cv_path_SED=$SED
6237fi
6238
6239fi
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6241$as_echo "$ac_cv_path_SED" >&6; }
6242 SED="$ac_cv_path_SED"
6243 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006244
6245
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006247$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006248 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006249if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006250 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006251else
6252 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006253fi
6254
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006256$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006257
6258
6259
6260
Theodore Ts'o93613952014-07-03 23:44:13 -04006261 GETTEXT_MACRO_VERSION=0.18
6262
6263
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006264
6265
6266# Prepare PATH_SEPARATOR.
6267# The user is always right.
6268if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006269 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6270 # contains only /bin. Note that ksh looks also at the FPATH variable,
6271 # so we have to set that as well for the test.
6272 PATH_SEPARATOR=:
6273 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6274 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6275 || PATH_SEPARATOR=';'
6276 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006277fi
6278
6279# Find out how to test for executable files. Don't use a zero-byte file,
6280# as systems may use methods other than mode bits to determine executability.
6281cat >conf$$.file <<_ASEOF
6282#! /bin/sh
6283exit 0
6284_ASEOF
6285chmod +x conf$$.file
6286if test -x conf$$.file >/dev/null 2>&1; then
6287 ac_executable_p="test -x"
6288else
6289 ac_executable_p="test -f"
6290fi
6291rm -f conf$$.file
6292
6293# Extract the first word of "msgfmt", so it can be a program name with args.
6294set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006296$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006297if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006298 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006299else
6300 case "$MSGFMT" in
6301 [\\/]* | ?:[\\/]*)
6302 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6303 ;;
6304 *)
6305 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6306 for ac_dir in $PATH; do
6307 IFS="$ac_save_IFS"
6308 test -z "$ac_dir" && ac_dir=.
6309 for ac_exec_ext in '' $ac_executable_extensions; do
6310 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006311 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6312 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006313 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6314 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6315 break 2
6316 fi
6317 fi
6318 done
6319 done
6320 IFS="$ac_save_IFS"
6321 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6322 ;;
6323esac
6324fi
6325MSGFMT="$ac_cv_path_MSGFMT"
6326if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006328$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006329else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006331$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006332fi
6333
6334 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6335set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006337$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006338if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006339 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006340else
6341 case $GMSGFMT in
6342 [\\/]* | ?:[\\/]*)
6343 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6344 ;;
6345 *)
6346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6347for as_dir in $PATH
6348do
6349 IFS=$as_save_IFS
6350 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006351 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006353 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006355 break 2
6356 fi
6357done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006358 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006359IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006360
6361 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6362 ;;
6363esac
6364fi
6365GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006366if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006368$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006369else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006371$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006372fi
6373
6374
6375
Theodore Ts'o93613952014-07-03 23:44:13 -04006376 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6377 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6378 *) MSGFMT_015=$MSGFMT ;;
6379 esac
6380
6381 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6382 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6383 *) GMSGFMT_015=$GMSGFMT ;;
6384 esac
6385
6386
Theodore Ts'oe1052142006-10-21 21:46:47 -04006387
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006388# Prepare PATH_SEPARATOR.
6389# The user is always right.
6390if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006391 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6392 # contains only /bin. Note that ksh looks also at the FPATH variable,
6393 # so we have to set that as well for the test.
6394 PATH_SEPARATOR=:
6395 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6396 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6397 || PATH_SEPARATOR=';'
6398 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006399fi
6400
6401# Find out how to test for executable files. Don't use a zero-byte file,
6402# as systems may use methods other than mode bits to determine executability.
6403cat >conf$$.file <<_ASEOF
6404#! /bin/sh
6405exit 0
6406_ASEOF
6407chmod +x conf$$.file
6408if test -x conf$$.file >/dev/null 2>&1; then
6409 ac_executable_p="test -x"
6410else
6411 ac_executable_p="test -f"
6412fi
6413rm -f conf$$.file
6414
6415# Extract the first word of "xgettext", so it can be a program name with args.
6416set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006418$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006419if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006420 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421else
6422 case "$XGETTEXT" in
6423 [\\/]* | ?:[\\/]*)
6424 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6425 ;;
6426 *)
6427 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6428 for ac_dir in $PATH; do
6429 IFS="$ac_save_IFS"
6430 test -z "$ac_dir" && ac_dir=.
6431 for ac_exec_ext in '' $ac_executable_extensions; do
6432 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006433 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6434 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 -05006435 (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
6436 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6437 break 2
6438 fi
6439 fi
6440 done
6441 done
6442 IFS="$ac_save_IFS"
6443 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6444 ;;
6445esac
6446fi
6447XGETTEXT="$ac_cv_path_XGETTEXT"
6448if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006450$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006453$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454fi
6455
6456 rm -f messages.po
6457
Theodore Ts'o93613952014-07-03 23:44:13 -04006458 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6459 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6460 *) XGETTEXT_015=$XGETTEXT ;;
6461 esac
6462
6463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006464
6465# Prepare PATH_SEPARATOR.
6466# The user is always right.
6467if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006468 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6469 # contains only /bin. Note that ksh looks also at the FPATH variable,
6470 # so we have to set that as well for the test.
6471 PATH_SEPARATOR=:
6472 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6473 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6474 || PATH_SEPARATOR=';'
6475 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006476fi
6477
6478# Find out how to test for executable files. Don't use a zero-byte file,
6479# as systems may use methods other than mode bits to determine executability.
6480cat >conf$$.file <<_ASEOF
6481#! /bin/sh
6482exit 0
6483_ASEOF
6484chmod +x conf$$.file
6485if test -x conf$$.file >/dev/null 2>&1; then
6486 ac_executable_p="test -x"
6487else
6488 ac_executable_p="test -f"
6489fi
6490rm -f conf$$.file
6491
6492# Extract the first word of "msgmerge", so it can be a program name with args.
6493set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006495$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006496if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006497 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006498else
6499 case "$MSGMERGE" in
6500 [\\/]* | ?:[\\/]*)
6501 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6502 ;;
6503 *)
6504 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6505 for ac_dir in $PATH; do
6506 IFS="$ac_save_IFS"
6507 test -z "$ac_dir" && ac_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006510 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6511 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006512 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6513 break 2
6514 fi
6515 fi
6516 done
6517 done
6518 IFS="$ac_save_IFS"
6519 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6520 ;;
6521esac
6522fi
6523MSGMERGE="$ac_cv_path_MSGMERGE"
6524if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006526$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006529$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530fi
6531
6532
Theodore Ts'o93613952014-07-03 23:44:13 -04006533 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006535
Theodore Ts'o93613952014-07-03 23:44:13 -04006536 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6537
6538
6539 ac_config_commands="$ac_config_commands po-directories"
6540
6541
6542
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6544$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6545if ${ac_cv_gnu_library_2+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547else
6548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6549/* end confdefs.h. */
6550
6551#include <features.h>
6552#ifdef __GNU_LIBRARY__
6553 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6554 Lucky GNU user
6555 #endif
6556#endif
6557
6558_ACEOF
6559if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6560 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6561 ac_cv_gnu_library_2=yes
6562else
6563 ac_cv_gnu_library_2=no
6564fi
6565rm -f conftest*
6566
6567
6568
6569fi
6570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6571$as_echo "$ac_cv_gnu_library_2" >&6; }
6572
6573 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006574
6575
6576if test -n "$ac_tool_prefix"; then
6577 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6578set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006580$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006581if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006582 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006583else
6584 if test -n "$RANLIB"; then
6585 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6586else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006587as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6588for as_dir in $PATH
6589do
6590 IFS=$as_save_IFS
6591 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006592 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006594 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006596 break 2
6597 fi
6598done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006599 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006600IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006601
6602fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603fi
6604RANLIB=$ac_cv_prog_RANLIB
6605if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006607$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006608else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006610$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006611fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006612
Theodore Ts'oe1052142006-10-21 21:46:47 -04006613
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006614fi
6615if test -z "$ac_cv_prog_RANLIB"; then
6616 ac_ct_RANLIB=$RANLIB
6617 # Extract the first word of "ranlib", so it can be a program name with args.
6618set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006620$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006621if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006622 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006623else
6624 if test -n "$ac_ct_RANLIB"; then
6625 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6626else
6627as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6628for as_dir in $PATH
6629do
6630 IFS=$as_save_IFS
6631 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006632 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006634 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636 break 2
6637 fi
6638done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006639 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006640IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642fi
6643fi
6644ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6645if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006647$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006648else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006650$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006651fi
6652
Theodore Ts'oe1052142006-10-21 21:46:47 -04006653 if test "x$ac_ct_RANLIB" = x; then
6654 RANLIB=":"
6655 else
6656 case $cross_compiling:$ac_tool_warned in
6657yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006658{ $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 +01006659$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006660ac_tool_warned=yes ;;
6661esac
6662 RANLIB=$ac_ct_RANLIB
6663 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664else
6665 RANLIB="$ac_cv_prog_RANLIB"
6666fi
6667
6668
Theodore Ts'o93613952014-07-03 23:44:13 -04006669
6670 CFLAG_VISIBILITY=
6671 HAVE_VISIBILITY=0
6672 if test -n "$GCC"; then
6673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6674$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6675 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006676 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006677else
Theodore Ts'o93613952014-07-03 23:44:13 -04006678
6679 gl_save_CFLAGS="$CFLAGS"
6680 CFLAGS="$CFLAGS -Werror"
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006682/* end confdefs.h. */
6683
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684int
6685main ()
6686{
Theodore Ts'o93613952014-07-03 23:44:13 -04006687
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006688 ;
6689 return 0;
6690}
6691_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006692if ac_fn_c_try_compile "$LINENO"; then :
6693 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006694else
Theodore Ts'o93613952014-07-03 23:44:13 -04006695 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006699fi
6700
Theodore Ts'o93613952014-07-03 23:44:13 -04006701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6702$as_echo "$gl_cv_cc_vis_werror" >&6; }
6703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6704$as_echo_n "checking for simple visibility declarations... " >&6; }
6705 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006706 $as_echo_n "(cached) " >&6
6707else
Theodore Ts'o93613952014-07-03 23:44:13 -04006708
6709 gl_save_CFLAGS="$CFLAGS"
6710 CFLAGS="$CFLAGS -fvisibility=hidden"
6711 if test $gl_cv_cc_vis_werror = yes; then
6712 CFLAGS="$CFLAGS -Werror"
6713 fi
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6715/* end confdefs.h. */
6716extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6717 extern __attribute__((__visibility__("default"))) int exportedvar;
6718 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6719 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6720 void dummyfunc (void) {}
6721
6722int
6723main ()
6724{
6725
6726 ;
6727 return 0;
6728}
6729_ACEOF
6730if ac_fn_c_try_compile "$LINENO"; then :
6731 gl_cv_cc_visibility=yes
6732else
6733 gl_cv_cc_visibility=no
6734fi
6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6736 CFLAGS="$gl_save_CFLAGS"
6737fi
6738
6739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6740$as_echo "$gl_cv_cc_visibility" >&6; }
6741 if test $gl_cv_cc_visibility = yes; then
6742 CFLAG_VISIBILITY="-fvisibility=hidden"
6743 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006744 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006745 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006746
6747
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006748
Theodore Ts'o93613952014-07-03 23:44:13 -04006749cat >>confdefs.h <<_ACEOF
6750#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006751_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006752
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006753
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006755$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006756if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006757 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006758else
6759 ac_cv_c_inline=no
6760for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006762/* end confdefs.h. */
6763#ifndef __cplusplus
6764typedef int foo_t;
6765static $ac_kw foo_t static_foo () {return 0; }
6766$ac_kw foo_t foo () {return 0; }
6767#endif
6768
6769_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006770if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006771 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006772fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6774 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006775done
6776
6777fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006779$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006781case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006782 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006783 *)
6784 case $ac_cv_c_inline in
6785 no) ac_val=;;
6786 *) ac_val=$ac_cv_c_inline;;
6787 esac
6788 cat >>confdefs.h <<_ACEOF
6789#ifndef __cplusplus
6790#define inline $ac_val
6791#endif
6792_ACEOF
6793 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006794esac
6795
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006796ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006797if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006798
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006799else
6800
6801cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006802#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006803_ACEOF
6804
6805fi
6806
6807
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006809$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006810if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006811 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814/* end confdefs.h. */
6815#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006816 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006817int
6818main ()
6819{
Theodore Ts'o93613952014-07-03 23:44:13 -04006820uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006821 ;
6822 return 0;
6823}
6824_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006825if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006826 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006827else
Theodore Ts'o93613952014-07-03 23:44:13 -04006828 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6833$as_echo "$gl_cv_header_stdint_h" >&6; }
6834 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835
6836cat >>confdefs.h <<_ACEOF
6837#define HAVE_STDINT_H_WITH_UINTMAX 1
6838_ACEOF
6839
6840 fi
6841
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006842# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6843# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006845$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006846if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006847 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006848else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006851#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006852int
6853main ()
6854{
6855char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006856 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857 ;
6858 return 0;
6859}
6860_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006861if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006863else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006864 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006865fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006866rm -f core conftest.err conftest.$ac_objext \
6867 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006868fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006870$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871if test $ac_cv_working_alloca_h = yes; then
6872
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006873$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006874
6875fi
6876
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006878$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006879if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006880 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006881else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006884#ifdef __GNUC__
6885# define alloca __builtin_alloca
6886#else
6887# ifdef _MSC_VER
6888# include <malloc.h>
6889# define alloca _alloca
6890# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006891# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006892# include <alloca.h>
6893# else
6894# ifdef _AIX
6895 #pragma alloca
6896# else
6897# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006898void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006899# endif
6900# endif
6901# endif
6902# endif
6903#endif
6904
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006905int
6906main ()
6907{
6908char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006909 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006910 ;
6911 return 0;
6912}
6913_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006914if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006915 ac_cv_func_alloca_works=yes
6916else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006917 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006919rm -f core conftest.err conftest.$ac_objext \
6920 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006921fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006923$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006924
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006925if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006926
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006927$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006928
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006929else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006930 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6931# that cause trouble. Some versions do not even contain alloca or
6932# contain a buggy version. If you still want to use their alloca,
6933# use ar to extract alloca.o from them instead of compiling alloca.c.
6934
Theodore Ts'oe1052142006-10-21 21:46:47 -04006935ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006937$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938
6939
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006941$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006942if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006943 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006944else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006946/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006947#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006948webecray
6949#else
6950wenotbecray
6951#endif
6952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006954if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006955 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006956 ac_cv_os_cray=yes
6957else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006958 ac_cv_os_cray=no
6959fi
6960rm -f conftest*
6961
6962fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006964$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006965if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006966 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006967 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006968ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006969if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006970
6971cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006972#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006973_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006976fi
6977
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006978 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006979fi
6980
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006982$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006983if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006984 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006985else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006986 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987 ac_cv_c_stack_direction=0
6988else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006990/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006991$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006992int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006993find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006994{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006995 int dir, dummy = 0;
6996 if (! addr)
6997 addr = &dummy;
6998 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6999 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7000 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007001}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002
7003int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007004main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007005{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007006 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007009if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007010 ac_cv_c_stack_direction=1
7011else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007012 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007013fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7015 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007016fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007017
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007018fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007020$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007022#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023_ACEOF
7024
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007025
7026fi
7027
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007028
7029
7030
7031 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007032do :
7033 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007034ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7035"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007036if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007037 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007038#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039_ACEOF
7040
7041fi
7042
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007043done
7044
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007045
7046
7047
7048
7049
7050
7051
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007052for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007053do :
7054 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007055if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007057#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058_ACEOF
7059
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007060fi
7061done
7062
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007064$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007065if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007066 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007068 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007069 ac_cv_func_mmap_fixed_mapped=no
7070else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072/* end confdefs.h. */
7073$ac_includes_default
7074/* malloc might have been renamed as rpl_malloc. */
7075#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007076
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007077/* Thanks to Mike Haertel and Jim Avera for this test.
7078 Here is a matrix of mmap possibilities:
7079 mmap private not fixed
7080 mmap private fixed at somewhere currently unmapped
7081 mmap private fixed at somewhere already mapped
7082 mmap shared not fixed
7083 mmap shared fixed at somewhere currently unmapped
7084 mmap shared fixed at somewhere already mapped
7085 For private mappings, we should verify that changes cannot be read()
7086 back from the file, nor mmap's back from the file at a different
7087 address. (There have been systems where private was not correctly
7088 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007090 like early versions of FreeBSD and possibly contemporary NetBSD.)
7091 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007092 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007093
7094 Grep wants private fixed already mapped.
7095 The main things grep needs to know about mmap are:
7096 * does it exist and is it safe to write into the mmap'd area
7097 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007099#include <fcntl.h>
7100#include <sys/mman.h>
7101
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007102#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103char *malloc ();
7104#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007105
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007106/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007107#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007108# ifdef _SC_PAGESIZE
7109# define getpagesize() sysconf(_SC_PAGESIZE)
7110# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007111# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007112# include <sys/param.h>
7113# ifdef EXEC_PAGESIZE
7114# define getpagesize() EXEC_PAGESIZE
7115# else /* no EXEC_PAGESIZE */
7116# ifdef NBPG
7117# define getpagesize() NBPG * CLSIZE
7118# ifndef CLSIZE
7119# define CLSIZE 1
7120# endif /* no CLSIZE */
7121# else /* no NBPG */
7122# ifdef NBPC
7123# define getpagesize() NBPC
7124# else /* no NBPC */
7125# ifdef PAGESIZE
7126# define getpagesize() PAGESIZE
7127# endif /* PAGESIZE */
7128# endif /* no NBPC */
7129# endif /* no NBPG */
7130# endif /* no EXEC_PAGESIZE */
7131# else /* no HAVE_SYS_PARAM_H */
7132# define getpagesize() 8192 /* punt totally */
7133# endif /* no HAVE_SYS_PARAM_H */
7134# endif /* no _SC_PAGESIZE */
7135
7136#endif /* no HAVE_GETPAGESIZE */
7137
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007138int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007140{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007141 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007142 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007144 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007146 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148 /* First, make a file with some known garbage in it. */
7149 data = (char *) malloc (pagesize);
7150 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007151 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007152 for (i = 0; i < pagesize; ++i)
7153 *(data + i) = rand ();
7154 umask (0);
7155 fd = creat ("conftest.mmap", 0600);
7156 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007157 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007158 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007159 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007160 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007161
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007162 /* Next, check that the tail of a page is zero-filled. File must have
7163 non-zero length, otherwise we risk SIGBUS for entire page. */
7164 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7165 if (fd2 < 0)
7166 return 4;
7167 cdata2 = "";
7168 if (write (fd2, cdata2, 1) != 1)
7169 return 5;
7170 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7171 if (data2 == MAP_FAILED)
7172 return 6;
7173 for (i = 0; i < pagesize; ++i)
7174 if (*(data2 + i))
7175 return 7;
7176 close (fd2);
7177 if (munmap (data2, pagesize))
7178 return 8;
7179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180 /* Next, try to mmap the file at a fixed address which already has
7181 something else allocated at it. If we can, also make sure that
7182 we see the same garbage. */
7183 fd = open ("conftest.mmap", O_RDWR);
7184 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007185 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007186 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007188 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007189 for (i = 0; i < pagesize; ++i)
7190 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007191 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007193 /* Finally, make sure that changes to the mapped area do not
7194 percolate back to the file as seen by read(). (This is a bug on
7195 some variants of i386 svr4.0.) */
7196 for (i = 0; i < pagesize; ++i)
7197 *(data2 + i) = *(data2 + i) + 1;
7198 data3 = (char *) malloc (pagesize);
7199 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007200 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007201 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007202 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007203 for (i = 0; i < pagesize; ++i)
7204 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007205 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007206 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007207 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007208}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007209_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007210if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007211 ac_cv_func_mmap_fixed_mapped=yes
7212else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007213 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007214fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007215rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7216 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007217fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007218
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007219fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007221$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007222if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007224$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007225
7226fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007227rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007228
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007232$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007233if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007234 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007235else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236
Theodore Ts'o93613952014-07-03 23:44:13 -04007237 gt_cv_int_divbyzero_sigfpe=
7238 case "$host_os" in
7239 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7240 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7241 # compiling. If we were to perform the real test, 1 Crash Report
7242 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007243 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007244 i[34567]86 | x86_64)
7245 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007246 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007247 ;;
7248 esac
7249 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7250 if test "$cross_compiling" = yes; then :
7251
7252 # Guess based on the CPU.
7253 case "$host_cpu" in
7254 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7255 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7256 *)
7257 gt_cv_int_divbyzero_sigfpe="guessing no";;
7258 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007259
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007260else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007262/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007263
7264#include <stdlib.h>
7265#include <signal.h>
7266
7267static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007268sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007269{
7270 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7271 exit (sig != SIGFPE);
7272}
7273
7274int x = 1;
7275int y = 0;
7276int z;
7277int nan;
7278
7279int main ()
7280{
7281 signal (SIGFPE, sigfpe_handler);
7282/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7283#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7284 signal (SIGTRAP, sigfpe_handler);
7285#endif
7286/* Linux/SPARC yields signal SIGILL. */
7287#if defined (__sparc__) && defined (__linux__)
7288 signal (SIGILL, sigfpe_handler);
7289#endif
7290
7291 z = x / y;
7292 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007293 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007294}
7295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007296_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007297if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007298 gt_cv_int_divbyzero_sigfpe=yes
7299else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007300 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7303 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007304fi
7305
Theodore Ts'o93613952014-07-03 23:44:13 -04007306 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007307
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007308fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007310$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007311 case "$gt_cv_int_divbyzero_sigfpe" in
7312 *yes) value=1;;
7313 *) value=0;;
7314 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007315
7316cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007317#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007318_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007319
7320
7321
Theodore Ts'o93613952014-07-03 23:44:13 -04007322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7323$as_echo_n "checking for inttypes.h... " >&6; }
7324if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007325 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007326else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007329
7330#include <sys/types.h>
7331#include <inttypes.h>
7332
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007333int
7334main ()
7335{
Theodore Ts'o93613952014-07-03 23:44:13 -04007336uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007337 ;
7338 return 0;
7339}
7340_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007341if ac_fn_c_try_compile "$LINENO"; then :
7342 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007343else
Theodore Ts'o93613952014-07-03 23:44:13 -04007344 gl_cv_header_inttypes_h=no
7345fi
7346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7347fi
7348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7349$as_echo "$gl_cv_header_inttypes_h" >&6; }
7350 if test $gl_cv_header_inttypes_h = yes; then
7351
7352cat >>confdefs.h <<_ACEOF
7353#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7354_ACEOF
7355
7356 fi
7357
7358
7359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7360$as_echo_n "checking for unsigned long long int... " >&6; }
7361if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7362 $as_echo_n "(cached) " >&6
7363else
7364 ac_cv_type_unsigned_long_long_int=yes
7365 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h. */
7368
7369 /* For now, do not test the preprocessor; as of 2007 there are too many
7370 implementations with broken preprocessors. Perhaps this can
7371 be revisited in 2012. In the meantime, code should not expect
7372 #if to work with literals wider than 32 bits. */
7373 /* Test literals. */
7374 long long int ll = 9223372036854775807ll;
7375 long long int nll = -9223372036854775807LL;
7376 unsigned long long int ull = 18446744073709551615ULL;
7377 /* Test constant expressions. */
7378 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7379 ? 1 : -1)];
7380 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7381 ? 1 : -1)];
7382 int i = 63;
7383int
7384main ()
7385{
7386/* Test availability of runtime routines for shift and division. */
7387 long long int llmax = 9223372036854775807ll;
7388 unsigned long long int ullmax = 18446744073709551615ull;
7389 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7390 | (llmax / ll) | (llmax % ll)
7391 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7392 | (ullmax / ull) | (ullmax % ull));
7393 ;
7394 return 0;
7395}
7396
7397_ACEOF
7398if ac_fn_c_try_link "$LINENO"; then :
7399
7400else
7401 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007402fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007403rm -f core conftest.err conftest.$ac_objext \
7404 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007405 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007406fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7408$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7409 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007410
Theodore Ts'o93613952014-07-03 23:44:13 -04007411$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007412
7413 fi
7414
7415
7416
7417
Theodore Ts'o93613952014-07-03 23:44:13 -04007418 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007419
Theodore Ts'o93613952014-07-03 23:44:13 -04007420 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007421 && ac_type='unsigned long long' \
7422 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007423
7424cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007425#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007426_ACEOF
7427
7428 else
7429
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007430$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007431
7432 fi
7433
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007434
Theodore Ts'o93613952014-07-03 23:44:13 -04007435 for ac_header in inttypes.h
7436do :
7437 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7438if test "x$ac_cv_header_inttypes_h" = xyes; then :
7439 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007440#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007442
Theodore Ts'o93613952014-07-03 23:44:13 -04007443fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007444
Theodore Ts'o93613952014-07-03 23:44:13 -04007445done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007446
Theodore Ts'o93613952014-07-03 23:44:13 -04007447 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007448 { $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 +01007449$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007450if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007451 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007452else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007455/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007456
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007457#include <inttypes.h>
7458#ifdef PRId32
7459char *p = PRId32;
7460#endif
7461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007462int
7463main ()
7464{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007466 ;
7467 return 0;
7468}
7469_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007470if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007471 gt_cv_inttypes_pri_broken=no
7472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007473 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007474fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007476
7477fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007479$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007480 fi
7481 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007482
7483cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007484#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007485_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007486
Theodore Ts'o93613952014-07-03 23:44:13 -04007487 PRI_MACROS_BROKEN=1
7488 else
7489 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007490 fi
7491
7492
7493
Theodore Ts'o93613952014-07-03 23:44:13 -04007494
7495
7496
7497
7498 # Check whether --enable-threads was given.
7499if test "${enable_threads+set}" = set; then :
7500 enableval=$enable_threads; gl_use_threads=$enableval
7501else
7502 if test -n "$gl_use_threads_default"; then
7503 gl_use_threads="$gl_use_threads_default"
7504 else
7505 case "$host_os" in
7506 osf*) gl_use_threads=no ;;
7507 cygwin*)
7508 case `uname -r` in
7509 1.[0-5].*) gl_use_threads=no ;;
7510 *) gl_use_threads=yes ;;
7511 esac
7512 ;;
7513 *) gl_use_threads=yes ;;
7514 esac
7515 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516
7517fi
7518
Theodore Ts'o93613952014-07-03 23:44:13 -04007519 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7520 # For using <pthread.h>:
7521 case "$host_os" in
7522 osf*)
7523 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7524 # groks <pthread.h>. cc also understands the flag -pthread, but
7525 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7526 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7527 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7528 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7529 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7530 ;;
7531 esac
7532 # Some systems optimize for single-threaded programs by default, and
7533 # need special flags to disable these optimizations. For example, the
7534 # definition of 'errno' in <errno.h>.
7535 case "$host_os" in
7536 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7537 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7538 esac
7539 fi
7540
7541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542
7543
7544
7545 if test "X$prefix" = "XNONE"; then
7546 acl_final_prefix="$ac_default_prefix"
7547 else
7548 acl_final_prefix="$prefix"
7549 fi
7550 if test "X$exec_prefix" = "XNONE"; then
7551 acl_final_exec_prefix='${prefix}'
7552 else
7553 acl_final_exec_prefix="$exec_prefix"
7554 fi
7555 acl_save_prefix="$prefix"
7556 prefix="$acl_final_prefix"
7557 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7558 prefix="$acl_save_prefix"
7559
7560
Theodore Ts'o93613952014-07-03 23:44:13 -04007561
Theodore Ts'oe1052142006-10-21 21:46:47 -04007562# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007563if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007564 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565else
7566 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007567fi
7568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007569# Prepare PATH_SEPARATOR.
7570# The user is always right.
7571if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007572 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7573 # contains only /bin. Note that ksh looks also at the FPATH variable,
7574 # so we have to set that as well for the test.
7575 PATH_SEPARATOR=:
7576 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7577 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7578 || PATH_SEPARATOR=';'
7579 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007580fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007582ac_prog=ld
7583if test "$GCC" = yes; then
7584 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7586$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007587 case $host in
7588 *-*-mingw*)
7589 # gcc leaves a trailing carriage return which upsets mingw
7590 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7591 *)
7592 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7593 esac
7594 case $ac_prog in
7595 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007596 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007597 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007598 # Canonicalize the pathname of ld
7599 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7600 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7601 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602 done
7603 test -z "$LD" && LD="$ac_prog"
7604 ;;
7605 "")
7606 # If it fails, then pretend we aren't using GCC.
7607 ac_prog=ld
7608 ;;
7609 *)
7610 # If it is relative, then search for the first ld in PATH.
7611 with_gnu_ld=unknown
7612 ;;
7613 esac
7614elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007616$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007619$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007621if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007622 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007623else
7624 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007625 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007626 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007627 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628 test -z "$ac_dir" && ac_dir=.
7629 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7630 acl_cv_path_LD="$ac_dir/$ac_prog"
7631 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007632 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007633 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007634 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007635 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007636 test "$with_gnu_ld" != no && break
7637 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007639 test "$with_gnu_ld" != yes && break
7640 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007641 esac
7642 fi
7643 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007644 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007645else
7646 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7647fi
7648fi
7649
7650LD="$acl_cv_path_LD"
7651if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007653$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007654else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007656$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007658test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007660$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007661if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007662 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007663else
Theodore Ts'o93613952014-07-03 23:44:13 -04007664 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007665case `$LD -v 2>&1 </dev/null` in
7666*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007667 acl_cv_prog_gnu_ld=yes
7668 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007669*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007670 acl_cv_prog_gnu_ld=no
7671 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007672esac
7673fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007675$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007676with_gnu_ld=$acl_cv_prog_gnu_ld
7677
7678
7679
Theodore Ts'o93613952014-07-03 23:44:13 -04007680
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007682$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007683if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007684 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685else
7686
7687 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7688 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7689 . ./conftest.sh
7690 rm -f ./conftest.sh
7691 acl_cv_rpath=done
7692
7693fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007695$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007696 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007697 acl_libext="$acl_cv_libext"
7698 acl_shlibext="$acl_cv_shlibext"
7699 acl_libname_spec="$acl_cv_libname_spec"
7700 acl_library_names_spec="$acl_cv_library_names_spec"
7701 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7702 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7703 acl_hardcode_direct="$acl_cv_hardcode_direct"
7704 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007705 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007706if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007707 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007708else
7709 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007710fi
7711
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007712
7713
7714
Theodore Ts'o93613952014-07-03 23:44:13 -04007715 acl_libdirstem=lib
7716 acl_libdirstem2=
7717 case "$host_os" in
7718 solaris*)
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7720$as_echo_n "checking for 64-bit host... " >&6; }
7721if ${gl_cv_solaris_64bit+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723else
7724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7725/* end confdefs.h. */
7726
7727#ifdef _LP64
7728sixtyfour bits
7729#endif
7730
7731_ACEOF
7732if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7733 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7734 gl_cv_solaris_64bit=yes
7735else
7736 gl_cv_solaris_64bit=no
7737fi
7738rm -f conftest*
7739
7740
7741fi
7742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7743$as_echo "$gl_cv_solaris_64bit" >&6; }
7744 if test $gl_cv_solaris_64bit = yes; then
7745 acl_libdirstem=lib/64
7746 case "$host_cpu" in
7747 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7748 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7749 esac
7750 fi
7751 ;;
7752 *)
7753 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7754 if test -n "$searchpath"; then
7755 acl_save_IFS="${IFS= }"; IFS=":"
7756 for searchdir in $searchpath; do
7757 if test -d "$searchdir"; then
7758 case "$searchdir" in
7759 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7760 */../ | */.. )
7761 # Better ignore directories of this form. They are misleading.
7762 ;;
7763 *) searchdir=`cd "$searchdir" && pwd`
7764 case "$searchdir" in
7765 */lib64 ) acl_libdirstem=lib64 ;;
7766 esac ;;
7767 esac
7768 fi
7769 done
7770 IFS="$acl_save_IFS"
7771 fi
7772 ;;
7773 esac
7774 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7775
7776
7777
7778 gl_threads_api=none
7779 LIBTHREAD=
7780 LTLIBTHREAD=
7781 LIBMULTITHREAD=
7782 LTLIBMULTITHREAD=
7783 if test "$gl_use_threads" != no; then
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7785$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7786if ${gl_cv_have_weak+:} false; then :
7787 $as_echo_n "(cached) " >&6
7788else
7789 gl_cv_have_weak=no
7790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7791/* end confdefs.h. */
7792extern void xyzzy ();
7793#pragma weak xyzzy
7794int
7795main ()
7796{
7797xyzzy();
7798 ;
7799 return 0;
7800}
7801_ACEOF
7802if ac_fn_c_try_link "$LINENO"; then :
7803 gl_cv_have_weak=maybe
7804fi
7805rm -f core conftest.err conftest.$ac_objext \
7806 conftest$ac_exeext conftest.$ac_ext
7807 if test $gl_cv_have_weak = maybe; then
7808 if test "$cross_compiling" = yes; then :
7809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7810/* end confdefs.h. */
7811#ifdef __ELF__
7812 Extensible Linking Format
7813 #endif
7814
7815_ACEOF
7816if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7817 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7818 gl_cv_have_weak="guessing yes"
7819else
7820 gl_cv_have_weak="guessing no"
7821fi
7822rm -f conftest*
7823
7824
7825else
7826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7827/* end confdefs.h. */
7828
7829#include <stdio.h>
7830#pragma weak fputs
7831int main ()
7832{
7833 return (fputs == NULL);
7834}
7835_ACEOF
7836if ac_fn_c_try_run "$LINENO"; then :
7837 gl_cv_have_weak=yes
7838else
7839 gl_cv_have_weak=no
7840fi
7841rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7842 conftest.$ac_objext conftest.beam conftest.$ac_ext
7843fi
7844
7845 fi
7846
7847fi
7848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7849$as_echo "$gl_cv_have_weak" >&6; }
7850 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7851 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7852 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7853 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7854if test "x$ac_cv_header_pthread_h" = xyes; then :
7855 gl_have_pthread_h=yes
7856else
7857 gl_have_pthread_h=no
7858fi
7859
7860
7861 if test "$gl_have_pthread_h" = yes; then
7862 # Other possible tests:
7863 # -lpthreads (FSU threads, PCthreads)
7864 # -lgthreads
7865 gl_have_pthread=
7866 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7867 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7868 # the second one only in libpthread, and lock.c needs it.
7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7870/* end confdefs.h. */
7871#include <pthread.h>
7872int
7873main ()
7874{
7875pthread_mutex_lock((pthread_mutex_t*)0);
7876 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7877 ;
7878 return 0;
7879}
7880_ACEOF
7881if ac_fn_c_try_link "$LINENO"; then :
7882 gl_have_pthread=yes
7883fi
7884rm -f core conftest.err conftest.$ac_objext \
7885 conftest$ac_exeext conftest.$ac_ext
7886 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7887 # since it is defined as a macro on OSF/1.)
7888 if test -n "$gl_have_pthread"; then
7889 # The program links fine without libpthread. But it may actually
7890 # need to link with libpthread in order to create multiple threads.
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7892$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7893if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895else
7896 ac_check_lib_save_LIBS=$LIBS
7897LIBS="-lpthread $LIBS"
7898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7899/* end confdefs.h. */
7900
7901/* Override any GCC internal prototype to avoid an error.
7902 Use char because int might match the return type of a GCC
7903 builtin and then its argument prototype would still apply. */
7904#ifdef __cplusplus
7905extern "C"
7906#endif
7907char pthread_kill ();
7908int
7909main ()
7910{
7911return pthread_kill ();
7912 ;
7913 return 0;
7914}
7915_ACEOF
7916if ac_fn_c_try_link "$LINENO"; then :
7917 ac_cv_lib_pthread_pthread_kill=yes
7918else
7919 ac_cv_lib_pthread_pthread_kill=no
7920fi
7921rm -f core conftest.err conftest.$ac_objext \
7922 conftest$ac_exeext conftest.$ac_ext
7923LIBS=$ac_check_lib_save_LIBS
7924fi
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7926$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7927if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7928 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7929 # On Solaris and HP-UX, most pthread functions exist also in libc.
7930 # Therefore pthread_in_use() needs to actually try to create a
7931 # thread: pthread_create from libc will fail, whereas
7932 # pthread_create will actually create a thread.
7933 case "$host_os" in
7934 solaris* | hpux*)
7935
7936$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7937
7938 esac
7939
7940fi
7941
7942 else
7943 # Some library is needed. Try libpthread and libc_r.
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7945$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7946if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7947 $as_echo_n "(cached) " >&6
7948else
7949 ac_check_lib_save_LIBS=$LIBS
7950LIBS="-lpthread $LIBS"
7951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952/* end confdefs.h. */
7953
7954/* Override any GCC internal prototype to avoid an error.
7955 Use char because int might match the return type of a GCC
7956 builtin and then its argument prototype would still apply. */
7957#ifdef __cplusplus
7958extern "C"
7959#endif
7960char pthread_kill ();
7961int
7962main ()
7963{
7964return pthread_kill ();
7965 ;
7966 return 0;
7967}
7968_ACEOF
7969if ac_fn_c_try_link "$LINENO"; then :
7970 ac_cv_lib_pthread_pthread_kill=yes
7971else
7972 ac_cv_lib_pthread_pthread_kill=no
7973fi
7974rm -f core conftest.err conftest.$ac_objext \
7975 conftest$ac_exeext conftest.$ac_ext
7976LIBS=$ac_check_lib_save_LIBS
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7979$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7980if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7981 gl_have_pthread=yes
7982 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7983 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7984fi
7985
7986 if test -z "$gl_have_pthread"; then
7987 # For FreeBSD 4.
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7989$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7990if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992else
7993 ac_check_lib_save_LIBS=$LIBS
7994LIBS="-lc_r $LIBS"
7995cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7996/* end confdefs.h. */
7997
7998/* Override any GCC internal prototype to avoid an error.
7999 Use char because int might match the return type of a GCC
8000 builtin and then its argument prototype would still apply. */
8001#ifdef __cplusplus
8002extern "C"
8003#endif
8004char pthread_kill ();
8005int
8006main ()
8007{
8008return pthread_kill ();
8009 ;
8010 return 0;
8011}
8012_ACEOF
8013if ac_fn_c_try_link "$LINENO"; then :
8014 ac_cv_lib_c_r_pthread_kill=yes
8015else
8016 ac_cv_lib_c_r_pthread_kill=no
8017fi
8018rm -f core conftest.err conftest.$ac_objext \
8019 conftest$ac_exeext conftest.$ac_ext
8020LIBS=$ac_check_lib_save_LIBS
8021fi
8022{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8023$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8024if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8025 gl_have_pthread=yes
8026 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8027 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8028fi
8029
8030 fi
8031 fi
8032 if test -n "$gl_have_pthread"; then
8033 gl_threads_api=posix
8034
8035$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8036
8037 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8038 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8039
8040$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8041
8042 LIBTHREAD=
8043 LTLIBTHREAD=
8044 fi
8045 fi
8046 fi
8047 fi
8048 fi
8049 if test -z "$gl_have_pthread"; then
8050 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8051 gl_have_solaristhread=
8052 gl_save_LIBS="$LIBS"
8053 LIBS="$LIBS -lthread"
8054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055/* end confdefs.h. */
8056
8057#include <thread.h>
8058#include <synch.h>
8059
8060int
8061main ()
8062{
8063thr_self();
8064 ;
8065 return 0;
8066}
8067_ACEOF
8068if ac_fn_c_try_link "$LINENO"; then :
8069 gl_have_solaristhread=yes
8070fi
8071rm -f core conftest.err conftest.$ac_objext \
8072 conftest$ac_exeext conftest.$ac_ext
8073 LIBS="$gl_save_LIBS"
8074 if test -n "$gl_have_solaristhread"; then
8075 gl_threads_api=solaris
8076 LIBTHREAD=-lthread
8077 LTLIBTHREAD=-lthread
8078 LIBMULTITHREAD="$LIBTHREAD"
8079 LTLIBMULTITHREAD="$LTLIBTHREAD"
8080
8081$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8082
8083 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8084
8085$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8086
8087 LIBTHREAD=
8088 LTLIBTHREAD=
8089 fi
8090 fi
8091 fi
8092 fi
8093 if test "$gl_use_threads" = pth; then
8094 gl_save_CPPFLAGS="$CPPFLAGS"
8095
8096
8097
8098
8099
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8101$as_echo_n "checking how to link with libpth... " >&6; }
8102if ${ac_cv_libpth_libs+:} false; then :
8103 $as_echo_n "(cached) " >&6
8104else
8105
8106
8107
8108
8109
8110
8111
8112
8113 use_additional=yes
8114
8115 acl_save_prefix="$prefix"
8116 prefix="$acl_final_prefix"
8117 acl_save_exec_prefix="$exec_prefix"
8118 exec_prefix="$acl_final_exec_prefix"
8119
8120 eval additional_includedir=\"$includedir\"
8121 eval additional_libdir=\"$libdir\"
8122
8123 exec_prefix="$acl_save_exec_prefix"
8124 prefix="$acl_save_prefix"
8125
8126
8127# Check whether --with-libpth-prefix was given.
8128if test "${with_libpth_prefix+set}" = set; then :
8129 withval=$with_libpth_prefix;
8130 if test "X$withval" = "Xno"; then
8131 use_additional=no
8132 else
8133 if test "X$withval" = "X"; then
8134
8135 acl_save_prefix="$prefix"
8136 prefix="$acl_final_prefix"
8137 acl_save_exec_prefix="$exec_prefix"
8138 exec_prefix="$acl_final_exec_prefix"
8139
8140 eval additional_includedir=\"$includedir\"
8141 eval additional_libdir=\"$libdir\"
8142
8143 exec_prefix="$acl_save_exec_prefix"
8144 prefix="$acl_save_prefix"
8145
8146 else
8147 additional_includedir="$withval/include"
8148 additional_libdir="$withval/$acl_libdirstem"
8149 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8150 && ! test -d "$withval/$acl_libdirstem"; then
8151 additional_libdir="$withval/$acl_libdirstem2"
8152 fi
8153 fi
8154 fi
8155
8156fi
8157
8158 LIBPTH=
8159 LTLIBPTH=
8160 INCPTH=
8161 LIBPTH_PREFIX=
8162 HAVE_LIBPTH=
8163 rpathdirs=
8164 ltrpathdirs=
8165 names_already_handled=
8166 names_next_round='pth '
8167 while test -n "$names_next_round"; do
8168 names_this_round="$names_next_round"
8169 names_next_round=
8170 for name in $names_this_round; do
8171 already_handled=
8172 for n in $names_already_handled; do
8173 if test "$n" = "$name"; then
8174 already_handled=yes
8175 break
8176 fi
8177 done
8178 if test -z "$already_handled"; then
8179 names_already_handled="$names_already_handled $name"
8180 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8181 eval value=\"\$HAVE_LIB$uppername\"
8182 if test -n "$value"; then
8183 if test "$value" = yes; then
8184 eval value=\"\$LIB$uppername\"
8185 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8186 eval value=\"\$LTLIB$uppername\"
8187 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8188 else
8189 :
8190 fi
8191 else
8192 found_dir=
8193 found_la=
8194 found_so=
8195 found_a=
8196 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8197 if test -n "$acl_shlibext"; then
8198 shrext=".$acl_shlibext" # typically: shrext=.so
8199 else
8200 shrext=
8201 fi
8202 if test $use_additional = yes; then
8203 dir="$additional_libdir"
8204 if test -n "$acl_shlibext"; then
8205 if test -f "$dir/$libname$shrext"; then
8206 found_dir="$dir"
8207 found_so="$dir/$libname$shrext"
8208 else
8209 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8210 ver=`(cd "$dir" && \
8211 for f in "$libname$shrext".*; do echo "$f"; done \
8212 | sed -e "s,^$libname$shrext\\\\.,," \
8213 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8214 | sed 1q ) 2>/dev/null`
8215 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8216 found_dir="$dir"
8217 found_so="$dir/$libname$shrext.$ver"
8218 fi
8219 else
8220 eval library_names=\"$acl_library_names_spec\"
8221 for f in $library_names; do
8222 if test -f "$dir/$f"; then
8223 found_dir="$dir"
8224 found_so="$dir/$f"
8225 break
8226 fi
8227 done
8228 fi
8229 fi
8230 fi
8231 if test "X$found_dir" = "X"; then
8232 if test -f "$dir/$libname.$acl_libext"; then
8233 found_dir="$dir"
8234 found_a="$dir/$libname.$acl_libext"
8235 fi
8236 fi
8237 if test "X$found_dir" != "X"; then
8238 if test -f "$dir/$libname.la"; then
8239 found_la="$dir/$libname.la"
8240 fi
8241 fi
8242 fi
8243 if test "X$found_dir" = "X"; then
8244 for x in $LDFLAGS $LTLIBPTH; do
8245
8246 acl_save_prefix="$prefix"
8247 prefix="$acl_final_prefix"
8248 acl_save_exec_prefix="$exec_prefix"
8249 exec_prefix="$acl_final_exec_prefix"
8250 eval x=\"$x\"
8251 exec_prefix="$acl_save_exec_prefix"
8252 prefix="$acl_save_prefix"
8253
8254 case "$x" in
8255 -L*)
8256 dir=`echo "X$x" | sed -e 's/^X-L//'`
8257 if test -n "$acl_shlibext"; then
8258 if test -f "$dir/$libname$shrext"; then
8259 found_dir="$dir"
8260 found_so="$dir/$libname$shrext"
8261 else
8262 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8263 ver=`(cd "$dir" && \
8264 for f in "$libname$shrext".*; do echo "$f"; done \
8265 | sed -e "s,^$libname$shrext\\\\.,," \
8266 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8267 | sed 1q ) 2>/dev/null`
8268 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8269 found_dir="$dir"
8270 found_so="$dir/$libname$shrext.$ver"
8271 fi
8272 else
8273 eval library_names=\"$acl_library_names_spec\"
8274 for f in $library_names; do
8275 if test -f "$dir/$f"; then
8276 found_dir="$dir"
8277 found_so="$dir/$f"
8278 break
8279 fi
8280 done
8281 fi
8282 fi
8283 fi
8284 if test "X$found_dir" = "X"; then
8285 if test -f "$dir/$libname.$acl_libext"; then
8286 found_dir="$dir"
8287 found_a="$dir/$libname.$acl_libext"
8288 fi
8289 fi
8290 if test "X$found_dir" != "X"; then
8291 if test -f "$dir/$libname.la"; then
8292 found_la="$dir/$libname.la"
8293 fi
8294 fi
8295 ;;
8296 esac
8297 if test "X$found_dir" != "X"; then
8298 break
8299 fi
8300 done
8301 fi
8302 if test "X$found_dir" != "X"; then
8303 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8304 if test "X$found_so" != "X"; then
8305 if test "$enable_rpath" = no \
8306 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8307 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8308 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8309 else
8310 haveit=
8311 for x in $ltrpathdirs; do
8312 if test "X$x" = "X$found_dir"; then
8313 haveit=yes
8314 break
8315 fi
8316 done
8317 if test -z "$haveit"; then
8318 ltrpathdirs="$ltrpathdirs $found_dir"
8319 fi
8320 if test "$acl_hardcode_direct" = yes; then
8321 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8322 else
8323 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8324 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8325 haveit=
8326 for x in $rpathdirs; do
8327 if test "X$x" = "X$found_dir"; then
8328 haveit=yes
8329 break
8330 fi
8331 done
8332 if test -z "$haveit"; then
8333 rpathdirs="$rpathdirs $found_dir"
8334 fi
8335 else
8336 haveit=
8337 for x in $LDFLAGS $LIBPTH; do
8338
8339 acl_save_prefix="$prefix"
8340 prefix="$acl_final_prefix"
8341 acl_save_exec_prefix="$exec_prefix"
8342 exec_prefix="$acl_final_exec_prefix"
8343 eval x=\"$x\"
8344 exec_prefix="$acl_save_exec_prefix"
8345 prefix="$acl_save_prefix"
8346
8347 if test "X$x" = "X-L$found_dir"; then
8348 haveit=yes
8349 break
8350 fi
8351 done
8352 if test -z "$haveit"; then
8353 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8354 fi
8355 if test "$acl_hardcode_minus_L" != no; then
8356 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8357 else
8358 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8359 fi
8360 fi
8361 fi
8362 fi
8363 else
8364 if test "X$found_a" != "X"; then
8365 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8366 else
8367 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8368 fi
8369 fi
8370 additional_includedir=
8371 case "$found_dir" in
8372 */$acl_libdirstem | */$acl_libdirstem/)
8373 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8374 if test "$name" = 'pth'; then
8375 LIBPTH_PREFIX="$basedir"
8376 fi
8377 additional_includedir="$basedir/include"
8378 ;;
8379 */$acl_libdirstem2 | */$acl_libdirstem2/)
8380 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8381 if test "$name" = 'pth'; then
8382 LIBPTH_PREFIX="$basedir"
8383 fi
8384 additional_includedir="$basedir/include"
8385 ;;
8386 esac
8387 if test "X$additional_includedir" != "X"; then
8388 if test "X$additional_includedir" != "X/usr/include"; then
8389 haveit=
8390 if test "X$additional_includedir" = "X/usr/local/include"; then
8391 if test -n "$GCC"; then
8392 case $host_os in
8393 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8394 esac
8395 fi
8396 fi
8397 if test -z "$haveit"; then
8398 for x in $CPPFLAGS $INCPTH; do
8399
8400 acl_save_prefix="$prefix"
8401 prefix="$acl_final_prefix"
8402 acl_save_exec_prefix="$exec_prefix"
8403 exec_prefix="$acl_final_exec_prefix"
8404 eval x=\"$x\"
8405 exec_prefix="$acl_save_exec_prefix"
8406 prefix="$acl_save_prefix"
8407
8408 if test "X$x" = "X-I$additional_includedir"; then
8409 haveit=yes
8410 break
8411 fi
8412 done
8413 if test -z "$haveit"; then
8414 if test -d "$additional_includedir"; then
8415 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8416 fi
8417 fi
8418 fi
8419 fi
8420 fi
8421 if test -n "$found_la"; then
8422 save_libdir="$libdir"
8423 case "$found_la" in
8424 */* | *\\*) . "$found_la" ;;
8425 *) . "./$found_la" ;;
8426 esac
8427 libdir="$save_libdir"
8428 for dep in $dependency_libs; do
8429 case "$dep" in
8430 -L*)
8431 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8432 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8433 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8434 haveit=
8435 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8436 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8437 if test -n "$GCC"; then
8438 case $host_os in
8439 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8440 esac
8441 fi
8442 fi
8443 if test -z "$haveit"; then
8444 haveit=
8445 for x in $LDFLAGS $LIBPTH; do
8446
8447 acl_save_prefix="$prefix"
8448 prefix="$acl_final_prefix"
8449 acl_save_exec_prefix="$exec_prefix"
8450 exec_prefix="$acl_final_exec_prefix"
8451 eval x=\"$x\"
8452 exec_prefix="$acl_save_exec_prefix"
8453 prefix="$acl_save_prefix"
8454
8455 if test "X$x" = "X-L$additional_libdir"; then
8456 haveit=yes
8457 break
8458 fi
8459 done
8460 if test -z "$haveit"; then
8461 if test -d "$additional_libdir"; then
8462 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8463 fi
8464 fi
8465 haveit=
8466 for x in $LDFLAGS $LTLIBPTH; do
8467
8468 acl_save_prefix="$prefix"
8469 prefix="$acl_final_prefix"
8470 acl_save_exec_prefix="$exec_prefix"
8471 exec_prefix="$acl_final_exec_prefix"
8472 eval x=\"$x\"
8473 exec_prefix="$acl_save_exec_prefix"
8474 prefix="$acl_save_prefix"
8475
8476 if test "X$x" = "X-L$additional_libdir"; then
8477 haveit=yes
8478 break
8479 fi
8480 done
8481 if test -z "$haveit"; then
8482 if test -d "$additional_libdir"; then
8483 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8484 fi
8485 fi
8486 fi
8487 fi
8488 ;;
8489 -R*)
8490 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8491 if test "$enable_rpath" != no; then
8492 haveit=
8493 for x in $rpathdirs; do
8494 if test "X$x" = "X$dir"; then
8495 haveit=yes
8496 break
8497 fi
8498 done
8499 if test -z "$haveit"; then
8500 rpathdirs="$rpathdirs $dir"
8501 fi
8502 haveit=
8503 for x in $ltrpathdirs; do
8504 if test "X$x" = "X$dir"; then
8505 haveit=yes
8506 break
8507 fi
8508 done
8509 if test -z "$haveit"; then
8510 ltrpathdirs="$ltrpathdirs $dir"
8511 fi
8512 fi
8513 ;;
8514 -l*)
8515 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8516 ;;
8517 *.la)
8518 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8519 ;;
8520 *)
8521 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8522 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8523 ;;
8524 esac
8525 done
8526 fi
8527 else
8528 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8529 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8530 fi
8531 fi
8532 fi
8533 done
8534 done
8535 if test "X$rpathdirs" != "X"; then
8536 if test -n "$acl_hardcode_libdir_separator"; then
8537 alldirs=
8538 for found_dir in $rpathdirs; do
8539 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8540 done
8541 acl_save_libdir="$libdir"
8542 libdir="$alldirs"
8543 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8544 libdir="$acl_save_libdir"
8545 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8546 else
8547 for found_dir in $rpathdirs; do
8548 acl_save_libdir="$libdir"
8549 libdir="$found_dir"
8550 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8551 libdir="$acl_save_libdir"
8552 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8553 done
8554 fi
8555 fi
8556 if test "X$ltrpathdirs" != "X"; then
8557 for found_dir in $ltrpathdirs; do
8558 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8559 done
8560 fi
8561
8562
8563
8564
8565
8566
8567 ac_cv_libpth_libs="$LIBPTH"
8568 ac_cv_libpth_ltlibs="$LTLIBPTH"
8569 ac_cv_libpth_cppflags="$INCPTH"
8570 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8571
8572fi
8573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8574$as_echo "$ac_cv_libpth_libs" >&6; }
8575 LIBPTH="$ac_cv_libpth_libs"
8576 LTLIBPTH="$ac_cv_libpth_ltlibs"
8577 INCPTH="$ac_cv_libpth_cppflags"
8578 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8579
8580 for element in $INCPTH; do
8581 haveit=
8582 for x in $CPPFLAGS; do
8583
8584 acl_save_prefix="$prefix"
8585 prefix="$acl_final_prefix"
8586 acl_save_exec_prefix="$exec_prefix"
8587 exec_prefix="$acl_final_exec_prefix"
8588 eval x=\"$x\"
8589 exec_prefix="$acl_save_exec_prefix"
8590 prefix="$acl_save_prefix"
8591
8592 if test "X$x" = "X$element"; then
8593 haveit=yes
8594 break
8595 fi
8596 done
8597 if test -z "$haveit"; then
8598 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8599 fi
8600 done
8601
8602
8603
8604
8605 HAVE_LIBPTH=yes
8606
8607
8608
8609 gl_have_pth=
8610 gl_save_LIBS="$LIBS"
8611 LIBS="$LIBS $LIBPTH"
8612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8613/* end confdefs.h. */
8614#include <pth.h>
8615int
8616main ()
8617{
8618pth_self();
8619 ;
8620 return 0;
8621}
8622_ACEOF
8623if ac_fn_c_try_link "$LINENO"; then :
8624 gl_have_pth=yes
8625fi
8626rm -f core conftest.err conftest.$ac_objext \
8627 conftest$ac_exeext conftest.$ac_ext
8628 LIBS="$gl_save_LIBS"
8629 if test -n "$gl_have_pth"; then
8630 gl_threads_api=pth
8631 LIBTHREAD="$LIBPTH"
8632 LTLIBTHREAD="$LTLIBPTH"
8633 LIBMULTITHREAD="$LIBTHREAD"
8634 LTLIBMULTITHREAD="$LTLIBTHREAD"
8635
8636$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8637
8638 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8639 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8640
8641$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8642
8643 LIBTHREAD=
8644 LTLIBTHREAD=
8645 fi
8646 fi
8647 else
8648 CPPFLAGS="$gl_save_CPPFLAGS"
8649 fi
8650 fi
8651 if test -z "$gl_have_pthread"; then
8652 case "$gl_use_threads" in
8653 yes | windows | win32) # The 'win32' is for backward compatibility.
8654 if { case "$host_os" in
8655 mingw*) true;;
8656 *) false;;
8657 esac
8658 }; then
8659 gl_threads_api=windows
8660
8661$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8662
8663 fi
8664 ;;
8665 esac
8666 fi
8667 fi
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8669$as_echo_n "checking for multithread API to use... " >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8671$as_echo "$gl_threads_api" >&6; }
8672
8673
8674
8675
8676
8677
8678
8679
8680
8681
8682
8683 if test "$gl_threads_api" = posix; then
8684 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8685 # pthread_rwlock_* functions.
8686 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8687"
8688if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8689
8690$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8691
8692fi
8693
8694 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8696/* end confdefs.h. */
8697
8698 #include <pthread.h>
8699int
8700main ()
8701{
8702
8703#if __FreeBSD__ == 4
8704error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8705#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8706 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8707error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8708#else
8709int x = (int)PTHREAD_MUTEX_RECURSIVE;
8710return !x;
8711#endif
8712
8713 ;
8714 return 0;
8715}
8716_ACEOF
8717if ac_fn_c_try_compile "$LINENO"; then :
8718
8719$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8720
8721fi
8722rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8723 fi
8724 :
8725
8726
8727
8728
8729
8730
8731
8732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008733
8734
8735
8736
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008737 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008738
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008739 acl_save_prefix="$prefix"
8740 prefix="$acl_final_prefix"
8741 acl_save_exec_prefix="$exec_prefix"
8742 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008743
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008744 eval additional_includedir=\"$includedir\"
8745 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008746
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008747 exec_prefix="$acl_save_exec_prefix"
8748 prefix="$acl_save_prefix"
8749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008750
Theodore Ts'oe1052142006-10-21 21:46:47 -04008751# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008752if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008753 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008754 if test "X$withval" = "Xno"; then
8755 use_additional=no
8756 else
8757 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008758
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008759 acl_save_prefix="$prefix"
8760 prefix="$acl_final_prefix"
8761 acl_save_exec_prefix="$exec_prefix"
8762 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008763
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008764 eval additional_includedir=\"$includedir\"
8765 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008766
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008767 exec_prefix="$acl_save_exec_prefix"
8768 prefix="$acl_save_prefix"
8769
8770 else
8771 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008772 additional_libdir="$withval/$acl_libdirstem"
8773 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8774 && ! test -d "$withval/$acl_libdirstem"; then
8775 additional_libdir="$withval/$acl_libdirstem2"
8776 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008777 fi
8778 fi
8779
Theodore Ts'oe1052142006-10-21 21:46:47 -04008780fi
8781
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008782 LIBICONV=
8783 LTLIBICONV=
8784 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008785 LIBICONV_PREFIX=
8786 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008787 rpathdirs=
8788 ltrpathdirs=
8789 names_already_handled=
8790 names_next_round='iconv '
8791 while test -n "$names_next_round"; do
8792 names_this_round="$names_next_round"
8793 names_next_round=
8794 for name in $names_this_round; do
8795 already_handled=
8796 for n in $names_already_handled; do
8797 if test "$n" = "$name"; then
8798 already_handled=yes
8799 break
8800 fi
8801 done
8802 if test -z "$already_handled"; then
8803 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008804 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008805 eval value=\"\$HAVE_LIB$uppername\"
8806 if test -n "$value"; then
8807 if test "$value" = yes; then
8808 eval value=\"\$LIB$uppername\"
8809 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8810 eval value=\"\$LTLIB$uppername\"
8811 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8812 else
8813 :
8814 fi
8815 else
8816 found_dir=
8817 found_la=
8818 found_so=
8819 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008820 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8821 if test -n "$acl_shlibext"; then
8822 shrext=".$acl_shlibext" # typically: shrext=.so
8823 else
8824 shrext=
8825 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008826 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008827 dir="$additional_libdir"
8828 if test -n "$acl_shlibext"; then
8829 if test -f "$dir/$libname$shrext"; then
8830 found_dir="$dir"
8831 found_so="$dir/$libname$shrext"
8832 else
8833 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8834 ver=`(cd "$dir" && \
8835 for f in "$libname$shrext".*; do echo "$f"; done \
8836 | sed -e "s,^$libname$shrext\\\\.,," \
8837 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8838 | sed 1q ) 2>/dev/null`
8839 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8840 found_dir="$dir"
8841 found_so="$dir/$libname$shrext.$ver"
8842 fi
8843 else
8844 eval library_names=\"$acl_library_names_spec\"
8845 for f in $library_names; do
8846 if test -f "$dir/$f"; then
8847 found_dir="$dir"
8848 found_so="$dir/$f"
8849 break
8850 fi
8851 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008852 fi
8853 fi
8854 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008855 if test "X$found_dir" = "X"; then
8856 if test -f "$dir/$libname.$acl_libext"; then
8857 found_dir="$dir"
8858 found_a="$dir/$libname.$acl_libext"
8859 fi
8860 fi
8861 if test "X$found_dir" != "X"; then
8862 if test -f "$dir/$libname.la"; then
8863 found_la="$dir/$libname.la"
8864 fi
8865 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008866 fi
8867 if test "X$found_dir" = "X"; then
8868 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008869
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008870 acl_save_prefix="$prefix"
8871 prefix="$acl_final_prefix"
8872 acl_save_exec_prefix="$exec_prefix"
8873 exec_prefix="$acl_final_exec_prefix"
8874 eval x=\"$x\"
8875 exec_prefix="$acl_save_exec_prefix"
8876 prefix="$acl_save_prefix"
8877
8878 case "$x" in
8879 -L*)
8880 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008881 if test -n "$acl_shlibext"; then
8882 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008883 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008884 found_so="$dir/$libname$shrext"
8885 else
8886 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8887 ver=`(cd "$dir" && \
8888 for f in "$libname$shrext".*; do echo "$f"; done \
8889 | sed -e "s,^$libname$shrext\\\\.,," \
8890 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8891 | sed 1q ) 2>/dev/null`
8892 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8893 found_dir="$dir"
8894 found_so="$dir/$libname$shrext.$ver"
8895 fi
8896 else
8897 eval library_names=\"$acl_library_names_spec\"
8898 for f in $library_names; do
8899 if test -f "$dir/$f"; then
8900 found_dir="$dir"
8901 found_so="$dir/$f"
8902 break
8903 fi
8904 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008905 fi
8906 fi
8907 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008908 if test "X$found_dir" = "X"; then
8909 if test -f "$dir/$libname.$acl_libext"; then
8910 found_dir="$dir"
8911 found_a="$dir/$libname.$acl_libext"
8912 fi
8913 fi
8914 if test "X$found_dir" != "X"; then
8915 if test -f "$dir/$libname.la"; then
8916 found_la="$dir/$libname.la"
8917 fi
8918 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008919 ;;
8920 esac
8921 if test "X$found_dir" != "X"; then
8922 break
8923 fi
8924 done
8925 fi
8926 if test "X$found_dir" != "X"; then
8927 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8928 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008929 if test "$enable_rpath" = no \
8930 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8931 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008932 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8933 else
8934 haveit=
8935 for x in $ltrpathdirs; do
8936 if test "X$x" = "X$found_dir"; then
8937 haveit=yes
8938 break
8939 fi
8940 done
8941 if test -z "$haveit"; then
8942 ltrpathdirs="$ltrpathdirs $found_dir"
8943 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008944 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008945 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8946 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008947 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008948 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8949 haveit=
8950 for x in $rpathdirs; do
8951 if test "X$x" = "X$found_dir"; then
8952 haveit=yes
8953 break
8954 fi
8955 done
8956 if test -z "$haveit"; then
8957 rpathdirs="$rpathdirs $found_dir"
8958 fi
8959 else
8960 haveit=
8961 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008962
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008963 acl_save_prefix="$prefix"
8964 prefix="$acl_final_prefix"
8965 acl_save_exec_prefix="$exec_prefix"
8966 exec_prefix="$acl_final_exec_prefix"
8967 eval x=\"$x\"
8968 exec_prefix="$acl_save_exec_prefix"
8969 prefix="$acl_save_prefix"
8970
8971 if test "X$x" = "X-L$found_dir"; then
8972 haveit=yes
8973 break
8974 fi
8975 done
8976 if test -z "$haveit"; then
8977 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8978 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008979 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008980 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8981 else
8982 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8983 fi
8984 fi
8985 fi
8986 fi
8987 else
8988 if test "X$found_a" != "X"; then
8989 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8990 else
8991 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8992 fi
8993 fi
8994 additional_includedir=
8995 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04008996 */$acl_libdirstem | */$acl_libdirstem/)
8997 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8998 if test "$name" = 'iconv'; then
8999 LIBICONV_PREFIX="$basedir"
9000 fi
9001 additional_includedir="$basedir/include"
9002 ;;
9003 */$acl_libdirstem2 | */$acl_libdirstem2/)
9004 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9005 if test "$name" = 'iconv'; then
9006 LIBICONV_PREFIX="$basedir"
9007 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009008 additional_includedir="$basedir/include"
9009 ;;
9010 esac
9011 if test "X$additional_includedir" != "X"; then
9012 if test "X$additional_includedir" != "X/usr/include"; then
9013 haveit=
9014 if test "X$additional_includedir" = "X/usr/local/include"; then
9015 if test -n "$GCC"; then
9016 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009017 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009018 esac
9019 fi
9020 fi
9021 if test -z "$haveit"; then
9022 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009023
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009024 acl_save_prefix="$prefix"
9025 prefix="$acl_final_prefix"
9026 acl_save_exec_prefix="$exec_prefix"
9027 exec_prefix="$acl_final_exec_prefix"
9028 eval x=\"$x\"
9029 exec_prefix="$acl_save_exec_prefix"
9030 prefix="$acl_save_prefix"
9031
9032 if test "X$x" = "X-I$additional_includedir"; then
9033 haveit=yes
9034 break
9035 fi
9036 done
9037 if test -z "$haveit"; then
9038 if test -d "$additional_includedir"; then
9039 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9040 fi
9041 fi
9042 fi
9043 fi
9044 fi
9045 if test -n "$found_la"; then
9046 save_libdir="$libdir"
9047 case "$found_la" in
9048 */* | *\\*) . "$found_la" ;;
9049 *) . "./$found_la" ;;
9050 esac
9051 libdir="$save_libdir"
9052 for dep in $dependency_libs; do
9053 case "$dep" in
9054 -L*)
9055 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009056 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9057 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009058 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009059 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9060 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009061 if test -n "$GCC"; then
9062 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009063 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009064 esac
9065 fi
9066 fi
9067 if test -z "$haveit"; then
9068 haveit=
9069 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009070
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009071 acl_save_prefix="$prefix"
9072 prefix="$acl_final_prefix"
9073 acl_save_exec_prefix="$exec_prefix"
9074 exec_prefix="$acl_final_exec_prefix"
9075 eval x=\"$x\"
9076 exec_prefix="$acl_save_exec_prefix"
9077 prefix="$acl_save_prefix"
9078
9079 if test "X$x" = "X-L$additional_libdir"; then
9080 haveit=yes
9081 break
9082 fi
9083 done
9084 if test -z "$haveit"; then
9085 if test -d "$additional_libdir"; then
9086 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9087 fi
9088 fi
9089 haveit=
9090 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009091
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009092 acl_save_prefix="$prefix"
9093 prefix="$acl_final_prefix"
9094 acl_save_exec_prefix="$exec_prefix"
9095 exec_prefix="$acl_final_exec_prefix"
9096 eval x=\"$x\"
9097 exec_prefix="$acl_save_exec_prefix"
9098 prefix="$acl_save_prefix"
9099
9100 if test "X$x" = "X-L$additional_libdir"; then
9101 haveit=yes
9102 break
9103 fi
9104 done
9105 if test -z "$haveit"; then
9106 if test -d "$additional_libdir"; then
9107 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9108 fi
9109 fi
9110 fi
9111 fi
9112 ;;
9113 -R*)
9114 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9115 if test "$enable_rpath" != no; then
9116 haveit=
9117 for x in $rpathdirs; do
9118 if test "X$x" = "X$dir"; then
9119 haveit=yes
9120 break
9121 fi
9122 done
9123 if test -z "$haveit"; then
9124 rpathdirs="$rpathdirs $dir"
9125 fi
9126 haveit=
9127 for x in $ltrpathdirs; do
9128 if test "X$x" = "X$dir"; then
9129 haveit=yes
9130 break
9131 fi
9132 done
9133 if test -z "$haveit"; then
9134 ltrpathdirs="$ltrpathdirs $dir"
9135 fi
9136 fi
9137 ;;
9138 -l*)
9139 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9140 ;;
9141 *.la)
9142 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9143 ;;
9144 *)
9145 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9146 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9147 ;;
9148 esac
9149 done
9150 fi
9151 else
9152 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9153 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9154 fi
9155 fi
9156 fi
9157 done
9158 done
9159 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009160 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009161 alldirs=
9162 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009163 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009164 done
9165 acl_save_libdir="$libdir"
9166 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009167 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009168 libdir="$acl_save_libdir"
9169 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9170 else
9171 for found_dir in $rpathdirs; do
9172 acl_save_libdir="$libdir"
9173 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009174 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009175 libdir="$acl_save_libdir"
9176 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9177 done
9178 fi
9179 fi
9180 if test "X$ltrpathdirs" != "X"; then
9181 for found_dir in $ltrpathdirs; do
9182 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9183 done
9184 fi
9185
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009186
9187
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009188
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009189
9190
9191
9192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009193
9194
9195
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009196
9197 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009198
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009199 for element in $INCICONV; do
9200 haveit=
9201 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009202
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009203 acl_save_prefix="$prefix"
9204 prefix="$acl_final_prefix"
9205 acl_save_exec_prefix="$exec_prefix"
9206 exec_prefix="$acl_final_exec_prefix"
9207 eval x=\"$x\"
9208 exec_prefix="$acl_save_exec_prefix"
9209 prefix="$acl_save_prefix"
9210
9211 if test "X$x" = "X$element"; then
9212 haveit=yes
9213 break
9214 fi
9215 done
9216 if test -z "$haveit"; then
9217 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9218 fi
9219 done
9220
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009221
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009223$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009224if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009225 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009226else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009227
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009228 am_cv_func_iconv="no, consider installing GNU libiconv"
9229 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009231/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009232
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009233#include <stdlib.h>
9234#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009236int
9237main ()
9238{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009239iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009240 iconv(cd,NULL,NULL,NULL,NULL);
9241 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009242 ;
9243 return 0;
9244}
9245_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009246if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009247 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009248fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009249rm -f core conftest.err conftest.$ac_objext \
9250 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009251 if test "$am_cv_func_iconv" != yes; then
9252 am_save_LIBS="$LIBS"
9253 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009255/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009256
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009257#include <stdlib.h>
9258#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009259
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260int
9261main ()
9262{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009263iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009264 iconv(cd,NULL,NULL,NULL,NULL);
9265 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009266 ;
9267 return 0;
9268}
9269_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009270if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009271 am_cv_lib_iconv=yes
9272 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009273fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009274rm -f core conftest.err conftest.$ac_objext \
9275 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009276 LIBS="$am_save_LIBS"
9277 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009278
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009279fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009281$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009282 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9284$as_echo_n "checking for working iconv... " >&6; }
9285if ${am_cv_func_iconv_works+:} false; then :
9286 $as_echo_n "(cached) " >&6
9287else
9288
9289 am_save_LIBS="$LIBS"
9290 if test $am_cv_lib_iconv = yes; then
9291 LIBS="$LIBS $LIBICONV"
9292 fi
9293 if test "$cross_compiling" = yes; then :
9294
9295 case "$host_os" in
9296 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9297 *) am_cv_func_iconv_works="guessing yes" ;;
9298 esac
9299
9300else
9301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9302/* end confdefs.h. */
9303
9304#include <iconv.h>
9305#include <string.h>
9306int main ()
9307{
9308 int result = 0;
9309 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9310 returns. */
9311 {
9312 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9313 if (cd_utf8_to_88591 != (iconv_t)(-1))
9314 {
9315 static const char input[] = "\342\202\254"; /* EURO SIGN */
9316 char buf[10];
9317 const char *inptr = input;
9318 size_t inbytesleft = strlen (input);
9319 char *outptr = buf;
9320 size_t outbytesleft = sizeof (buf);
9321 size_t res = iconv (cd_utf8_to_88591,
9322 (char **) &inptr, &inbytesleft,
9323 &outptr, &outbytesleft);
9324 if (res == 0)
9325 result |= 1;
9326 iconv_close (cd_utf8_to_88591);
9327 }
9328 }
9329 /* Test against Solaris 10 bug: Failures are not distinguishable from
9330 successful returns. */
9331 {
9332 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9333 if (cd_ascii_to_88591 != (iconv_t)(-1))
9334 {
9335 static const char input[] = "\263";
9336 char buf[10];
9337 const char *inptr = input;
9338 size_t inbytesleft = strlen (input);
9339 char *outptr = buf;
9340 size_t outbytesleft = sizeof (buf);
9341 size_t res = iconv (cd_ascii_to_88591,
9342 (char **) &inptr, &inbytesleft,
9343 &outptr, &outbytesleft);
9344 if (res == 0)
9345 result |= 2;
9346 iconv_close (cd_ascii_to_88591);
9347 }
9348 }
9349 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9350 {
9351 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9352 if (cd_88591_to_utf8 != (iconv_t)(-1))
9353 {
9354 static const char input[] = "\304";
9355 static char buf[2] = { (char)0xDE, (char)0xAD };
9356 const char *inptr = input;
9357 size_t inbytesleft = 1;
9358 char *outptr = buf;
9359 size_t outbytesleft = 1;
9360 size_t res = iconv (cd_88591_to_utf8,
9361 (char **) &inptr, &inbytesleft,
9362 &outptr, &outbytesleft);
9363 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9364 result |= 4;
9365 iconv_close (cd_88591_to_utf8);
9366 }
9367 }
9368#if 0 /* This bug could be worked around by the caller. */
9369 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9370 {
9371 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9372 if (cd_88591_to_utf8 != (iconv_t)(-1))
9373 {
9374 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9375 char buf[50];
9376 const char *inptr = input;
9377 size_t inbytesleft = strlen (input);
9378 char *outptr = buf;
9379 size_t outbytesleft = sizeof (buf);
9380 size_t res = iconv (cd_88591_to_utf8,
9381 (char **) &inptr, &inbytesleft,
9382 &outptr, &outbytesleft);
9383 if ((int)res > 0)
9384 result |= 8;
9385 iconv_close (cd_88591_to_utf8);
9386 }
9387 }
9388#endif
9389 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9390 provided. */
9391 if (/* Try standardized names. */
9392 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9393 /* Try IRIX, OSF/1 names. */
9394 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9395 /* Try AIX names. */
9396 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9397 /* Try HP-UX names. */
9398 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9399 result |= 16;
9400 return result;
9401}
9402_ACEOF
9403if ac_fn_c_try_run "$LINENO"; then :
9404 am_cv_func_iconv_works=yes
9405else
9406 am_cv_func_iconv_works=no
9407fi
9408rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9409 conftest.$ac_objext conftest.beam conftest.$ac_ext
9410fi
9411
9412 LIBS="$am_save_LIBS"
9413
9414fi
9415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9416$as_echo "$am_cv_func_iconv_works" >&6; }
9417 case "$am_cv_func_iconv_works" in
9418 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9419 *) am_func_iconv=yes ;;
9420 esac
9421 else
9422 am_func_iconv=no am_cv_lib_iconv=no
9423 fi
9424 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009425
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009426$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009427
9428 fi
9429 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009431$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009433$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009434 else
9435 CPPFLAGS="$am_save_CPPFLAGS"
9436 LIBICONV=
9437 LTLIBICONV=
9438 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009439
9440
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009441
9442 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009444$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009445 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009446 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009447else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009448
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009450/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009451
9452#include <stdlib.h>
9453#include <iconv.h>
9454extern
9455#ifdef __cplusplus
9456"C"
9457#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009458#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009459size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9460#else
9461size_t iconv();
9462#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009463
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009464int
9465main ()
9466{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009468 ;
9469 return 0;
9470}
9471_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009472if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009473 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009474else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009475 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009478 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 +00009479fi
9480
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009481 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009482 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9483 $am_cv_proto_iconv" >&5
9484$as_echo "
9485 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009486
9487cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009488#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009489_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009490
Theodore Ts'o93613952014-07-03 23:44:13 -04009491
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009492 fi
9493
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009494
Theodore Ts'o93613952014-07-03 23:44:13 -04009495
9496
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009498/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009499int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009500int
9501main ()
9502{
Theodore Ts'o93613952014-07-03 23:44:13 -04009503
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009504 ;
9505 return 0;
9506}
9507_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009508if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009509
9510$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9511
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009512fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009513rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009515
Theodore Ts'o93613952014-07-03 23:44:13 -04009516 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9517do :
9518 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9519ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9520if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9521 cat >>confdefs.h <<_ACEOF
9522#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009523_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009524
9525fi
9526
9527done
9528
9529 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9530 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9531 argz_stringify argz_next __fsetlocking
9532do :
9533 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9534ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9535if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9536 cat >>confdefs.h <<_ACEOF
9537#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9538_ACEOF
9539
9540fi
9541done
9542
9543
9544 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9545"
9546if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9547 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009548else
Theodore Ts'o93613952014-07-03 23:44:13 -04009549 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009550fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009551
9552cat >>confdefs.h <<_ACEOF
9553#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9554_ACEOF
9555ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9556"
9557if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9558 ac_have_decl=1
9559else
9560 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009561fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009562
Theodore Ts'o93613952014-07-03 23:44:13 -04009563cat >>confdefs.h <<_ACEOF
9564#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9565_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009566
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009567
Theodore Ts'o93613952014-07-03 23:44:13 -04009568
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009569
9570 for ac_prog in bison
9571do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009573set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009575$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009576if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009577 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009578else
9579 if test -n "$INTLBISON"; then
9580 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9581else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009582as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9583for as_dir in $PATH
9584do
9585 IFS=$as_save_IFS
9586 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009587 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009589 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009591 break 2
9592 fi
9593done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009594 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009595IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009597fi
9598fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009599INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009602$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009603else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009605$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009606fi
9607
Theodore Ts'oe1052142006-10-21 21:46:47 -04009608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009609 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009610done
9611
9612 if test -z "$INTLBISON"; then
9613 ac_verc_fail=yes
9614 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009616$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009617 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9618 case $ac_prog_version in
9619 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9620 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9621 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9622 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9623 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009625$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009626 fi
9627 if test $ac_verc_fail = yes; then
9628 INTLBISON=:
9629 fi
9630
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009631
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009632
Theodore Ts'o93613952014-07-03 23:44:13 -04009633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9634$as_echo_n "checking for long long int... " >&6; }
9635if ${ac_cv_type_long_long_int+:} false; then :
9636 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009637else
Theodore Ts'o93613952014-07-03 23:44:13 -04009638 ac_cv_type_long_long_int=yes
9639 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9640 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9641 if test $ac_cv_type_long_long_int = yes; then
9642 if test "$cross_compiling" = yes; then :
9643 :
9644else
9645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9646/* end confdefs.h. */
9647#include <limits.h>
9648 #ifndef LLONG_MAX
9649 # define HALF \
9650 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9651 # define LLONG_MAX (HALF - 1 + HALF)
9652 #endif
9653int
9654main ()
9655{
9656long long int n = 1;
9657 int i;
9658 for (i = 0; ; i++)
9659 {
9660 long long int m = n << i;
9661 if (m >> i != n)
9662 return 1;
9663 if (LLONG_MAX / 2 < m)
9664 break;
9665 }
9666 return 0;
9667 ;
9668 return 0;
9669}
9670_ACEOF
9671if ac_fn_c_try_run "$LINENO"; then :
9672
9673else
9674 ac_cv_type_long_long_int=no
9675fi
9676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9677 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009678fi
9679
Theodore Ts'o93613952014-07-03 23:44:13 -04009680 fi
9681 fi
9682fi
9683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9684$as_echo "$ac_cv_type_long_long_int" >&6; }
9685 if test $ac_cv_type_long_long_int = yes; then
9686
9687$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9688
9689 fi
9690
9691
9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9693$as_echo_n "checking for wchar_t... " >&6; }
9694if ${gt_cv_c_wchar_t+:} false; then :
9695 $as_echo_n "(cached) " >&6
9696else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h. */
9699#include <stddef.h>
9700 wchar_t foo = (wchar_t)'\0';
9701int
9702main ()
9703{
9704
9705 ;
9706 return 0;
9707}
9708_ACEOF
9709if ac_fn_c_try_compile "$LINENO"; then :
9710 gt_cv_c_wchar_t=yes
9711else
9712 gt_cv_c_wchar_t=no
9713fi
9714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9715fi
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9717$as_echo "$gt_cv_c_wchar_t" >&6; }
9718 if test $gt_cv_c_wchar_t = yes; then
9719
9720$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9721
9722 fi
9723
9724
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9726$as_echo_n "checking for wint_t... " >&6; }
9727if ${gt_cv_c_wint_t+:} false; then :
9728 $as_echo_n "(cached) " >&6
9729else
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h. */
9732
9733/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9734 <wchar.h>.
9735 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9736 before <wchar.h>. */
9737#include <stddef.h>
9738#include <stdio.h>
9739#include <time.h>
9740#include <wchar.h>
9741 wint_t foo = (wchar_t)'\0';
9742int
9743main ()
9744{
9745
9746 ;
9747 return 0;
9748}
9749_ACEOF
9750if ac_fn_c_try_compile "$LINENO"; then :
9751 gt_cv_c_wint_t=yes
9752else
9753 gt_cv_c_wint_t=no
9754fi
9755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9756fi
9757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9758$as_echo "$gt_cv_c_wint_t" >&6; }
9759 if test $gt_cv_c_wint_t = yes; then
9760
9761$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9762
9763 fi
9764
9765
9766
9767
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9769$as_echo_n "checking for intmax_t... " >&6; }
9770if ${gt_cv_c_intmax_t+:} false; then :
9771 $as_echo_n "(cached) " >&6
9772else
9773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9774/* end confdefs.h. */
9775
9776#include <stddef.h>
9777#include <stdlib.h>
9778#if HAVE_STDINT_H_WITH_UINTMAX
9779#include <stdint.h>
9780#endif
9781#if HAVE_INTTYPES_H_WITH_UINTMAX
9782#include <inttypes.h>
9783#endif
9784
9785int
9786main ()
9787{
9788intmax_t x = -1;
9789 return !x;
9790 ;
9791 return 0;
9792}
9793_ACEOF
9794if ac_fn_c_try_compile "$LINENO"; then :
9795 gt_cv_c_intmax_t=yes
9796else
9797 gt_cv_c_intmax_t=no
9798fi
9799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9800fi
9801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9802$as_echo "$gt_cv_c_intmax_t" >&6; }
9803 if test $gt_cv_c_intmax_t = yes; then
9804
9805$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9806
9807 fi
9808
9809
9810
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9812$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9813if ${gt_cv_func_printf_posix+:} false; then :
9814 $as_echo_n "(cached) " >&6
9815else
9816
9817 if test "$cross_compiling" = yes; then :
9818
9819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9820/* end confdefs.h. */
9821
9822#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9823 notposix
9824#endif
9825
9826_ACEOF
9827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9828 $EGREP "notposix" >/dev/null 2>&1; then :
9829 gt_cv_func_printf_posix="guessing no"
9830else
9831 gt_cv_func_printf_posix="guessing yes"
9832fi
9833rm -f conftest*
9834
9835
9836else
9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9838/* end confdefs.h. */
9839
9840#include <stdio.h>
9841#include <string.h>
9842/* The string "%2$d %1$d", with dollar characters protected from the shell's
9843 dollar expansion (possibly an autoconf bug). */
9844static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9845static char buf[100];
9846int main ()
9847{
9848 sprintf (buf, format, 33, 55);
9849 return (strcmp (buf, "55 33") != 0);
9850}
9851_ACEOF
9852if ac_fn_c_try_run "$LINENO"; then :
9853 gt_cv_func_printf_posix=yes
9854else
9855 gt_cv_func_printf_posix=no
9856fi
9857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9858 conftest.$ac_objext conftest.beam conftest.$ac_ext
9859fi
9860
9861
9862fi
9863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9864$as_echo "$gt_cv_func_printf_posix" >&6; }
9865 case $gt_cv_func_printf_posix in
9866 *yes)
9867
9868$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9869
9870 ;;
9871 esac
9872
9873
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9875$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9876if ${ac_cv_gnu_library_2_1+:} false; then :
9877 $as_echo_n "(cached) " >&6
9878else
9879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9880/* end confdefs.h. */
9881
9882#include <features.h>
9883#ifdef __GNU_LIBRARY__
9884 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9885 Lucky GNU user
9886 #endif
9887#endif
9888#ifdef __UCLIBC__
9889 Lucky user
9890#endif
9891
9892_ACEOF
9893if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9894 $EGREP "Lucky" >/dev/null 2>&1; then :
9895 ac_cv_gnu_library_2_1=yes
9896else
9897 ac_cv_gnu_library_2_1=no
9898fi
9899rm -f conftest*
9900
9901
9902
9903fi
9904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9905$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9906
9907 GLIBC21="$ac_cv_gnu_library_2_1"
9908
9909
9910
9911 for ac_header in stdint.h
9912do :
9913 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9914if test "x$ac_cv_header_stdint_h" = xyes; then :
9915 cat >>confdefs.h <<_ACEOF
9916#define HAVE_STDINT_H 1
9917_ACEOF
9918
9919fi
9920
9921done
9922
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9924$as_echo_n "checking for SIZE_MAX... " >&6; }
9925if ${gl_cv_size_max+:} false; then :
9926 $as_echo_n "(cached) " >&6
9927else
9928
9929 gl_cv_size_max=
9930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9931/* end confdefs.h. */
9932
9933#include <limits.h>
9934#if HAVE_STDINT_H
9935#include <stdint.h>
9936#endif
9937#ifdef SIZE_MAX
9938Found it
9939#endif
9940
9941_ACEOF
9942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9943 $EGREP "Found it" >/dev/null 2>&1; then :
9944 gl_cv_size_max=yes
9945fi
9946rm -f conftest*
9947
9948 if test -z "$gl_cv_size_max"; then
9949 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9950#include <limits.h>"; then :
9951
9952else
9953 size_t_bits_minus_1=
9954fi
9955
9956 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9957
9958else
9959 fits_in_uint=
9960fi
9961
9962 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9963 if test $fits_in_uint = 1; then
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965/* end confdefs.h. */
9966#include <stddef.h>
9967 extern size_t foo;
9968 extern unsigned long foo;
9969
9970int
9971main ()
9972{
9973
9974 ;
9975 return 0;
9976}
9977_ACEOF
9978if ac_fn_c_try_compile "$LINENO"; then :
9979 fits_in_uint=0
9980fi
9981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9982 fi
9983 if test $fits_in_uint = 1; then
9984 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9985 else
9986 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9987 fi
9988 else
9989 gl_cv_size_max='((size_t)~(size_t)0)'
9990 fi
9991 fi
9992
9993fi
9994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9995$as_echo "$gl_cv_size_max" >&6; }
9996 if test "$gl_cv_size_max" != yes; then
9997
9998cat >>confdefs.h <<_ACEOF
9999#define SIZE_MAX $gl_cv_size_max
10000_ACEOF
10001
10002 fi
10003
10004
10005
10006
10007 for ac_header in stdint.h
10008do :
10009 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10010if test "x$ac_cv_header_stdint_h" = xyes; then :
10011 cat >>confdefs.h <<_ACEOF
10012#define HAVE_STDINT_H 1
10013_ACEOF
10014
10015fi
10016
10017done
10018
10019
10020
10021
10022
10023 for ac_func in $ac_func_list
10024do :
10025 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10026ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10027if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10028 cat >>confdefs.h <<_ACEOF
10029#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10030_ACEOF
10031
10032fi
10033done
10034
10035
10036
10037
10038
10039
10040
10041
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10043$as_echo_n "checking for working fcntl.h... " >&6; }
10044if ${gl_cv_header_working_fcntl_h+:} false; then :
10045 $as_echo_n "(cached) " >&6
10046else
10047 if test "$cross_compiling" = yes; then :
10048 gl_cv_header_working_fcntl_h=cross-compiling
10049else
10050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10051/* end confdefs.h. */
10052#include <sys/types.h>
10053 #include <sys/stat.h>
10054 #if HAVE_UNISTD_H
10055 # include <unistd.h>
10056 #else /* on Windows with MSVC */
10057 # include <io.h>
10058 # include <stdlib.h>
10059 # defined sleep(n) _sleep ((n) * 1000)
10060 #endif
10061 #include <fcntl.h>
10062 #ifndef O_NOATIME
10063 #define O_NOATIME 0
10064 #endif
10065 #ifndef O_NOFOLLOW
10066 #define O_NOFOLLOW 0
10067 #endif
10068 static int const constants[] =
10069 {
10070 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10071 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10072 };
10073
10074int
10075main ()
10076{
10077
10078 int result = !constants;
10079 #if HAVE_SYMLINK
10080 {
10081 static char const sym[] = "conftest.sym";
10082 if (symlink ("/dev/null", sym) != 0)
10083 result |= 2;
10084 else
10085 {
10086 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10087 if (fd >= 0)
10088 {
10089 close (fd);
10090 result |= 4;
10091 }
10092 }
10093 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10094 result |= 2;
10095 else
10096 {
10097 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10098 if (fd >= 0)
10099 {
10100 close (fd);
10101 result |= 4;
10102 }
10103 }
10104 unlink (sym);
10105 }
10106 #endif
10107 {
10108 static char const file[] = "confdefs.h";
10109 int fd = open (file, O_RDONLY | O_NOATIME);
10110 if (fd < 0)
10111 result |= 8;
10112 else
10113 {
10114 struct stat st0;
10115 if (fstat (fd, &st0) != 0)
10116 result |= 16;
10117 else
10118 {
10119 char c;
10120 sleep (1);
10121 if (read (fd, &c, 1) != 1)
10122 result |= 24;
10123 else
10124 {
10125 if (close (fd) != 0)
10126 result |= 32;
10127 else
10128 {
10129 struct stat st1;
10130 if (stat (file, &st1) != 0)
10131 result |= 40;
10132 else
10133 if (st0.st_atime != st1.st_atime)
10134 result |= 64;
10135 }
10136 }
10137 }
10138 }
10139 }
10140 return result;
10141 ;
10142 return 0;
10143}
10144_ACEOF
10145if ac_fn_c_try_run "$LINENO"; then :
10146 gl_cv_header_working_fcntl_h=yes
10147else
10148 case $? in #(
10149 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10150 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10151 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10152 *) gl_cv_header_working_fcntl_h='no';;
10153 esac
10154fi
10155rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10156 conftest.$ac_objext conftest.beam conftest.$ac_ext
10157fi
10158
10159fi
10160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10161$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10162
10163 case $gl_cv_header_working_fcntl_h in #(
10164 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10165 *) ac_val=1;;
10166 esac
10167
10168cat >>confdefs.h <<_ACEOF
10169#define HAVE_WORKING_O_NOATIME $ac_val
10170_ACEOF
10171
10172
10173 case $gl_cv_header_working_fcntl_h in #(
10174 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10175 *) ac_val=1;;
10176 esac
10177
10178cat >>confdefs.h <<_ACEOF
10179#define HAVE_WORKING_O_NOFOLLOW $ac_val
10180_ACEOF
10181
10182
10183
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10185$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10186if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10187 $as_echo_n "(cached) " >&6
10188else
10189 gt_save_LIBS="$LIBS"
10190 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10192/* end confdefs.h. */
10193#include <CoreFoundation/CFPreferences.h>
10194int
10195main ()
10196{
10197CFPreferencesCopyAppValue(NULL, NULL)
10198 ;
10199 return 0;
10200}
10201_ACEOF
10202if ac_fn_c_try_link "$LINENO"; then :
10203 gt_cv_func_CFPreferencesCopyAppValue=yes
10204else
10205 gt_cv_func_CFPreferencesCopyAppValue=no
10206fi
10207rm -f core conftest.err conftest.$ac_objext \
10208 conftest$ac_exeext conftest.$ac_ext
10209 LIBS="$gt_save_LIBS"
10210fi
10211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10212$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10213 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10214
10215$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10216
10217 fi
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10219$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10220if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222else
10223 gt_save_LIBS="$LIBS"
10224 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226/* end confdefs.h. */
10227#include <CoreFoundation/CFLocale.h>
10228int
10229main ()
10230{
10231CFLocaleCopyCurrent();
10232 ;
10233 return 0;
10234}
10235_ACEOF
10236if ac_fn_c_try_link "$LINENO"; then :
10237 gt_cv_func_CFLocaleCopyCurrent=yes
10238else
10239 gt_cv_func_CFLocaleCopyCurrent=no
10240fi
10241rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 LIBS="$gt_save_LIBS"
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10246$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10247 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10248
10249$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10250
10251 fi
10252 INTL_MACOSX_LIBS=
10253 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10254 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10255 fi
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 case "$enable_silent_rules" in
10267 yes) INTL_DEFAULT_VERBOSITY=0;;
10268 no) INTL_DEFAULT_VERBOSITY=1;;
10269 *) INTL_DEFAULT_VERBOSITY=1;;
10270 esac
10271
10272
10273 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10274if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10275
10276else
10277
10278$as_echo "#define ptrdiff_t long" >>confdefs.h
10279
10280
10281fi
10282
10283 for ac_header in features.h stddef.h stdlib.h string.h
10284do :
10285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10286ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10287if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10288 cat >>confdefs.h <<_ACEOF
10289#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10290_ACEOF
10291
10292fi
10293
10294done
10295
10296 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10297 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10298do :
10299 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10300ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10301if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10302 cat >>confdefs.h <<_ACEOF
10303#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10304_ACEOF
10305
10306fi
10307done
10308
10309
10310 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10311"
10312if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10313 ac_have_decl=1
10314else
10315 ac_have_decl=0
10316fi
10317
10318cat >>confdefs.h <<_ACEOF
10319#define HAVE_DECL__SNPRINTF $ac_have_decl
10320_ACEOF
10321ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10322"
10323if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10324 ac_have_decl=1
10325else
10326 ac_have_decl=0
10327fi
10328
10329cat >>confdefs.h <<_ACEOF
10330#define HAVE_DECL__SNWPRINTF $ac_have_decl
10331_ACEOF
10332
10333
10334 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10335"
10336if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10337 ac_have_decl=1
10338else
10339 ac_have_decl=0
10340fi
10341
10342cat >>confdefs.h <<_ACEOF
10343#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10344_ACEOF
10345
10346
10347 case $gt_cv_func_printf_posix in
10348 *yes) HAVE_POSIX_PRINTF=1 ;;
10349 *) HAVE_POSIX_PRINTF=0 ;;
10350 esac
10351
10352 if test "$ac_cv_func_asprintf" = yes; then
10353 HAVE_ASPRINTF=1
10354 else
10355 HAVE_ASPRINTF=0
10356 fi
10357
10358 if test "$ac_cv_func_snprintf" = yes; then
10359 HAVE_SNPRINTF=1
10360 else
10361 HAVE_SNPRINTF=0
10362 fi
10363
10364 if test "$ac_cv_func_newlocale" = yes; then
10365 HAVE_NEWLOCALE=1
10366 else
10367 HAVE_NEWLOCALE=0
10368 fi
10369
10370 if test "$ac_cv_func_wprintf" = yes; then
10371 HAVE_WPRINTF=1
10372 else
10373 HAVE_WPRINTF=0
10374 fi
10375
10376
10377
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10379$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10380if ${am_cv_langinfo_codeset+:} false; then :
10381 $as_echo_n "(cached) " >&6
10382else
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384/* end confdefs.h. */
10385#include <langinfo.h>
10386int
10387main ()
10388{
10389char* cs = nl_langinfo(CODESET); return !cs;
10390 ;
10391 return 0;
10392}
10393_ACEOF
10394if ac_fn_c_try_link "$LINENO"; then :
10395 am_cv_langinfo_codeset=yes
10396else
10397 am_cv_langinfo_codeset=no
10398fi
10399rm -f core conftest.err conftest.$ac_objext \
10400 conftest$ac_exeext conftest.$ac_ext
10401
10402fi
10403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10404$as_echo "$am_cv_langinfo_codeset" >&6; }
10405 if test $am_cv_langinfo_codeset = yes; then
10406
10407$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10408
10409 fi
10410
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10413$as_echo_n "checking for LC_MESSAGES... " >&6; }
10414if ${gt_cv_val_LC_MESSAGES+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416else
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h. */
10419#include <locale.h>
10420int
10421main ()
10422{
10423return LC_MESSAGES
10424 ;
10425 return 0;
10426}
10427_ACEOF
10428if ac_fn_c_try_link "$LINENO"; then :
10429 gt_cv_val_LC_MESSAGES=yes
10430else
10431 gt_cv_val_LC_MESSAGES=no
10432fi
10433rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435fi
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10437$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10438 if test $gt_cv_val_LC_MESSAGES = yes; then
10439
10440$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10441
10442 fi
10443
10444
10445 if test "$enable_shared" = yes; then
10446 case "$host_os" in
10447 mingw* | cygwin*) is_woe32dll=yes ;;
10448 *) is_woe32dll=no ;;
10449 esac
10450 else
10451 is_woe32dll=no
10452 fi
10453 WOE32DLL=$is_woe32dll
10454
10455
10456 case "$host_os" in
10457 mingw* | cygwin*) is_woe32=yes ;;
10458 *) is_woe32=no ;;
10459 esac
10460 WOE32=$is_woe32
10461
10462 if test $WOE32 = yes; then
10463 if test -n "$ac_tool_prefix"; then
10464 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10465set dummy ${ac_tool_prefix}windres; ac_word=$2
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10467$as_echo_n "checking for $ac_word... " >&6; }
10468if ${ac_cv_prog_WINDRES+:} false; then :
10469 $as_echo_n "(cached) " >&6
10470else
10471 if test -n "$WINDRES"; then
10472 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10473else
10474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10475for as_dir in $PATH
10476do
10477 IFS=$as_save_IFS
10478 test -z "$as_dir" && as_dir=.
10479 for ac_exec_ext in '' $ac_executable_extensions; do
10480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10481 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10483 break 2
10484 fi
10485done
10486 done
10487IFS=$as_save_IFS
10488
10489fi
10490fi
10491WINDRES=$ac_cv_prog_WINDRES
10492if test -n "$WINDRES"; then
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10494$as_echo "$WINDRES" >&6; }
10495else
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497$as_echo "no" >&6; }
10498fi
10499
10500
10501fi
10502if test -z "$ac_cv_prog_WINDRES"; then
10503 ac_ct_WINDRES=$WINDRES
10504 # Extract the first word of "windres", so it can be a program name with args.
10505set dummy windres; ac_word=$2
10506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10507$as_echo_n "checking for $ac_word... " >&6; }
10508if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10509 $as_echo_n "(cached) " >&6
10510else
10511 if test -n "$ac_ct_WINDRES"; then
10512 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10513else
10514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10515for as_dir in $PATH
10516do
10517 IFS=$as_save_IFS
10518 test -z "$as_dir" && as_dir=.
10519 for ac_exec_ext in '' $ac_executable_extensions; do
10520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10521 ac_cv_prog_ac_ct_WINDRES="windres"
10522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10523 break 2
10524 fi
10525done
10526 done
10527IFS=$as_save_IFS
10528
10529fi
10530fi
10531ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10532if test -n "$ac_ct_WINDRES"; then
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10534$as_echo "$ac_ct_WINDRES" >&6; }
10535else
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10537$as_echo "no" >&6; }
10538fi
10539
10540 if test "x$ac_ct_WINDRES" = x; then
10541 WINDRES=""
10542 else
10543 case $cross_compiling:$ac_tool_warned in
10544yes:)
10545{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10546$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10547ac_tool_warned=yes ;;
10548esac
10549 WINDRES=$ac_ct_WINDRES
10550 fi
10551else
10552 WINDRES="$ac_cv_prog_WINDRES"
10553fi
10554
10555 fi
10556
10557 case "$host_os" in
10558 hpux*) LTLIBC="" ;;
10559 *) LTLIBC="-lc" ;;
10560 esac
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10589$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10590if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10591 $as_echo_n "(cached) " >&6
10592else
10593 gt_save_LIBS="$LIBS"
10594 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10596/* end confdefs.h. */
10597#include <CoreFoundation/CFPreferences.h>
10598int
10599main ()
10600{
10601CFPreferencesCopyAppValue(NULL, NULL)
10602 ;
10603 return 0;
10604}
10605_ACEOF
10606if ac_fn_c_try_link "$LINENO"; then :
10607 gt_cv_func_CFPreferencesCopyAppValue=yes
10608else
10609 gt_cv_func_CFPreferencesCopyAppValue=no
10610fi
10611rm -f core conftest.err conftest.$ac_objext \
10612 conftest$ac_exeext conftest.$ac_ext
10613 LIBS="$gt_save_LIBS"
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10616$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10617 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10618
10619$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10620
10621 fi
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10623$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10624if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626else
10627 gt_save_LIBS="$LIBS"
10628 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630/* end confdefs.h. */
10631#include <CoreFoundation/CFLocale.h>
10632int
10633main ()
10634{
10635CFLocaleCopyCurrent();
10636 ;
10637 return 0;
10638}
10639_ACEOF
10640if ac_fn_c_try_link "$LINENO"; then :
10641 gt_cv_func_CFLocaleCopyCurrent=yes
10642else
10643 gt_cv_func_CFLocaleCopyCurrent=no
10644fi
10645rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 LIBS="$gt_save_LIBS"
10648fi
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10650$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10651 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10652
10653$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10654
10655 fi
10656 INTL_MACOSX_LIBS=
10657 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10658 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10659 fi
10660
10661
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010662
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010664
10665
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010666 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010667 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010668
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010669 LIBINTL=
10670 LTLIBINTL=
10671 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010672
Theodore Ts'o93613952014-07-03 23:44:13 -040010673 case " $gt_needs " in
10674 *" need-formatstring-macros "*) gt_api_version=3 ;;
10675 *" need-ngettext "*) gt_api_version=2 ;;
10676 *) gt_api_version=1 ;;
10677 esac
10678 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10679 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10680
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010681 if test "$USE_NLS" = "yes"; then
10682 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010683
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010685$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010686
Theodore Ts'oe1052142006-10-21 21:46:47 -040010687# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010688if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010689 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010690else
10691 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010692fi
10693
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010695$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010696
10697 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10698 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010699
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010700
Theodore Ts'o93613952014-07-03 23:44:13 -040010701 if test $gt_api_version -ge 3; then
10702 gt_revision_test_code='
10703#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10704#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10705#endif
10706typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10707'
10708 else
10709 gt_revision_test_code=
10710 fi
10711 if test $gt_api_version -ge 2; then
10712 gt_expression_test_code=' + * ngettext ("", "", 0)'
10713 else
10714 gt_expression_test_code=
10715 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010718$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010719if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010720 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010721else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010723/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010724
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010725#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010726$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010727extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010728extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010730int
10731main ()
10732{
Theodore Ts'o93613952014-07-03 23:44:13 -040010733
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010734bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010735return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10736
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010737 ;
10738 return 0;
10739}
10740_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010741if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010742 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010743else
Theodore Ts'o93613952014-07-03 23:44:13 -040010744 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010745fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010746rm -f core conftest.err conftest.$ac_objext \
10747 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010748fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010749eval ac_res=\$$gt_func_gnugettext_libc
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10751$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010752
Theodore Ts'o93613952014-07-03 23:44:13 -040010753 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10754
10755
10756
10757
10758
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010759
10760
10761
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010762 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010764 acl_save_prefix="$prefix"
10765 prefix="$acl_final_prefix"
10766 acl_save_exec_prefix="$exec_prefix"
10767 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010769 eval additional_includedir=\"$includedir\"
10770 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010771
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010772 exec_prefix="$acl_save_exec_prefix"
10773 prefix="$acl_save_prefix"
10774
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010775
Theodore Ts'oe1052142006-10-21 21:46:47 -040010776# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010777if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010778 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010779 if test "X$withval" = "Xno"; then
10780 use_additional=no
10781 else
10782 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010783
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010784 acl_save_prefix="$prefix"
10785 prefix="$acl_final_prefix"
10786 acl_save_exec_prefix="$exec_prefix"
10787 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010788
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010789 eval additional_includedir=\"$includedir\"
10790 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010791
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010792 exec_prefix="$acl_save_exec_prefix"
10793 prefix="$acl_save_prefix"
10794
10795 else
10796 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010797 additional_libdir="$withval/$acl_libdirstem"
10798 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10799 && ! test -d "$withval/$acl_libdirstem"; then
10800 additional_libdir="$withval/$acl_libdirstem2"
10801 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010802 fi
10803 fi
10804
Theodore Ts'oe1052142006-10-21 21:46:47 -040010805fi
10806
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010807 LIBINTL=
10808 LTLIBINTL=
10809 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010810 LIBINTL_PREFIX=
10811 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010812 rpathdirs=
10813 ltrpathdirs=
10814 names_already_handled=
10815 names_next_round='intl '
10816 while test -n "$names_next_round"; do
10817 names_this_round="$names_next_round"
10818 names_next_round=
10819 for name in $names_this_round; do
10820 already_handled=
10821 for n in $names_already_handled; do
10822 if test "$n" = "$name"; then
10823 already_handled=yes
10824 break
10825 fi
10826 done
10827 if test -z "$already_handled"; then
10828 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010829 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010830 eval value=\"\$HAVE_LIB$uppername\"
10831 if test -n "$value"; then
10832 if test "$value" = yes; then
10833 eval value=\"\$LIB$uppername\"
10834 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10835 eval value=\"\$LTLIB$uppername\"
10836 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10837 else
10838 :
10839 fi
10840 else
10841 found_dir=
10842 found_la=
10843 found_so=
10844 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010845 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10846 if test -n "$acl_shlibext"; then
10847 shrext=".$acl_shlibext" # typically: shrext=.so
10848 else
10849 shrext=
10850 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010851 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010852 dir="$additional_libdir"
10853 if test -n "$acl_shlibext"; then
10854 if test -f "$dir/$libname$shrext"; then
10855 found_dir="$dir"
10856 found_so="$dir/$libname$shrext"
10857 else
10858 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10859 ver=`(cd "$dir" && \
10860 for f in "$libname$shrext".*; do echo "$f"; done \
10861 | sed -e "s,^$libname$shrext\\\\.,," \
10862 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10863 | sed 1q ) 2>/dev/null`
10864 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10865 found_dir="$dir"
10866 found_so="$dir/$libname$shrext.$ver"
10867 fi
10868 else
10869 eval library_names=\"$acl_library_names_spec\"
10870 for f in $library_names; do
10871 if test -f "$dir/$f"; then
10872 found_dir="$dir"
10873 found_so="$dir/$f"
10874 break
10875 fi
10876 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010877 fi
10878 fi
10879 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010880 if test "X$found_dir" = "X"; then
10881 if test -f "$dir/$libname.$acl_libext"; then
10882 found_dir="$dir"
10883 found_a="$dir/$libname.$acl_libext"
10884 fi
10885 fi
10886 if test "X$found_dir" != "X"; then
10887 if test -f "$dir/$libname.la"; then
10888 found_la="$dir/$libname.la"
10889 fi
10890 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010891 fi
10892 if test "X$found_dir" = "X"; then
10893 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010894
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010895 acl_save_prefix="$prefix"
10896 prefix="$acl_final_prefix"
10897 acl_save_exec_prefix="$exec_prefix"
10898 exec_prefix="$acl_final_exec_prefix"
10899 eval x=\"$x\"
10900 exec_prefix="$acl_save_exec_prefix"
10901 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010902
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010903 case "$x" in
10904 -L*)
10905 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010906 if test -n "$acl_shlibext"; then
10907 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010908 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010909 found_so="$dir/$libname$shrext"
10910 else
10911 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10912 ver=`(cd "$dir" && \
10913 for f in "$libname$shrext".*; do echo "$f"; done \
10914 | sed -e "s,^$libname$shrext\\\\.,," \
10915 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10916 | sed 1q ) 2>/dev/null`
10917 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10918 found_dir="$dir"
10919 found_so="$dir/$libname$shrext.$ver"
10920 fi
10921 else
10922 eval library_names=\"$acl_library_names_spec\"
10923 for f in $library_names; do
10924 if test -f "$dir/$f"; then
10925 found_dir="$dir"
10926 found_so="$dir/$f"
10927 break
10928 fi
10929 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010930 fi
10931 fi
10932 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010933 if test "X$found_dir" = "X"; then
10934 if test -f "$dir/$libname.$acl_libext"; then
10935 found_dir="$dir"
10936 found_a="$dir/$libname.$acl_libext"
10937 fi
10938 fi
10939 if test "X$found_dir" != "X"; then
10940 if test -f "$dir/$libname.la"; then
10941 found_la="$dir/$libname.la"
10942 fi
10943 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010944 ;;
10945 esac
10946 if test "X$found_dir" != "X"; then
10947 break
10948 fi
10949 done
10950 fi
10951 if test "X$found_dir" != "X"; then
10952 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10953 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010954 if test "$enable_rpath" = no \
10955 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10956 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010957 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10958 else
10959 haveit=
10960 for x in $ltrpathdirs; do
10961 if test "X$x" = "X$found_dir"; then
10962 haveit=yes
10963 break
10964 fi
10965 done
10966 if test -z "$haveit"; then
10967 ltrpathdirs="$ltrpathdirs $found_dir"
10968 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010969 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010970 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10971 else
Theodore Ts'o93613952014-07-03 23:44:13 -040010972 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010973 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10974 haveit=
10975 for x in $rpathdirs; do
10976 if test "X$x" = "X$found_dir"; then
10977 haveit=yes
10978 break
10979 fi
10980 done
10981 if test -z "$haveit"; then
10982 rpathdirs="$rpathdirs $found_dir"
10983 fi
10984 else
10985 haveit=
10986 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010987
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010988 acl_save_prefix="$prefix"
10989 prefix="$acl_final_prefix"
10990 acl_save_exec_prefix="$exec_prefix"
10991 exec_prefix="$acl_final_exec_prefix"
10992 eval x=\"$x\"
10993 exec_prefix="$acl_save_exec_prefix"
10994 prefix="$acl_save_prefix"
10995
10996 if test "X$x" = "X-L$found_dir"; then
10997 haveit=yes
10998 break
10999 fi
11000 done
11001 if test -z "$haveit"; then
11002 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11003 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011004 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011005 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11006 else
11007 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11008 fi
11009 fi
11010 fi
11011 fi
11012 else
11013 if test "X$found_a" != "X"; then
11014 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11015 else
11016 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11017 fi
11018 fi
11019 additional_includedir=
11020 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011021 */$acl_libdirstem | */$acl_libdirstem/)
11022 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11023 if test "$name" = 'intl'; then
11024 LIBINTL_PREFIX="$basedir"
11025 fi
11026 additional_includedir="$basedir/include"
11027 ;;
11028 */$acl_libdirstem2 | */$acl_libdirstem2/)
11029 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11030 if test "$name" = 'intl'; then
11031 LIBINTL_PREFIX="$basedir"
11032 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011033 additional_includedir="$basedir/include"
11034 ;;
11035 esac
11036 if test "X$additional_includedir" != "X"; then
11037 if test "X$additional_includedir" != "X/usr/include"; then
11038 haveit=
11039 if test "X$additional_includedir" = "X/usr/local/include"; then
11040 if test -n "$GCC"; then
11041 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011042 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011043 esac
11044 fi
11045 fi
11046 if test -z "$haveit"; then
11047 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011048
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011049 acl_save_prefix="$prefix"
11050 prefix="$acl_final_prefix"
11051 acl_save_exec_prefix="$exec_prefix"
11052 exec_prefix="$acl_final_exec_prefix"
11053 eval x=\"$x\"
11054 exec_prefix="$acl_save_exec_prefix"
11055 prefix="$acl_save_prefix"
11056
11057 if test "X$x" = "X-I$additional_includedir"; then
11058 haveit=yes
11059 break
11060 fi
11061 done
11062 if test -z "$haveit"; then
11063 if test -d "$additional_includedir"; then
11064 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11065 fi
11066 fi
11067 fi
11068 fi
11069 fi
11070 if test -n "$found_la"; then
11071 save_libdir="$libdir"
11072 case "$found_la" in
11073 */* | *\\*) . "$found_la" ;;
11074 *) . "./$found_la" ;;
11075 esac
11076 libdir="$save_libdir"
11077 for dep in $dependency_libs; do
11078 case "$dep" in
11079 -L*)
11080 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011081 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11082 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011083 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011084 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11085 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011086 if test -n "$GCC"; then
11087 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011088 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011089 esac
11090 fi
11091 fi
11092 if test -z "$haveit"; then
11093 haveit=
11094 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011095
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011096 acl_save_prefix="$prefix"
11097 prefix="$acl_final_prefix"
11098 acl_save_exec_prefix="$exec_prefix"
11099 exec_prefix="$acl_final_exec_prefix"
11100 eval x=\"$x\"
11101 exec_prefix="$acl_save_exec_prefix"
11102 prefix="$acl_save_prefix"
11103
11104 if test "X$x" = "X-L$additional_libdir"; then
11105 haveit=yes
11106 break
11107 fi
11108 done
11109 if test -z "$haveit"; then
11110 if test -d "$additional_libdir"; then
11111 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11112 fi
11113 fi
11114 haveit=
11115 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011116
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011117 acl_save_prefix="$prefix"
11118 prefix="$acl_final_prefix"
11119 acl_save_exec_prefix="$exec_prefix"
11120 exec_prefix="$acl_final_exec_prefix"
11121 eval x=\"$x\"
11122 exec_prefix="$acl_save_exec_prefix"
11123 prefix="$acl_save_prefix"
11124
11125 if test "X$x" = "X-L$additional_libdir"; then
11126 haveit=yes
11127 break
11128 fi
11129 done
11130 if test -z "$haveit"; then
11131 if test -d "$additional_libdir"; then
11132 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11133 fi
11134 fi
11135 fi
11136 fi
11137 ;;
11138 -R*)
11139 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11140 if test "$enable_rpath" != no; then
11141 haveit=
11142 for x in $rpathdirs; do
11143 if test "X$x" = "X$dir"; then
11144 haveit=yes
11145 break
11146 fi
11147 done
11148 if test -z "$haveit"; then
11149 rpathdirs="$rpathdirs $dir"
11150 fi
11151 haveit=
11152 for x in $ltrpathdirs; do
11153 if test "X$x" = "X$dir"; then
11154 haveit=yes
11155 break
11156 fi
11157 done
11158 if test -z "$haveit"; then
11159 ltrpathdirs="$ltrpathdirs $dir"
11160 fi
11161 fi
11162 ;;
11163 -l*)
11164 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11165 ;;
11166 *.la)
11167 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11168 ;;
11169 *)
11170 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11171 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11172 ;;
11173 esac
11174 done
11175 fi
11176 else
11177 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11178 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11179 fi
11180 fi
11181 fi
11182 done
11183 done
11184 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011185 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011186 alldirs=
11187 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011188 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011189 done
11190 acl_save_libdir="$libdir"
11191 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011192 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011193 libdir="$acl_save_libdir"
11194 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11195 else
11196 for found_dir in $rpathdirs; do
11197 acl_save_libdir="$libdir"
11198 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011199 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011200 libdir="$acl_save_libdir"
11201 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11202 done
11203 fi
11204 fi
11205 if test "X$ltrpathdirs" != "X"; then
11206 for found_dir in $ltrpathdirs; do
11207 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11208 done
11209 fi
11210
Theodore Ts'o93613952014-07-03 23:44:13 -040011211
11212
11213
11214
11215
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011217$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011218if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011219 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011220else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011221 gt_save_CPPFLAGS="$CPPFLAGS"
11222 CPPFLAGS="$CPPFLAGS $INCINTL"
11223 gt_save_LIBS="$LIBS"
11224 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011226/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011227
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011228#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011229$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011230extern int _nl_msg_cat_cntr;
11231extern
11232#ifdef __cplusplus
11233"C"
11234#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011235const char *_nl_expand_alias (const char *);
11236
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011237int
11238main ()
11239{
Theodore Ts'o93613952014-07-03 23:44:13 -040011240
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011241bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011242return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11243
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011244 ;
11245 return 0;
11246}
11247_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011248if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011249 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011250else
Theodore Ts'o93613952014-07-03 23:44:13 -040011251 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011252fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011253rm -f core conftest.err conftest.$ac_objext \
11254 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011255 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011256 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011258/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011259
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011260#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011261$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011262extern int _nl_msg_cat_cntr;
11263extern
11264#ifdef __cplusplus
11265"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011266#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011267const char *_nl_expand_alias (const char *);
11268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011269int
11270main ()
11271{
Theodore Ts'o93613952014-07-03 23:44:13 -040011272
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011273bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011274return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11275
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011276 ;
11277 return 0;
11278}
11279_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011280if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011281 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011282 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11283 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011284
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011285fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011286rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011288 fi
11289 CPPFLAGS="$gt_save_CPPFLAGS"
11290 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011291fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011292eval ac_res=\$$gt_func_gnugettext_libintl
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11294$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011295 fi
11296
Theodore Ts'o93613952014-07-03 23:44:13 -040011297 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11298 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011299 && test "$PACKAGE" != gettext-runtime \
11300 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011301 gt_use_preinstalled_gnugettext=yes
11302 else
11303 LIBINTL=
11304 LTLIBINTL=
11305 INCINTL=
11306 fi
11307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011308
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011309 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11310 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011311 fi
11312 fi
11313
11314 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011315 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011316 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011317 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11318 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011319 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011320 fi
11321
Theodore Ts'o93613952014-07-03 23:44:13 -040011322 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011323 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11324 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11325 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011326 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011327
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011328
Theodore Ts'o93613952014-07-03 23:44:13 -040011329 if test -n "$INTL_MACOSX_LIBS"; then
11330 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11331 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11332 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11333 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11334 fi
11335 fi
11336
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011337 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11338 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011340$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011341
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011342 else
11343 USE_NLS=no
11344 fi
11345 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011346
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011348$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011350$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011353$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011354 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011355 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011356 gt_source="external libintl"
11357 else
11358 gt_source="libc"
11359 fi
11360 else
11361 gt_source="included intl directory"
11362 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011364$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011365 fi
11366
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011367 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011368
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011369 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011370 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011372$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011374$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011375
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011376 for element in $INCINTL; do
11377 haveit=
11378 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011380 acl_save_prefix="$prefix"
11381 prefix="$acl_final_prefix"
11382 acl_save_exec_prefix="$exec_prefix"
11383 exec_prefix="$acl_final_exec_prefix"
11384 eval x=\"$x\"
11385 exec_prefix="$acl_save_exec_prefix"
11386 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011387
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011388 if test "X$x" = "X$element"; then
11389 haveit=yes
11390 break
11391 fi
11392 done
11393 if test -z "$haveit"; then
11394 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11395 fi
11396 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011397
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011398 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011399
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011400
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011401$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011402
11403
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011404$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011405
11406 fi
11407
11408 POSUB=po
11409 fi
11410
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011411
11412 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011413 BUILD_INCLUDED_LIBINTL=yes
11414 fi
11415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011416
11417
11418
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011419
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011420 nls_cv_header_intl=
11421 nls_cv_header_libgt=
11422
11423 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011424
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011425
11426 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011427
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011428
11429 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011430
11431
Theodore Ts'o93613952014-07-03 23:44:13 -040011432 INTLOBJS=
11433 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011434 INTLOBJS="\$(GETTOBJS)"
11435 fi
11436
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011437
11438 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011439
11440
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011441
11442 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011443
11444
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011445
11446
11447
11448
11449
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011451$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11452set x ${MAKE-make}
11453ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011454if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011455 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011456else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011457 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011458SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011459all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011460 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011462# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011463case `${MAKE-make} -f conftest.make 2>/dev/null` in
11464 *@@@%%%=?*=@@@%%%*)
11465 eval ac_cv_prog_make_${ac_make}_set=yes;;
11466 *)
11467 eval ac_cv_prog_make_${ac_make}_set=no;;
11468esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011469rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011471if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011473$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011474 SET_MAKE=
11475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011477$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011478 SET_MAKE="MAKE=${MAKE-make}"
11479fi
11480
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011482$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011483if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011484 $as_echo_n "(cached) " >&6
11485else
11486 _cv_gnu_make_command='' ;
11487 for a in "$MAKE" make gmake gnumake ; do
11488 if test -z "$a" ; then continue ; fi ;
11489 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11490 _cv_gnu_make_command=$a ;
11491 break;
11492 fi
11493 done ;
11494
11495fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011497$as_echo "$_cv_gnu_make_command" >&6; } ;
11498 if test "x$_cv_gnu_make_command" != "x" ; then
11499 ifGNUmake='' ;
11500 ifNotGNUmake='#' ;
11501 else
11502 ifGNUmake='#' ;
11503 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011505$as_echo "\"Not found\"" >&6; };
11506 fi
11507
11508
11509
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011510# Extract the first word of "ln", so it can be a program name with args.
11511set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011513$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011514if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011515 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011516else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011517 case $LN in
11518 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011519 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11520 ;;
11521 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11523for as_dir in $PATH
11524do
11525 IFS=$as_save_IFS
11526 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011527 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011529 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011531 break 2
11532 fi
11533done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011534 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011535IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011536
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011537 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11538 ;;
11539esac
11540fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011541LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011542if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011544$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011545else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011547$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011548fi
11549
Theodore Ts'oe1052142006-10-21 21:46:47 -040011550
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011552$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011553LN_S=$as_ln_s
11554if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011556$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011557else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011559$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011560fi
11561
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011562# Extract the first word of "mv", so it can be a program name with args.
11563set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011565$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011566if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011567 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011568else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569 case $MV in
11570 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011571 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11572 ;;
11573 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575for as_dir in $PATH
11576do
11577 IFS=$as_save_IFS
11578 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011579 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011581 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011583 break 2
11584 fi
11585done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011586 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011587IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011588
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011589 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11590 ;;
11591esac
11592fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011593MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011596$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011597else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011599$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011600fi
11601
Theodore Ts'oe1052142006-10-21 21:46:47 -040011602
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011603# Extract the first word of "cp", so it can be a program name with args.
11604set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011606$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011607if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011608 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011609else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610 case $CP in
11611 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011612 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11613 ;;
11614 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11616for as_dir in $PATH
11617do
11618 IFS=$as_save_IFS
11619 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011620 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011622 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011624 break 2
11625 fi
11626done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011627 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011628IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011629
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011630 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11631 ;;
11632esac
11633fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011634CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011635if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011637$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011638else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011640$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011641fi
11642
Theodore Ts'oe1052142006-10-21 21:46:47 -040011643
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011644# Extract the first word of "rm", so it can be a program name with args.
11645set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011647$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011648if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011649 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011650else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011651 case $RM in
11652 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011653 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11654 ;;
11655 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11657for as_dir in $PATH
11658do
11659 IFS=$as_save_IFS
11660 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011661 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665 break 2
11666 fi
11667done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011668 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011669IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011670
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011671 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11672 ;;
11673esac
11674fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011675RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011676if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011678$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011679else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011681$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011682fi
11683
Theodore Ts'oe1052142006-10-21 21:46:47 -040011684
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011685# Extract the first word of "chmod", so it can be a program name with args.
11686set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011688$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011689if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011690 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011691else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692 case $CHMOD in
11693 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011694 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11695 ;;
11696 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11698for as_dir in $PATH
11699do
11700 IFS=$as_save_IFS
11701 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011702 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011706 break 2
11707 fi
11708done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011709 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011710IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011711
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011712 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11713 ;;
11714esac
11715fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011716CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011717if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011719$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011720else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011722$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011723fi
11724
Theodore Ts'oe1052142006-10-21 21:46:47 -040011725
Theodore Ts'o32237012005-01-17 19:13:39 -050011726for ac_prog in gawk mawk nawk awk
11727do
11728 # Extract the first word of "$ac_prog", so it can be a program name with args.
11729set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011731$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011732if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011733 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011734else
Theodore Ts'o32237012005-01-17 19:13:39 -050011735 if test -n "$AWK"; then
11736 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11737else
11738as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739for as_dir in $PATH
11740do
11741 IFS=$as_save_IFS
11742 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011743 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011745 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011746 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011747 break 2
11748 fi
11749done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011750 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011751IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011752
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011754fi
11755AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011758$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011761$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011762fi
11763
Theodore Ts'oe1052142006-10-21 21:46:47 -040011764
Theodore Ts'o32237012005-01-17 19:13:39 -050011765 test -n "$AWK" && break
11766done
11767
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011769$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011770if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011771 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011772else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011773 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11774 then ac_cv_path_EGREP="$GREP -E"
11775 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011776 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011777 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011778 # Loop through the user's path and test for each of PROGNAME-LIST
11779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011780for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11781do
11782 IFS=$as_save_IFS
11783 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011784 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011785 for ac_exec_ext in '' $ac_executable_extensions; do
11786 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011787 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011788# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011789 # Check for GNU $ac_path_EGREP
11790case `"$ac_path_EGREP" --version 2>&1` in
11791*GNU*)
11792 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11793*)
11794 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011795 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011796 while :
11797 do
11798 cat "conftest.in" "conftest.in" >"conftest.tmp"
11799 mv "conftest.tmp" "conftest.in"
11800 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011801 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011802 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11803 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011804 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011805 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11806 # Best one so far, save it but keep looking for a better one
11807 ac_cv_path_EGREP="$ac_path_EGREP"
11808 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011809 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011810 # 10*(2^10) chars as input seems more than enough
11811 test $ac_count -gt 10 && break
11812 done
11813 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11814esac
11815
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011816 $ac_path_EGREP_found && break 3
11817 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011818 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011819 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011820IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011821 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011822 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 +010011823 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011824else
11825 ac_cv_path_EGREP=$EGREP
11826fi
11827
Theodore Ts'oe1052142006-10-21 21:46:47 -040011828 fi
11829fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011831$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011832 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011833
11834
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011835# Extract the first word of "sed", so it can be a program name with args.
11836set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011838$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011839if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011840 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011841else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011842 case $SED in
11843 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011844 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11845 ;;
11846 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11848for as_dir in $PATH
11849do
11850 IFS=$as_save_IFS
11851 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011852 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011854 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011856 break 2
11857 fi
11858done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011859 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011860IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011861
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011862 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11863 ;;
11864esac
11865fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011866SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011867if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011869$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011870else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011872$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011873fi
11874
Theodore Ts'oe1052142006-10-21 21:46:47 -040011875
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011876# Extract the first word of "perl", so it can be a program name with args.
11877set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011879$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011880if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011881 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011882else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011883 case $PERL in
11884 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011885 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11886 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011887 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889for as_dir in $PATH
11890do
11891 IFS=$as_save_IFS
11892 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011893 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011895 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011897 break 2
11898 fi
11899done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011900 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011901IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011902
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011903 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11904 ;;
11905esac
11906fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011907PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011908if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011910$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011911else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011913$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011914fi
11915
Theodore Ts'oe1052142006-10-21 21:46:47 -040011916
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011917# Extract the first word of "ldconfig", so it can be a program name with args.
11918set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011920$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011921if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011922 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011923else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924 case $LDCONFIG in
11925 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011926 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11927 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011928 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930for as_dir in $PATH
11931do
11932 IFS=$as_save_IFS
11933 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011934 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938 break 2
11939 fi
11940done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011941 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011942IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011944 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11945 ;;
11946esac
11947fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011948LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011949if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011951$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011952else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011954$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011955fi
11956
Theodore Ts'oe1052142006-10-21 21:46:47 -040011957
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011958if test -n "$ac_tool_prefix"; then
11959 # 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 +000011960set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011962$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011963if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011964 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011965else
11966 if test -n "$AR"; then
11967 ac_cv_prog_AR="$AR" # Let the user override the test.
11968else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11970for as_dir in $PATH
11971do
11972 IFS=$as_save_IFS
11973 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011974 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011976 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011978 break 2
11979 fi
11980done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011981 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011982IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011983
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011984fi
11985fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011986AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011987if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011989$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011990else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011992$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011993fi
11994
Theodore Ts'oe1052142006-10-21 21:46:47 -040011995
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011997if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011998 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011999 # Extract the first word of "ar", so it can be a program name with args.
12000set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012002$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012003if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012004 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012005else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006 if test -n "$ac_ct_AR"; then
12007 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012008else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012009as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010for as_dir in $PATH
12011do
12012 IFS=$as_save_IFS
12013 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012014 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012016 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012018 break 2
12019 fi
12020done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012021 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012022IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012024fi
12025fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012026ac_ct_AR=$ac_cv_prog_ac_ct_AR
12027if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012029$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012030else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012032$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012033fi
12034
Theodore Ts'oe1052142006-10-21 21:46:47 -040012035 if test "x$ac_ct_AR" = x; then
12036 AR="ar"
12037 else
12038 case $cross_compiling:$ac_tool_warned in
12039yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012040{ $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 +010012041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012042ac_tool_warned=yes ;;
12043esac
12044 AR=$ac_ct_AR
12045 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012046else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012047 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012048fi
12049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012050if test -n "$ac_tool_prefix"; then
12051 # 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 +000012052set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012054$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012055if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012056 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012057else
12058 if test -n "$RANLIB"; then
12059 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12060else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062for as_dir in $PATH
12063do
12064 IFS=$as_save_IFS
12065 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012066 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012068 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012070 break 2
12071 fi
12072done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012073 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012074IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012076fi
12077fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012078RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012079if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012081$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012082else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012084$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012085fi
12086
Theodore Ts'oe1052142006-10-21 21:46:47 -040012087
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012088fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012089if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012090 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012091 # Extract the first word of "ranlib", so it can be a program name with args.
12092set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012094$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012095if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012096 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012097else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012098 if test -n "$ac_ct_RANLIB"; then
12099 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012100else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012101as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12102for as_dir in $PATH
12103do
12104 IFS=$as_save_IFS
12105 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012106 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012108 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012110 break 2
12111 fi
12112done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012113 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012114IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012115
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012116fi
12117fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012118ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12119if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012121$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012122else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012124$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012125fi
12126
Theodore Ts'oe1052142006-10-21 21:46:47 -040012127 if test "x$ac_ct_RANLIB" = x; then
12128 RANLIB=":"
12129 else
12130 case $cross_compiling:$ac_tool_warned in
12131yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012132{ $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 +010012133$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012134ac_tool_warned=yes ;;
12135esac
12136 RANLIB=$ac_ct_RANLIB
12137 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012138else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012139 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012140fi
12141
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012142if test -n "$ac_tool_prefix"; then
12143 # 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 +000012144set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012145{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012146$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012147if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012148 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012149else
12150 if test -n "$STRIP"; then
12151 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12152else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012153as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12154for as_dir in $PATH
12155do
12156 IFS=$as_save_IFS
12157 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012158 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012160 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012162 break 2
12163 fi
12164done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012165 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012167
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012168fi
12169fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012170STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012171if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012173$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012174else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012176$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012177fi
12178
Theodore Ts'oe1052142006-10-21 21:46:47 -040012179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012180fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012181if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012182 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183 # Extract the first word of "strip", so it can be a program name with args.
12184set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012186$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012187if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012188 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012189else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190 if test -n "$ac_ct_STRIP"; then
12191 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012192else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12194for as_dir in $PATH
12195do
12196 IFS=$as_save_IFS
12197 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012198 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012202 break 2
12203 fi
12204done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012205 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012206IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012207
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012208fi
12209fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012210ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12211if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012213$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012214else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012216$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012217fi
12218
Theodore Ts'oe1052142006-10-21 21:46:47 -040012219 if test "x$ac_ct_STRIP" = x; then
12220 STRIP=":"
12221 else
12222 case $cross_compiling:$ac_tool_warned in
12223yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012224{ $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 +010012225$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012226ac_tool_warned=yes ;;
12227esac
12228 STRIP=$ac_ct_STRIP
12229 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012230else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012231 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012232fi
12233
Manish Katiyar7321d942008-04-14 17:20:03 +053012234# Extract the first word of "makeinfo", so it can be a program name with args.
12235set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012237$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012238if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012239 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012240else
12241 if test -n "$MAKEINFO"; then
12242 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12243else
12244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245for as_dir in $PATH
12246do
12247 IFS=$as_save_IFS
12248 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012249 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012251 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012253 break 2
12254 fi
12255done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012256 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012257IFS=$as_save_IFS
12258
12259fi
12260fi
12261MAKEINFO=$ac_cv_prog_MAKEINFO
12262if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012264$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012265else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012267$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012268fi
12269
12270
12271if test "_$MAKEINFO" = "_"; then
12272 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12273else
12274 case "$MAKEINFO" in
12275 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012277*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012278$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012279*** Makeinfo is missing. Info documentation will not be built." >&2;}
12280 ;;
12281 *)
12282 ;;
12283 esac
12284fi
12285
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012286
Theodore Ts'o6c133521999-07-03 20:37:03 +000012287# See if we need a separate native compiler.
12288if test $cross_compiling = no; then
12289 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012290
Theodore Ts'o6c133521999-07-03 20:37:03 +000012291else
12292 for ac_prog in gcc cc
12293do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012294 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012295set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012297$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012298if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012299 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012300else
12301 if test -n "$BUILD_CC"; then
12302 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12303else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012306do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012307 IFS=$as_save_IFS
12308 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012309 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012311 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012313 break 2
12314 fi
12315done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012316 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012317IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012319fi
12320fi
12321BUILD_CC=$ac_cv_prog_BUILD_CC
12322if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012324$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012325else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012327$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012328fi
12329
Theodore Ts'oe1052142006-10-21 21:46:47 -040012330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012331 test -n "$BUILD_CC" && break
12332done
12333
12334fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012335for 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 -050012336do :
12337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12338ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012340 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012342_ACEOF
12343
12344fi
12345
12346done
12347
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012348for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012349do :
12350 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012351#if HAVE_SYS_TYPES_H
12352#include <sys/types.h>
12353#endif
12354#if HAVE_SYS_SOCKET
12355#include <sys/socket.h>
12356#endif
12357
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012358"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012359if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012360 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012361#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012362_ACEOF
12363
12364fi
12365
12366done
12367
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012368for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012369do :
12370 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012371if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012372 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012373#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012374_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012375
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012376ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012377if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012378
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012379$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012380
12381fi
12382
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012383fi
12384done
12385
12386
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012387ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12388"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012389if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012390
12391$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012392
12393fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012394
Theodore Ts'o28739272014-01-03 00:26:43 -050012395ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12396if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12397
12398cat >>confdefs.h <<_ACEOF
12399#define HAVE_STRUCT_STAT_ST_ATIM 1
12400_ACEOF
12401
12402
12403fi
12404
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012405ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12406"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012407if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012408
12409$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012410
Theodore Ts'offf45482003-04-13 00:44:19 -040012411fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012412
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012413ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12414"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012415if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012416
12417$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012418
12419fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012420
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012421ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012422 #define _LARGEFILE64_SOURCE
12423 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012424"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012425if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012426
12427$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012428
12429fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012430
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012431# The cast to long int works around a bug in the HP C Compiler
12432# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12433# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12434# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012436$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012437if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012438 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012439else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012440 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 -050012441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012442else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012443 if test "$ac_cv_type_short" = yes; then
12444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012446as_fn_error 77 "cannot compute sizeof (short)
12447See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012448 else
12449 ac_cv_sizeof_short=0
12450 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012451fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012453fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012455$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012456
12457
12458
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012459cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012460#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012461_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012462
12463
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012464# The cast to long int works around a bug in the HP C Compiler
12465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12467# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012469$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012470if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012471 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012473 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 -050012474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012476 if test "$ac_cv_type_int" = yes; then
12477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012479as_fn_error 77 "cannot compute sizeof (int)
12480See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012481 else
12482 ac_cv_sizeof_int=0
12483 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012484fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012488$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012489
12490
12491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012492cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012493#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012494_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012495
12496
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012497# The cast to long int works around a bug in the HP C Compiler
12498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12500# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012502$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012503if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012504 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012506 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 -050012507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012509 if test "$ac_cv_type_long" = yes; then
12510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012512as_fn_error 77 "cannot compute sizeof (long)
12513See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012514 else
12515 ac_cv_sizeof_long=0
12516 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012517fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012521$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012522
12523
12524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012525cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012526#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012527_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012528
12529
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012530# The cast to long int works around a bug in the HP C Compiler
12531# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12532# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12533# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012535$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012536if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012537 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012539 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 -050012540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012542 if test "$ac_cv_type_long_long" = yes; then
12543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012545as_fn_error 77 "cannot compute sizeof (long long)
12546See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012547 else
12548 ac_cv_sizeof_long_long=0
12549 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012550fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012554$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012555
12556
12557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012558cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012559#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012560_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012561
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012562
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012563# The cast to long int works around a bug in the HP C Compiler
12564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12566# This bug is HP SR number 8606223364.
12567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12568$as_echo_n "checking size of off_t... " >&6; }
12569if ${ac_cv_sizeof_off_t+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571else
12572 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12573
12574else
12575 if test "$ac_cv_type_off_t" = yes; then
12576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12578as_fn_error 77 "cannot compute sizeof (off_t)
12579See \`config.log' for more details" "$LINENO" 5; }
12580 else
12581 ac_cv_sizeof_off_t=0
12582 fi
12583fi
12584
12585fi
12586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12587$as_echo "$ac_cv_sizeof_off_t" >&6; }
12588
12589
12590
12591cat >>confdefs.h <<_ACEOF
12592#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12593_ACEOF
12594
12595
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012596SIZEOF_SHORT=$ac_cv_sizeof_short
12597SIZEOF_INT=$ac_cv_sizeof_int
12598SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012599SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012600SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12601
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012602
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012603
12604
12605
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012607$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012608if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012609 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012610else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012611 ac_cv_c_bigendian=unknown
12612 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012614/* end confdefs.h. */
12615#ifndef __APPLE_CC__
12616 not a universal capable compiler
12617 #endif
12618 typedef int dummy;
12619
12620_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012621if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012622
12623 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012624 # there are at least two -arch flags with different values.
12625 ac_arch=
12626 ac_prev=
12627 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12628 if test -n "$ac_prev"; then
12629 case $ac_word in
12630 i?86 | x86_64 | ppc | ppc64)
12631 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12632 ac_arch=$ac_word
12633 else
12634 ac_cv_c_bigendian=universal
12635 break
12636 fi
12637 ;;
12638 esac
12639 ac_prev=
12640 elif test "x$ac_word" = "x-arch"; then
12641 ac_prev=arch
12642 fi
12643 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012644fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12646 if test $ac_cv_c_bigendian = unknown; then
12647 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012649/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012650#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012651 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012652
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012653int
12654main ()
12655{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012656#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12657 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12658 && LITTLE_ENDIAN)
12659 bogus endian macros
12660 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012661
12662 ;
12663 return 0;
12664}
12665_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012666if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012667 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012669/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012670#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012671 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012672
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012673int
12674main ()
12675{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012676#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012677 not big endian
12678 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012679
12680 ;
12681 return 0;
12682}
12683_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012684if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012685 ac_cv_c_bigendian=yes
12686else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012687 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012688fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012690fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692 fi
12693 if test $ac_cv_c_bigendian = unknown; then
12694 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012696/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012697#include <limits.h>
12698
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012699int
12700main ()
12701{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012702#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12703 bogus endian macros
12704 #endif
12705
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012706 ;
12707 return 0;
12708}
12709_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012710if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012711 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012713/* end confdefs.h. */
12714#include <limits.h>
12715
12716int
12717main ()
12718{
12719#ifndef _BIG_ENDIAN
12720 not big endian
12721 #endif
12722
12723 ;
12724 return 0;
12725}
12726_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012727if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012728 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012729else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012730 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012731fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012733fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12735 fi
12736 if test $ac_cv_c_bigendian = unknown; then
12737 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012738 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012739 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012741/* end confdefs.h. */
12742short int ascii_mm[] =
12743 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12744 short int ascii_ii[] =
12745 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12746 int use_ascii (int i) {
12747 return ascii_mm[i] + ascii_ii[i];
12748 }
12749 short int ebcdic_ii[] =
12750 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12751 short int ebcdic_mm[] =
12752 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12753 int use_ebcdic (int i) {
12754 return ebcdic_mm[i] + ebcdic_ii[i];
12755 }
12756 extern int foo;
12757
12758int
12759main ()
12760{
12761return use_ascii (foo) == use_ebcdic (foo);
12762 ;
12763 return 0;
12764}
12765_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012766if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012767 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12768 ac_cv_c_bigendian=yes
12769 fi
12770 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12771 if test "$ac_cv_c_bigendian" = unknown; then
12772 ac_cv_c_bigendian=no
12773 else
12774 # finding both strings is unlikely to happen, but who knows?
12775 ac_cv_c_bigendian=unknown
12776 fi
12777 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012778fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012780else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012782/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012783$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012784int
12785main ()
12786{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012787
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012788 /* Are we little or big endian? From Harbison&Steele. */
12789 union
12790 {
12791 long int l;
12792 char c[sizeof (long int)];
12793 } u;
12794 u.l = 1;
12795 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012796
12797 ;
12798 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012799}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012800_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012801if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012802 ac_cv_c_bigendian=no
12803else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012804 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012806rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12807 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012809
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012810 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012811fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012813$as_echo "$ac_cv_c_bigendian" >&6; }
12814 case $ac_cv_c_bigendian in #(
12815 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012816 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012817;; #(
12818 no)
12819 ;; #(
12820 universal)
12821
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012822$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012823
12824 ;; #(
12825 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012826 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012827 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012828 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012829
Chen Qi91f04682014-05-05 21:08:42 -040012830if test $cross_compiling = no; then
12831 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12832else
12833 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12834fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012835ASM_TYPES_HEADER=./asm_types.h
12836
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012837echo "/* These defines are needed for the public ext2fs.h header file */" \
12838 > public_config.h
12839if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12840 uniq tmp_config.$$ >> public_config.h
12841else
12842 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12843fi
12844if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12845 uniq tmp_config.$$ >> public_config.h
12846else
12847 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12848fi
12849rm -f tmp_config.$$
12850PUBLIC_CONFIG_HEADER=./public_config.h
12851
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012852for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012853do :
12854 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012855if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012856 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012857#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012858_ACEOF
12859
12860fi
12861
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012862done
12863
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012864ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012865if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012866
12867cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012868#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012869_ACEOF
12870
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012871
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012872fi
12873
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012874{ $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 +010012875$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012876if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012877 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012878else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012880/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012881#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012882int
12883main ()
12884{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012885struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012886 ;
12887 return 0;
12888}
12889_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012890if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012891 e2fsprogs_cv_struct_st_flags=yes
12892else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012893 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012894fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012895rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12896fi
12897
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012899$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012900if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012902$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012903 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012904 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012905else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012907/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012908#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012909int
12910main ()
12911{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012912struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012913 ;
12914 return 0;
12915}
12916_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012917if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012918 e2fsprogs_cv_struct_st_flags_immut=yes
12919else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012920 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12923fi
12924
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012926$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012927 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012928
12929$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012930
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012931 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012932fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012933ac_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 -050012934 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012935"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012936if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937
12938cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012939#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050012941
12942fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012944if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012946$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012947if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012948 $as_echo_n "(cached) " >&6
12949else
12950 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012951cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012952/* end confdefs.h. */
12953
12954/* Override any GCC internal prototype to avoid an error.
12955 Use char because int might match the return type of a GCC
12956 builtin and then its argument prototype would still apply. */
12957#ifdef __cplusplus
12958extern "C"
12959#endif
12960char blkid_probe_all ();
12961int
12962main ()
12963{
12964return blkid_probe_all ();
12965 ;
12966 return 0;
12967}
12968_ACEOF
12969for ac_lib in '' blkid; do
12970 if test -z "$ac_lib"; then
12971 ac_res="none required"
12972 else
12973 ac_res=-l$ac_lib
12974 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12975 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012976 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012977 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012978fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012979rm -f core conftest.err conftest.$ac_objext \
12980 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012981 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012982 break
12983fi
12984done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012985if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012986
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012987else
12988 ac_cv_search_blkid_probe_all=no
12989fi
12990rm conftest.$ac_ext
12991LIBS=$ac_func_search_save_LIBS
12992fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012994$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12995ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012996if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050012997 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12998
12999fi
13000
13001fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040013002for 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 -050013003do :
13004 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13005ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013006if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013007 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013008#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013009_ACEOF
13010
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013011fi
13012done
13013
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013014SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013016$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013017if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013018 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013019else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013020 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013021LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013023/* end confdefs.h. */
13024
Theodore Ts'oe1052142006-10-21 21:46:47 -040013025/* Override any GCC internal prototype to avoid an error.
13026 Use char because int might match the return type of a GCC
13027 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013028#ifdef __cplusplus
13029extern "C"
13030#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013031char socket ();
13032int
13033main ()
13034{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013035return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013036 ;
13037 return 0;
13038}
13039_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013040if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013041 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013042else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013043 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013044fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013045rm -f core conftest.err conftest.$ac_objext \
13046 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013047LIBS=$ac_check_lib_save_LIBS
13048fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013050$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013051if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013052 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013053fi
13054
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013055
Darrick J. Wongb291c112014-09-13 15:12:46 -070013056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13057$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13058if ${ac_cv_lib_magic_magic_file+:} false; then :
13059 $as_echo_n "(cached) " >&6
13060else
13061 ac_check_lib_save_LIBS=$LIBS
13062LIBS="-lmagic $LIBS"
13063cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13064/* end confdefs.h. */
13065
13066/* Override any GCC internal prototype to avoid an error.
13067 Use char because int might match the return type of a GCC
13068 builtin and then its argument prototype would still apply. */
13069#ifdef __cplusplus
13070extern "C"
13071#endif
13072char magic_file ();
13073int
13074main ()
13075{
13076return magic_file ();
13077 ;
13078 return 0;
13079}
13080_ACEOF
13081if ac_fn_c_try_link "$LINENO"; then :
13082 ac_cv_lib_magic_magic_file=yes
13083else
13084 ac_cv_lib_magic_magic_file=no
13085fi
13086rm -f core conftest.err conftest.$ac_objext \
13087 conftest$ac_exeext conftest.$ac_ext
13088LIBS=$ac_check_lib_save_LIBS
13089fi
13090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13091$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13092if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13093 MAGIC_LIB=-lmagic
13094for ac_header in magic.h
13095do :
13096 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13097if test "x$ac_cv_header_magic_h" = xyes; then :
13098 cat >>confdefs.h <<_ACEOF
13099#define HAVE_MAGIC_H 1
13100_ACEOF
13101
13102fi
13103
13104done
13105
13106fi
13107
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013108if test "$ac_cv_lib_dl_dlopen" = yes ; then
13109 MAGIC_LIB=$DLOPEN_LIB
13110fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013111
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013112FUSE_CMT=
13113FUSE_LIB=
13114# Check whether --enable-fuse2fs was given.
13115if test "${enable_fuse2fs+set}" = set; then :
13116 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13117then
13118 FUSE_CMT="#"
13119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13120$as_echo "Disabling fuse2fs" >&6; }
13121else
13122 for ac_header in pthread.h fuse.h
13123do :
13124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13125ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13126#define FUSE_USE_VERSION 29
13127"
13128if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13129 cat >>confdefs.h <<_ACEOF
13130#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13131_ACEOF
13132
13133else
13134 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13136as_fn_error $? "Cannot find fuse2fs headers.
13137See \`config.log' for more details" "$LINENO" 5; }
13138fi
13139
13140done
13141
13142
13143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13144/* end confdefs.h. */
13145#define FUSE_USE_VERSION 29
13146#ifdef __linux__
13147#include <linux/fs.h>
13148#include <linux/falloc.h>
13149#include <linux/xattr.h>
13150#endif
13151
13152int
13153main ()
13154{
13155
13156 ;
13157 return 0;
13158}
13159_ACEOF
13160if ac_fn_c_try_cpp "$LINENO"; then :
13161
13162else
13163 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13164$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13165as_fn_error $? "Cannot find fuse2fs Linux headers.
13166See \`config.log' for more details" "$LINENO" 5; }
13167fi
13168rm -f conftest.err conftest.i conftest.$ac_ext
13169
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13171$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13172if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13173 $as_echo_n "(cached) " >&6
13174else
13175 ac_check_lib_save_LIBS=$LIBS
13176LIBS="-losxfuse $LIBS"
13177cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13178/* end confdefs.h. */
13179
13180/* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13183#ifdef __cplusplus
13184extern "C"
13185#endif
13186char fuse_main ();
13187int
13188main ()
13189{
13190return fuse_main ();
13191 ;
13192 return 0;
13193}
13194_ACEOF
13195if ac_fn_c_try_link "$LINENO"; then :
13196 ac_cv_lib_osxfuse_fuse_main=yes
13197else
13198 ac_cv_lib_osxfuse_fuse_main=no
13199fi
13200rm -f core conftest.err conftest.$ac_objext \
13201 conftest$ac_exeext conftest.$ac_ext
13202LIBS=$ac_check_lib_save_LIBS
13203fi
13204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13205$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13206if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13207 FUSE_LIB=-losxfuse
13208else
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13210$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13211if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13212 $as_echo_n "(cached) " >&6
13213else
13214 ac_check_lib_save_LIBS=$LIBS
13215LIBS="-lfuse $LIBS"
13216cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13217/* end confdefs.h. */
13218
13219/* Override any GCC internal prototype to avoid an error.
13220 Use char because int might match the return type of a GCC
13221 builtin and then its argument prototype would still apply. */
13222#ifdef __cplusplus
13223extern "C"
13224#endif
13225char fuse_main ();
13226int
13227main ()
13228{
13229return fuse_main ();
13230 ;
13231 return 0;
13232}
13233_ACEOF
13234if ac_fn_c_try_link "$LINENO"; then :
13235 ac_cv_lib_fuse_fuse_main=yes
13236else
13237 ac_cv_lib_fuse_fuse_main=no
13238fi
13239rm -f core conftest.err conftest.$ac_objext \
13240 conftest$ac_exeext conftest.$ac_ext
13241LIBS=$ac_check_lib_save_LIBS
13242fi
13243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13244$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13245if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13246 FUSE_LIB=-lfuse
13247else
13248 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13249$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13250as_fn_error $? "Cannot find fuse library.
13251See \`config.log' for more details" "$LINENO" 5; }
13252fi
13253
13254fi
13255
13256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13257$as_echo "Enabling fuse2fs" >&6; }
13258fi
13259
13260else
13261 for ac_header in pthread.h fuse.h
13262do :
13263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13264ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13265#define FUSE_USE_VERSION 29
13266#ifdef __linux__
13267# include <linux/fs.h>
13268# include <linux/falloc.h>
13269# include <linux/xattr.h>
13270#endif
13271"
13272if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13273 cat >>confdefs.h <<_ACEOF
13274#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13275_ACEOF
13276
13277else
13278 FUSE_CMT="#"
13279fi
13280
13281done
13282
13283if test -z "$FUSE_CMT"
13284then
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13286$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13287if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 ac_check_lib_save_LIBS=$LIBS
13291LIBS="-losxfuse $LIBS"
13292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h. */
13294
13295/* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13298#ifdef __cplusplus
13299extern "C"
13300#endif
13301char fuse_main ();
13302int
13303main ()
13304{
13305return fuse_main ();
13306 ;
13307 return 0;
13308}
13309_ACEOF
13310if ac_fn_c_try_link "$LINENO"; then :
13311 ac_cv_lib_osxfuse_fuse_main=yes
13312else
13313 ac_cv_lib_osxfuse_fuse_main=no
13314fi
13315rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317LIBS=$ac_check_lib_save_LIBS
13318fi
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13320$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13321if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13322 FUSE_LIB=-losxfuse
13323else
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13325$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13326if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328else
13329 ac_check_lib_save_LIBS=$LIBS
13330LIBS="-lfuse $LIBS"
13331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332/* end confdefs.h. */
13333
13334/* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13337#ifdef __cplusplus
13338extern "C"
13339#endif
13340char fuse_main ();
13341int
13342main ()
13343{
13344return fuse_main ();
13345 ;
13346 return 0;
13347}
13348_ACEOF
13349if ac_fn_c_try_link "$LINENO"; then :
13350 ac_cv_lib_fuse_fuse_main=yes
13351else
13352 ac_cv_lib_fuse_fuse_main=no
13353fi
13354rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356LIBS=$ac_check_lib_save_LIBS
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13359$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13360if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13361 FUSE_LIB=-lfuse
13362else
13363 FUSE_CMT="#"
13364fi
13365
13366fi
13367
13368fi
13369if test -z "$FUSE_CMT"
13370then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13372$as_echo "Enabling fuse2fs by default." >&6; }
13373fi
13374
13375fi
13376
13377
13378
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013380$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013381if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013382 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013383else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013385/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013386#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013387
13388_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013389if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013390 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013391 ac_cv_have_optreset=yes
13392else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013393 ac_cv_have_optreset=no
13394fi
13395rm -f conftest*
13396
13397fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013399$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013400if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013401
13402$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013403
13404fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013405
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013406SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013407ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013408if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013409
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013410else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013412$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013413if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013414 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013415else
13416 ac_check_lib_save_LIBS=$LIBS
13417LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013418cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013419/* end confdefs.h. */
13420
13421/* Override any GCC internal prototype to avoid an error.
13422 Use char because int might match the return type of a GCC
13423 builtin and then its argument prototype would still apply. */
13424#ifdef __cplusplus
13425extern "C"
13426#endif
13427char sem_init ();
13428int
13429main ()
13430{
13431return sem_init ();
13432 ;
13433 return 0;
13434}
13435_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013436if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013437 ac_cv_lib_pthread_sem_init=yes
13438else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013439 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013440fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013441rm -f core conftest.err conftest.$ac_objext \
13442 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013443LIBS=$ac_check_lib_save_LIBS
13444fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013446$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013447if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013448 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013449
13450 SEM_INIT_LIB=-lpthread
13451else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013453$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013454if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013455 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013456else
13457 ac_check_lib_save_LIBS=$LIBS
13458LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013459cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013460/* end confdefs.h. */
13461
13462/* Override any GCC internal prototype to avoid an error.
13463 Use char because int might match the return type of a GCC
13464 builtin and then its argument prototype would still apply. */
13465#ifdef __cplusplus
13466extern "C"
13467#endif
13468char sem_init ();
13469int
13470main ()
13471{
13472return sem_init ();
13473 ;
13474 return 0;
13475}
13476_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013477if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013478 ac_cv_lib_rt_sem_init=yes
13479else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013480 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013481fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013482rm -f core conftest.err conftest.$ac_objext \
13483 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013484LIBS=$ac_check_lib_save_LIBS
13485fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013487$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013488if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013489 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013490
13491 SEM_INIT_LIB=-lrt
13492else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013494$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013495if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013496 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013497else
13498 ac_check_lib_save_LIBS=$LIBS
13499LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013501/* end confdefs.h. */
13502
13503/* Override any GCC internal prototype to avoid an error.
13504 Use char because int might match the return type of a GCC
13505 builtin and then its argument prototype would still apply. */
13506#ifdef __cplusplus
13507extern "C"
13508#endif
13509char sem_init ();
13510int
13511main ()
13512{
13513return sem_init ();
13514 ;
13515 return 0;
13516}
13517_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013518if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013519 ac_cv_lib_posix4_sem_init=yes
13520else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013521 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013522fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013523rm -f core conftest.err conftest.$ac_objext \
13524 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013525LIBS=$ac_check_lib_save_LIBS
13526fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013528$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013529if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013530 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013531
13532 SEM_INIT_LIB=-lposix4
13533fi
13534
13535fi
13536
13537fi
13538
13539fi
13540
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013542$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013543if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013544 UNI_DIFF_OPTS=-u
13545else
13546 UNI_DIFF_OPTS=-c
13547fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013549$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013550
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013551case "$host_os" in
13552linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013553
13554$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013555
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013556 ;;
13557esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013558LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013559CYGWIN_CMT="#"
13560UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013561case "$host_os" in
13562linux*)
13563 LINUX_CMT=
13564 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013565cygwin)
13566 CYGWIN_CMT=
13567 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013568 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013569esac
13570
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013571
13572
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013573case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013574linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013575 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13576 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013577 { $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 +010013578$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013579 fi
13580 ;;
13581esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013582case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013583linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013584 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013585 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013586 { $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 +010013587$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013588 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013590$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013591 mandir=/usr/share/man
13592 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013593 fi
13594;;
13595esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013596if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013597 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013598 root_prefix="$ac_default_prefix"
13599 else
13600 root_prefix="$prefix"
13601 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013602 root_bindir=$bindir
13603 root_sbindir=$sbindir
13604 root_libdir=$libdir
13605 root_sysconfdir=$sysconfdir
13606else
13607 root_bindir='${root_prefix}/bin'
13608 root_sbindir='${root_prefix}/sbin'
13609 root_libdir='${root_prefix}/lib'
13610 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013611fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013612if test "$bindir" != '${exec_prefix}/bin'; then
13613 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013615$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013616fi
13617if test "$sbindir" != '${exec_prefix}/sbin'; then
13618 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013620$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013621fi
13622if test "$libdir" != '${exec_prefix}/lib'; then
13623 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013625$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013626fi
13627if test "$sysconfdir" != '${prefix}/etc'; then
13628 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013630$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013631fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013632
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013633
13634
13635
13636
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013637
13638# Check whether --with-multiarch was given.
13639if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013640 withval=$with_multiarch; if test "$withval" = "lib64"; then
13641 libdir=/usr/lib64
13642 root_libdir=/lib64
13643else
13644 libdir=$libdir/$withval
13645 root_libdir=$root_libdir/$withval
13646fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013647
13648fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13650$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013651if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013652 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013653else
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013654 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013655cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013656/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013657#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013658int
13659main ()
13660{
Theodore Ts'oae851481997-04-29 18:13:24 +000013661fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013662 ;
13663 return 0;
13664}
13665_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013666if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013667 ac_cv_e2fsprogs_use_static=yes
13668else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013669 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013670fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013671rm -f core conftest.err conftest.$ac_objext \
13672 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013673LDFLAGS=$SAVE_LDFLAGS
13674fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013675
Theodore Ts'odefde781999-01-04 07:39:19 +000013676case "$host_os" in
13677solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013678 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013679;;
13680esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013682$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'oae851481997-04-29 18:13:24 +000013683if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013684 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
Theodore Ts'oae851481997-04-29 18:13:24 +000013685fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013686
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013687case "$host_os" in
13688darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013690$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013691
13692$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013693
13694 ;;
13695esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013696SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13697ET_DIR=`cd ${srcdir}/lib/et; pwd`
13698
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013699
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013700if test "$cross_compiling" = yes ; then
13701 DO_TEST_SUITE=
13702else
13703 DO_TEST_SUITE=check
13704fi
13705
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013706INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13707if test -n "$CPPFLAGS" ; then
13708 INCLUDES="$INCLUDES $CPPFLAGS"
13709fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013710if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013711 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013712fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013713if test -n "$WITH_DIET_LIBC" ; then
13714 INCLUDES="$INCLUDES -D_REENTRANT"
13715fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013716
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013717
13718 MKINSTALLDIRS=
13719 if test -n "$ac_aux_dir"; then
13720 case "$ac_aux_dir" in
13721 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13722 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13723 esac
13724 fi
13725 if test -z "$MKINSTALLDIRS"; then
13726 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13727 fi
13728
13729
Theodore Ts'odd947da2005-11-09 18:37:07 -040013730if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013731 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013732 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013733fi
13734
13735
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013736CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13737CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13738LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13739
13740
13741
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013742test -d lib || mkdir lib
13743test -d include || mkdir include
13744test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013745test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013746if test -z "$UUID_CMT" ; then
13747 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13748 lib/uuid/uuid_types.h"
13749fi
13750if test -z "$BLKID_CMT" ; then
13751 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13752 lib/blkid/blkid_types.h"
13753fi
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013754for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013755 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013756 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13757 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013758 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013759 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 -050013760 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013761 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013762 resize/Makefile doc/Makefile intl/Makefile \
13763 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013764 if test -d `dirname ${srcdir}/$i` ; then
13765 outlist="$outlist $i"
13766 fi
13767done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013768ac_config_files="$ac_config_files $outlist"
13769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013770cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013771# This file is a shell script that caches the results of configure
13772# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013773# scripts and configure runs, see configure's option --config-cache.
13774# It is not useful on other systems. If it contains results you don't
13775# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013776#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013777# config.status only pays attention to the cache file if you give it
13778# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013779#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013780# `ac_cv_env_foo' variables (set or unset) will be overridden when
13781# loading this file, other *unset* `ac_cv_foo' will be assigned the
13782# following values.
13783
13784_ACEOF
13785
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013786# The following way of writing the cache mishandles newlines in values,
13787# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013788# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013789# Ultrix sh set writes to stderr and can't be redirected directly,
13790# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013791(
13792 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13793 eval ac_val=\$$ac_var
13794 case $ac_val in #(
13795 *${as_nl}*)
13796 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013797 *_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 +010013798$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013799 esac
13800 case $ac_var in #(
13801 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013802 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013803 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013804 esac ;;
13805 esac
13806 done
13807
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013808 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013809 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13810 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013811 # `set' does not quote correctly, so add quotes: double-quote
13812 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013813 sed -n \
13814 "s/'/'\\\\''/g;
13815 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013816 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013817 *)
13818 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013819 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013820 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013821 esac |
13822 sort
13823) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013824 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013825 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013826 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013827 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013828 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13829 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013830 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13831 :end' >>confcache
13832if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13833 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013834 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013835 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013836$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013837 if test ! -f "$cache_file" || test -h "$cache_file"; then
13838 cat confcache >"$cache_file"
13839 else
13840 case $cache_file in #(
13841 */* | ?:*)
13842 mv -f confcache "$cache_file"$$ &&
13843 mv -f "$cache_file"$$ "$cache_file" ;; #(
13844 *)
13845 mv -f confcache "$cache_file" ;;
13846 esac
13847 fi
13848 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013849 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013850 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013851$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013852 fi
13853fi
13854rm -f confcache
13855
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013856test "x$prefix" = xNONE && prefix=$ac_default_prefix
13857# Let make expand exec_prefix.
13858test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13859
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013860DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013861
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013862ac_libobjs=
13863ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013864U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013865for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13866 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013867 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013868 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013869 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13870 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013871 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13872 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013873done
13874LIBOBJS=$ac_libobjs
13875
13876LTLIBOBJS=$ac_ltlibobjs
13877
13878
13879
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013880
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013881: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013882ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013883ac_clean_files_save=$ac_clean_files
13884ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013885{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013886$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013887as_write_fail=0
13888cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013889#! $SHELL
13890# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013891# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013892# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013893# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013894
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013895debug=false
13896ac_cs_recheck=false
13897ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013898
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013899SHELL=\${CONFIG_SHELL-$SHELL}
13900export SHELL
13901_ASEOF
13902cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13903## -------------------- ##
13904## M4sh Initialization. ##
13905## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013906
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013907# Be more Bourne compatible
13908DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013909if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013910 emulate sh
13911 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013912 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013913 # is contrary to our usage. Disable this feature.
13914 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013915 setopt NO_GLOB_SUBST
13916else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013917 case `(set -o) 2>/dev/null` in #(
13918 *posix*) :
13919 set -o posix ;; #(
13920 *) :
13921 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013922esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013923fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013924
13925
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013926as_nl='
13927'
13928export as_nl
13929# Printing a long string crashes Solaris 7 /usr/bin/printf.
13930as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13931as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13932as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013933# Prefer a ksh shell builtin over an external printf program on Solaris,
13934# but without wasting forks for bash or zsh.
13935if test -z "$BASH_VERSION$ZSH_VERSION" \
13936 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13937 as_echo='print -r --'
13938 as_echo_n='print -rn --'
13939elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013940 as_echo='printf %s\n'
13941 as_echo_n='printf %s'
13942else
13943 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13944 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13945 as_echo_n='/usr/ucb/echo -n'
13946 else
13947 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13948 as_echo_n_body='eval
13949 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013950 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013951 *"$as_nl"*)
13952 expr "X$arg" : "X\\(.*\\)$as_nl";
13953 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13954 esac;
13955 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13956 '
13957 export as_echo_n_body
13958 as_echo_n='sh -c $as_echo_n_body as_echo'
13959 fi
13960 export as_echo_body
13961 as_echo='sh -c $as_echo_body as_echo'
13962fi
13963
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013964# The user is always right.
13965if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013966 PATH_SEPARATOR=:
13967 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13968 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13969 PATH_SEPARATOR=';'
13970 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013971fi
13972
Theodore Ts'oe1052142006-10-21 21:46:47 -040013973
13974# IFS
13975# We need space, tab and new line, in precisely that order. Quoting is
13976# there to prevent editors from complaining about space-tab.
13977# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13978# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013979IFS=" "" $as_nl"
13980
13981# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013982as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013983case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040013984 *[\\/]* ) as_myself=$0 ;;
13985 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013986for as_dir in $PATH
13987do
13988 IFS=$as_save_IFS
13989 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013990 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13991 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013992IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013993
Theodore Ts'oe1052142006-10-21 21:46:47 -040013994 ;;
13995esac
13996# We did not find ourselves, most probably we were run as `sh COMMAND'
13997# in which case we are not to be found in the path.
13998if test "x$as_myself" = x; then
13999 as_myself=$0
14000fi
14001if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014002 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014003 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014004fi
14005
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014006# Unset variables that we do not need and which cause bugs (e.g. in
14007# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14008# suppresses any "Segmentation fault" message there. '((' could
14009# trigger a bug in pdksh 5.2.14.
14010for as_var in BASH_ENV ENV MAIL MAILPATH
14011do eval test x\${$as_var+set} = xset \
14012 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040014013done
14014PS1='$ '
14015PS2='> '
14016PS4='+ '
14017
14018# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014019LC_ALL=C
14020export LC_ALL
14021LANGUAGE=C
14022export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040014023
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014024# CDPATH.
14025(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14026
14027
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014028# as_fn_error STATUS ERROR [LINENO LOG_FD]
14029# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014030# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14031# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014032# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014033as_fn_error ()
14034{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014035 as_status=$1; test $as_status -eq 0 && as_status=1
14036 if test "$4"; then
14037 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14038 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014039 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014040 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014041 as_fn_exit $as_status
14042} # as_fn_error
14043
14044
14045# as_fn_set_status STATUS
14046# -----------------------
14047# Set $? to STATUS, without forking.
14048as_fn_set_status ()
14049{
14050 return $1
14051} # as_fn_set_status
14052
14053# as_fn_exit STATUS
14054# -----------------
14055# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14056as_fn_exit ()
14057{
14058 set +e
14059 as_fn_set_status $1
14060 exit $1
14061} # as_fn_exit
14062
14063# as_fn_unset VAR
14064# ---------------
14065# Portably unset VAR.
14066as_fn_unset ()
14067{
14068 { eval $1=; unset $1;}
14069}
14070as_unset=as_fn_unset
14071# as_fn_append VAR VALUE
14072# ----------------------
14073# Append the text in VALUE to the end of the definition contained in VAR. Take
14074# advantage of any shell optimizations that allow amortized linear growth over
14075# repeated appends, instead of the typical quadratic growth present in naive
14076# implementations.
14077if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14078 eval 'as_fn_append ()
14079 {
14080 eval $1+=\$2
14081 }'
14082else
14083 as_fn_append ()
14084 {
14085 eval $1=\$$1\$2
14086 }
14087fi # as_fn_append
14088
14089# as_fn_arith ARG...
14090# ------------------
14091# Perform arithmetic evaluation on the ARGs, and store the result in the
14092# global $as_val. Take advantage of shells that can avoid forks. The arguments
14093# must be portable across $(()) and expr.
14094if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14095 eval 'as_fn_arith ()
14096 {
14097 as_val=$(( $* ))
14098 }'
14099else
14100 as_fn_arith ()
14101 {
14102 as_val=`expr "$@" || test $? -eq 1`
14103 }
14104fi # as_fn_arith
14105
14106
Theodore Ts'oe1052142006-10-21 21:46:47 -040014107if expr a : '\(a\)' >/dev/null 2>&1 &&
14108 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14109 as_expr=expr
14110else
14111 as_expr=false
14112fi
14113
14114if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14115 as_basename=basename
14116else
14117 as_basename=false
14118fi
14119
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014120if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14121 as_dirname=dirname
14122else
14123 as_dirname=false
14124fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014125
Theodore Ts'oe1052142006-10-21 21:46:47 -040014126as_me=`$as_basename -- "$0" ||
14127$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14128 X"$0" : 'X\(//\)$' \| \
14129 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014130$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014131 sed '/^.*\/\([^/][^/]*\)\/*$/{
14132 s//\1/
14133 q
14134 }
14135 /^X\/\(\/\/\)$/{
14136 s//\1/
14137 q
14138 }
14139 /^X\/\(\/\).*/{
14140 s//\1/
14141 q
14142 }
14143 s/.*/./; q'`
14144
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014145# Avoid depending upon Character Ranges.
14146as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14147as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14148as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14149as_cr_digits='0123456789'
14150as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014151
14152ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014153case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014154-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014155 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014156 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014157 xy) ECHO_C='\c';;
14158 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14159 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014160 esac;;
14161*)
14162 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014163esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014164
14165rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014166if test -d conf$$.dir; then
14167 rm -f conf$$.dir/conf$$.file
14168else
14169 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014170 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014171fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014172if (echo >conf$$.file) 2>/dev/null; then
14173 if ln -s conf$$.file conf$$ 2>/dev/null; then
14174 as_ln_s='ln -s'
14175 # ... but there are two gotchas:
14176 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14177 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014178 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014179 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014180 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014181 elif ln conf$$.file conf$$ 2>/dev/null; then
14182 as_ln_s=ln
14183 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014184 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014185 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014186else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014187 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014188fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014189rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14190rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014191
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014192
14193# as_fn_mkdir_p
14194# -------------
14195# Create "$as_dir" as a directory, including parents if necessary.
14196as_fn_mkdir_p ()
14197{
14198
14199 case $as_dir in #(
14200 -*) as_dir=./$as_dir;;
14201 esac
14202 test -d "$as_dir" || eval $as_mkdir_p || {
14203 as_dirs=
14204 while :; do
14205 case $as_dir in #(
14206 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14207 *) as_qdir=$as_dir;;
14208 esac
14209 as_dirs="'$as_qdir' $as_dirs"
14210 as_dir=`$as_dirname -- "$as_dir" ||
14211$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14212 X"$as_dir" : 'X\(//\)[^/]' \| \
14213 X"$as_dir" : 'X\(//\)$' \| \
14214 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14215$as_echo X"$as_dir" |
14216 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14217 s//\1/
14218 q
14219 }
14220 /^X\(\/\/\)[^/].*/{
14221 s//\1/
14222 q
14223 }
14224 /^X\(\/\/\)$/{
14225 s//\1/
14226 q
14227 }
14228 /^X\(\/\).*/{
14229 s//\1/
14230 q
14231 }
14232 s/.*/./; q'`
14233 test -d "$as_dir" && break
14234 done
14235 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014236 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014237
14238
14239} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014240if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014241 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014242else
14243 test -d ./-p && rmdir ./-p
14244 as_mkdir_p=false
14245fi
14246
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014247
14248# as_fn_executable_p FILE
14249# -----------------------
14250# Test if FILE is an executable regular file.
14251as_fn_executable_p ()
14252{
14253 test -f "$1" && test -x "$1"
14254} # as_fn_executable_p
14255as_test_x='test -x'
14256as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014257
14258# Sed expression to map a string onto a valid CPP name.
14259as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14260
14261# Sed expression to map a string onto a valid variable name.
14262as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14263
14264
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014265exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014266## ----------------------------------- ##
14267## Main body of $CONFIG_STATUS script. ##
14268## ----------------------------------- ##
14269_ASEOF
14270test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014271
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014272cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14273# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014274# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014275# values after options handling.
14276ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014277This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014278generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014279
14280 CONFIG_FILES = $CONFIG_FILES
14281 CONFIG_HEADERS = $CONFIG_HEADERS
14282 CONFIG_LINKS = $CONFIG_LINKS
14283 CONFIG_COMMANDS = $CONFIG_COMMANDS
14284 $ $0 $@
14285
Theodore Ts'oe1052142006-10-21 21:46:47 -040014286on `(hostname || uname -n) 2>/dev/null | sed 1q`
14287"
14288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014289_ACEOF
14290
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014291case $ac_config_files in *"
14292"*) set x $ac_config_files; shift; ac_config_files=$*;;
14293esac
14294
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014295case $ac_config_headers in *"
14296"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14297esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014298
14299
14300cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014301# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014302config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014303config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014304config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014305
Theodore Ts'oe1052142006-10-21 21:46:47 -040014306_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014307
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014309ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014310\`$as_me' instantiates files and other configuration actions
14311from templates according to the current configuration. Unless the files
14312and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014313
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014314Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014315
14316 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014317 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014318 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014319 -q, --quiet, --silent
14320 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014321 -d, --debug don't remove temporary files
14322 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014323 --file=FILE[:TEMPLATE]
14324 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014325 --header=FILE[:TEMPLATE]
14326 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014327
14328Configuration files:
14329$config_files
14330
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014331Configuration headers:
14332$config_headers
14333
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014334Configuration commands:
14335$config_commands
14336
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014337Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014338
Theodore Ts'oe1052142006-10-21 21:46:47 -040014339_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014341ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014342ac_cs_version="\\
14343config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014344configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014345 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014346
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014347Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014348This config.status script is free software; the Free Software Foundation
14349gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014350
14351ac_pwd='$ac_pwd'
14352srcdir='$srcdir'
14353INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014354MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014355AWK='$AWK'
14356test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014357_ACEOF
14358
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014359cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14360# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014361ac_need_defaults=:
14362while test $# != 0
14363do
14364 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014365 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014366 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14367 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014368 ac_shift=:
14369 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014370 --*=)
14371 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14372 ac_optarg=
14373 ac_shift=:
14374 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014375 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376 ac_option=$1
14377 ac_optarg=$2
14378 ac_shift=shift
14379 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014380 esac
14381
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382 case $ac_option in
14383 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014384 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14385 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014386 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014387 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014388 --config | --confi | --conf | --con | --co | --c )
14389 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014390 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014391 debug=: ;;
14392 --file | --fil | --fi | --f )
14393 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014394 case $ac_optarg in
14395 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014396 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014397 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014398 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014399 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014400 --header | --heade | --head | --hea )
14401 $ac_shift
14402 case $ac_optarg in
14403 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14404 esac
14405 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14406 ac_need_defaults=false;;
14407 --he | --h)
14408 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014409 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014410Try \`$0 --help' for more information.";;
14411 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014412 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14414 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14415 ac_cs_silent=: ;;
14416
14417 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014418 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014419Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014420
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014421 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014422 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014423
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014424 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014425 shift
14426done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014428ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014429
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014430if $ac_cs_silent; then
14431 exec 6>/dev/null
14432 ac_configure_extra_args="$ac_configure_extra_args --silent"
14433fi
14434
14435_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014436cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014437if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014438 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014439 shift
14440 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14441 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014442 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014443 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014444fi
14445
14446_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014448exec 5>>config.log
14449{
14450 echo
14451 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14452## Running $as_me. ##
14453_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014454 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014455} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014456
Theodore Ts'oe1052142006-10-21 21:46:47 -040014457_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014458cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014459#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014460# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014461#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014462# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014463 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014464 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014465 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014466 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14467 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014468
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014469
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014470_ACEOF
14471
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014472cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014473
14474# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014475for ac_config_target in $ac_config_targets
14476do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014477 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014478 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014479 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014480 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14481
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014482 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014483 esac
14484done
14485
Theodore Ts'oe1052142006-10-21 21:46:47 -040014486
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014487# If the user did not use the arguments to specify the items to instantiate,
14488# then the envvar interface is used. Set only those that are not.
14489# We use the long form for the default assignment because of an extremely
14490# bizarre bug on SunOS 4.1.3.
14491if $ac_need_defaults; then
14492 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014493 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014494 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14495fi
14496
14497# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014498# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014499# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014500# Hook for its removal unless debugging.
14501# Note that there is a small window in which the directory will not be cleaned:
14502# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014503$debug ||
14504{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014505 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014506 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014507 : "${ac_tmp:=$tmp}"
14508 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014509' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014510 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014511}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014512# Create a (secure) tmp directory for tmp files.
14513
14514{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014515 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014516 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014517} ||
14518{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014519 tmp=./conf$$-$RANDOM
14520 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014521} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14522ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014523
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014524# Set up the scripts for CONFIG_FILES section.
14525# No need to generate them if there are no CONFIG_FILES.
14526# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014527if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014528
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014529if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14530 ac_cs_awk_getline=:
14531 ac_cs_awk_pipe_init=
14532 ac_cs_awk_read_file='
14533 while ((getline aline < (F[key])) > 0)
14534 print(aline)
14535 close(F[key])'
14536 ac_cs_awk_pipe_fini=
14537else
14538 ac_cs_awk_getline=false
14539 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14540 ac_cs_awk_read_file='
14541 print "|#_!!_#|"
14542 print "cat " F[key] " &&"
14543 '$ac_cs_awk_pipe_init
14544 # The final `:' finishes the AND list.
14545 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014547ac_cr=`echo X | tr X '\015'`
14548# On cygwin, bash can eat \r inside `` if the user requested igncr.
14549# But we know of no other shell where ac_cr would be empty at this
14550# point, so we can use a bashism as a fallback.
14551if test "x$ac_cr" = x; then
14552 eval ac_cr=\$\'\\r\'
14553fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014554ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14555if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014556 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014557else
14558 ac_cs_awk_cr=$ac_cr
14559fi
14560
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014561echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014562_ACEOF
14563
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014564# Create commands to substitute file output variables.
14565{
14566 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014567 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014568 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14569 echo "_ACAWK" &&
14570 echo "_ACEOF"
14571} >conf$$files.sh &&
14572. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014573 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014574rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014575
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014576{
14577 echo "cat >conf$$subs.awk <<_ACEOF" &&
14578 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14579 echo "_ACEOF"
14580} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014581 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14582ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014583ac_delim='%!_!# '
14584for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014585 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014586 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014587
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014588 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14589 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014590 break
14591 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014592 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014593 else
14594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014595 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014596done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014597rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014598
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014599cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014600cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014601_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014602sed -n '
14603h
14604s/^/S["/; s/!.*/"]=/
14605p
14606g
14607s/^[^!]*!//
14608:repl
14609t repl
14610s/'"$ac_delim"'$//
14611t delim
14612:nl
14613h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014614s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014615t more1
14616s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14617p
14618n
14619b repl
14620:more1
14621s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14622p
14623g
14624s/.\{148\}//
14625t nl
14626:delim
14627h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014628s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014629t more2
14630s/["\\]/\\&/g; s/^/"/; s/$/"/
14631p
14632b
14633:more2
14634s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14635p
14636g
14637s/.\{148\}//
14638t delim
14639' <conf$$subs.awk | sed '
14640/^[^""]/{
14641 N
14642 s/\n//
14643}
14644' >>$CONFIG_STATUS || ac_write_fail=1
14645rm -f conf$$subs.awk
14646cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14647_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014648cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014649 for (key in S) S_is_set[key] = 1
14650 FS = ""
14651 \$ac_cs_awk_pipe_init
14652}
14653{
14654 line = $ 0
14655 nfields = split(line, field, "@")
14656 substed = 0
14657 len = length(field[1])
14658 for (i = 2; i < nfields; i++) {
14659 key = field[i]
14660 keylen = length(key)
14661 if (S_is_set[key]) {
14662 value = S[key]
14663 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14664 len += length(value) + length(field[++i])
14665 substed = 1
14666 } else
14667 len += 1 + keylen
14668 }
14669 if (nfields == 3 && !substed) {
14670 key = field[2]
14671 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14672 \$ac_cs_awk_read_file
14673 next
14674 }
14675 }
14676 print line
14677}
14678\$ac_cs_awk_pipe_fini
14679_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014680_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014681cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14682if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14683 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14684else
14685 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014686fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14687 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014688_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014689
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014690# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14691# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014692# trailing colons and then remove the whole line if VPATH becomes empty
14693# (actually we leave an empty line to preserve line numbers).
14694if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014695 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14696h
14697s///
14698s/^/:/
14699s/[ ]*$/:/
14700s/:\$(srcdir):/:/g
14701s/:\${srcdir}:/:/g
14702s/:@srcdir@:/:/g
14703s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014704s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014705x
14706s/\(=[ ]*\).*/\1/
14707G
14708s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014709s/^[^=]*=[ ]*$//
14710}'
14711fi
14712
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014713cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014714fi # test -n "$CONFIG_FILES"
14715
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014716# Set up the scripts for CONFIG_HEADERS section.
14717# No need to generate them if there are no CONFIG_HEADERS.
14718# This happens for instance with `./config.status Makefile'.
14719if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014720cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014721BEGIN {
14722_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014723
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014724# Transform confdefs.h into an awk script `defines.awk', embedded as
14725# here-document in config.status, that substitutes the proper values into
14726# config.h.in to produce config.h.
14727
14728# Create a delimiter string that does not exist in confdefs.h, to ease
14729# handling of long lines.
14730ac_delim='%!_!# '
14731for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014732 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14733 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014734 break
14735 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014736 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014737 else
14738 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14739 fi
14740done
14741
14742# For the awk script, D is an array of macro values keyed by name,
14743# likewise P contains macro parameters if any. Preserve backslash
14744# newline sequences.
14745
14746ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14747sed -n '
14748s/.\{148\}/&'"$ac_delim"'/g
14749t rset
14750:rset
14751s/^[ ]*#[ ]*define[ ][ ]*/ /
14752t def
14753d
14754:def
14755s/\\$//
14756t bsnl
14757s/["\\]/\\&/g
14758s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14759D["\1"]=" \3"/p
14760s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14761d
14762:bsnl
14763s/["\\]/\\&/g
14764s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14765D["\1"]=" \3\\\\\\n"\\/p
14766t cont
14767s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14768t cont
14769d
14770:cont
14771n
14772s/.\{148\}/&'"$ac_delim"'/g
14773t clear
14774:clear
14775s/\\$//
14776t bsnlc
14777s/["\\]/\\&/g; s/^/"/; s/$/"/p
14778d
14779:bsnlc
14780s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14781b cont
14782' <confdefs.h | sed '
14783s/'"$ac_delim"'/"\\\
14784"/g' >>$CONFIG_STATUS || ac_write_fail=1
14785
14786cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14787 for (key in D) D_is_set[key] = 1
14788 FS = ""
14789}
14790/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14791 line = \$ 0
14792 split(line, arg, " ")
14793 if (arg[1] == "#") {
14794 defundef = arg[2]
14795 mac1 = arg[3]
14796 } else {
14797 defundef = substr(arg[1], 2)
14798 mac1 = arg[2]
14799 }
14800 split(mac1, mac2, "(") #)
14801 macro = mac2[1]
14802 prefix = substr(line, 1, index(line, defundef) - 1)
14803 if (D_is_set[macro]) {
14804 # Preserve the white space surrounding the "#".
14805 print prefix "define", macro P[macro] D[macro]
14806 next
14807 } else {
14808 # Replace #undef with comments. This is necessary, for example,
14809 # in the case of _POSIX_SOURCE, which is predefined and required
14810 # on some systems where configure will not decide to define it.
14811 if (defundef == "undef") {
14812 print "/*", prefix defundef, macro, "*/"
14813 next
14814 }
14815 }
14816}
14817{ print }
14818_ACAWK
14819_ACEOF
14820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014821 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014822fi # test -n "$CONFIG_HEADERS"
14823
14824
14825eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014826shift
14827for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014828do
14829 case $ac_tag in
14830 :[FHLC]) ac_mode=$ac_tag; continue;;
14831 esac
14832 case $ac_mode$ac_tag in
14833 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014834 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014835 :[FH]-) ac_tag=-:-;;
14836 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14837 esac
14838 ac_save_IFS=$IFS
14839 IFS=:
14840 set x $ac_tag
14841 IFS=$ac_save_IFS
14842 shift
14843 ac_file=$1
14844 shift
14845
14846 case $ac_mode in
14847 :L) ac_source=$1;;
14848 :[FH])
14849 ac_file_inputs=
14850 for ac_f
14851 do
14852 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014853 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014854 *) # Look for the file first in the build tree, then in the source tree
14855 # (if the path is not absolute). The absolute path cannot be DOS-style,
14856 # because $ac_f cannot contain `:'.
14857 test -f "$ac_f" ||
14858 case $ac_f in
14859 [\\/$]*) false;;
14860 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14861 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014862 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014863 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014864 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014865 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014866 done
14867
14868 # Let's still pretend it is `configure' which instantiates (i.e., don't
14869 # use $as_me), people would be surprised to read:
14870 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014871 configure_input='Generated from '`
14872 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14873 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014874 if test x"$ac_file" != x-; then
14875 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014876 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014877$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014878 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014879 # Neutralize special characters interpreted by sed in replacement strings.
14880 case $configure_input in #(
14881 *\&* | *\|* | *\\* )
14882 ac_sed_conf_input=`$as_echo "$configure_input" |
14883 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14884 *) ac_sed_conf_input=$configure_input;;
14885 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014886
14887 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014888 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14889 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014890 esac
14891 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014892 esac
14893
Theodore Ts'oe1052142006-10-21 21:46:47 -040014894 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014895$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14896 X"$ac_file" : 'X\(//\)[^/]' \| \
14897 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040014898 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014899$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014900 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14901 s//\1/
14902 q
14903 }
14904 /^X\(\/\/\)[^/].*/{
14905 s//\1/
14906 q
14907 }
14908 /^X\(\/\/\)$/{
14909 s//\1/
14910 q
14911 }
14912 /^X\(\/\).*/{
14913 s//\1/
14914 q
14915 }
14916 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014917 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014918 ac_builddir=.
14919
Theodore Ts'oe1052142006-10-21 21:46:47 -040014920case "$ac_dir" in
14921.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14922*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014923 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014924 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014925 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014926 case $ac_top_builddir_sub in
14927 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14928 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14929 esac ;;
14930esac
14931ac_abs_top_builddir=$ac_pwd
14932ac_abs_builddir=$ac_pwd$ac_dir_suffix
14933# for backward compatibility:
14934ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014935
14936case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014937 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014938 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014939 ac_top_srcdir=$ac_top_builddir_sub
14940 ac_abs_top_srcdir=$ac_pwd ;;
14941 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014942 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014943 ac_top_srcdir=$srcdir
14944 ac_abs_top_srcdir=$srcdir ;;
14945 *) # Relative name.
14946 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14947 ac_top_srcdir=$ac_top_build_prefix$srcdir
14948 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014949esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014950ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014952
Theodore Ts'oe1052142006-10-21 21:46:47 -040014953 case $ac_mode in
14954 :F)
14955 #
14956 # CONFIG_FILE
14957 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014958
14959 case $INSTALL in
14960 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014961 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014962 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040014963 ac_MKDIR_P=$MKDIR_P
14964 case $MKDIR_P in
14965 [\\/$]* | ?:[\\/]* ) ;;
14966 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14967 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014968_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014969
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014970cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014971# If the template does not know about datarootdir, expand it.
14972# FIXME: This hack should be removed a few years after 2.60.
14973ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014974ac_sed_dataroot='
14975/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014976 p
14977 q
14978}
14979/@datadir@/p
14980/@docdir@/p
14981/@infodir@/p
14982/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014983/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014984case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014985*datarootdir*) ac_datarootdir_seen=yes;;
14986*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014987 { $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 +010014988$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014989_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014991 ac_datarootdir_hack='
14992 s&@datadir@&$datadir&g
14993 s&@docdir@&$docdir&g
14994 s&@infodir@&$infodir&g
14995 s&@localedir@&$localedir&g
14996 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014997 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014998esac
14999_ACEOF
15000
15001# Neutralize VPATH when `$srcdir' = `.'.
15002# Shell code in configure.ac might set extrasub.
15003# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015004cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15005ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015006$extrasub
15007_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015008cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015009:t
15010/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015011s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015012s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015013s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015014s&@srcdir@&$ac_srcdir&;t t
15015s&@abs_srcdir@&$ac_abs_srcdir&;t t
15016s&@top_srcdir@&$ac_top_srcdir&;t t
15017s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15018s&@builddir@&$ac_builddir&;t t
15019s&@abs_builddir@&$ac_abs_builddir&;t t
15020s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15021s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040015022s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015023$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015024"
15025eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15026if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015027 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015028else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015029 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15030fi \
15031 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015032
Theodore Ts'oe1052142006-10-21 21:46:47 -040015033test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015034 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15035 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15036 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015038which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015039$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015040which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015041
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015042 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015043 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015044 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15045 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015046 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015047 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015048 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015049 :H)
15050 #
15051 # CONFIG_HEADER
15052 #
15053 if test x"$ac_file" != x-; then
15054 {
15055 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015056 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15057 } >"$ac_tmp/config.h" \
15058 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15059 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015060 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15061$as_echo "$as_me: $ac_file is unchanged" >&6;}
15062 else
15063 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015064 mv "$ac_tmp/config.h" "$ac_file" \
15065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015066 fi
15067 else
15068 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015069 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15070 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015071 fi
15072 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015073
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015074 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015075$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015076 ;;
15077 esac
15078
15079
15080 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015081 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015082 for ac_file in $CONFIG_FILES; do
15083 # Support "outfile[:infile[:infile...]]"
15084 case "$ac_file" in
15085 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015086 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015087 # PO directories have a Makefile.in generated from Makefile.in.in.
15088 case "$ac_file" in */Makefile.in)
15089 # Adjust a relative srcdir.
15090 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015091 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015092 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15093 # In autoconf-2.13 it is called $ac_given_srcdir.
15094 # In autoconf-2.50 it is called $srcdir.
15095 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15096 case "$ac_given_srcdir" in
15097 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15098 /*) top_srcdir="$ac_given_srcdir" ;;
15099 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15100 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015101 # Treat a directory as a PO directory if and only if it has a
15102 # POTFILES.in file. This allows packages to have multiple PO
15103 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015104 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15105 rm -f "$ac_dir/POTFILES"
15106 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015107 gt_tab=`printf '\t'`
15108 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 -050015109 POMAKEFILEDEPS="POTFILES.in"
15110 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015111 # on $ac_dir but don't depend on user-specified configuration
15112 # parameters.
15113 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15114 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015115 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015116 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15117 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015118 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15119 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015120 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015121 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15122 else
15123 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015124 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015125 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015126 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015127 # Compute POFILES
15128 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15129 # Compute UPDATEPOFILES
15130 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15131 # Compute DUMMYPOFILES
15132 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15133 # Compute GMOFILES
15134 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015135 case "$ac_given_srcdir" in
15136 .) srcdirpre= ;;
15137 *) srcdirpre='$(srcdir)/' ;;
15138 esac
15139 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015140 UPDATEPOFILES=
15141 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015142 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015143 for lang in $ALL_LINGUAS; do
15144 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015145 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15146 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015147 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015148 done
15149 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15150 # environment variable.
15151 INST_LINGUAS=
15152 if test -n "$ALL_LINGUAS"; then
15153 for presentlang in $ALL_LINGUAS; do
15154 useit=no
15155 if test "%UNSET%" != "$LINGUAS"; then
15156 desiredlanguages="$LINGUAS"
15157 else
15158 desiredlanguages="$ALL_LINGUAS"
15159 fi
15160 for desiredlang in $desiredlanguages; do
15161 # Use the presentlang catalog if desiredlang is
15162 # a. equal to presentlang, or
15163 # b. a variant of presentlang (because in this case,
15164 # presentlang can be used as a fallback for messages
15165 # which are not translated in the desiredlang catalog).
15166 case "$desiredlang" in
15167 "$presentlang"*) useit=yes;;
15168 esac
15169 done
15170 if test $useit = yes; then
15171 INST_LINGUAS="$INST_LINGUAS $presentlang"
15172 fi
15173 done
15174 fi
15175 CATALOGS=
15176 if test -n "$INST_LINGUAS"; then
15177 for lang in $INST_LINGUAS; do
15178 CATALOGS="$CATALOGS $lang.gmo"
15179 done
15180 fi
15181 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015182 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 -040015183 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15184 if test -f "$f"; then
15185 case "$f" in
15186 *.orig | *.bak | *~) ;;
15187 *) cat "$f" >> "$ac_dir/Makefile" ;;
15188 esac
15189 fi
15190 done
15191 fi
15192 ;;
15193 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015194 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015195
Theodore Ts'oe1052142006-10-21 21:46:47 -040015196 esac
15197done # for ac_tag
15198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015199
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015200as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015201_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015202ac_clean_files=$ac_clean_files_save
15203
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015204test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015205 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015206
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015207
15208# configure is writing to config.log, and then calls config.status.
15209# config.status does its own redirection, appending to config.log.
15210# Unfortunately, on DOS this fails, as config.log is still kept open
15211# by configure, so config.status won't be able to write to it; its
15212# output is simply discarded. So we exec the FD to /dev/null,
15213# effectively closing config.log, so it can be properly (re)opened and
15214# appended to by config.status. When coming back to configure, we
15215# need to make the FD available again.
15216if test "$no_create" != yes; then
15217 ac_cs_success=:
15218 ac_config_status_args=
15219 test "$silent" = yes &&
15220 ac_config_status_args="$ac_config_status_args --quiet"
15221 exec 5>/dev/null
15222 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15223 exec 5>>config.log
15224 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15225 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015226 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015227fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015228if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015230$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15231fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015232
Theodore Ts'oee683a12005-02-05 15:53:56 -050015233if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi