blob: b9ce7b9f0eed50039c80927e8cb77b6f1c0930a4 [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'od1154eb2011-09-18 17:34:37 -0400633INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100634DO_TEST_SUITE
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400635LDFLAGS_STATIC
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100636root_sysconfdir
637root_libdir
638root_sbindir
639root_bindir
640root_prefix
641UNIX_CMT
642CYGWIN_CMT
643LINUX_CMT
644UNI_DIFF_OPTS
645SEM_INIT_LIB
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700646FUSE_CMT
647FUSE_LIB
Theodore Ts'oc94da042016-06-21 23:16:39 -0400648CLOCK_GETTIME_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700649MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100650SOCKET_LIB
Theodore Ts'o2dd680f2016-05-29 01:07:40 -0400651SIZEOF_TIME_T
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400652SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100653SIZEOF_LONG_LONG
654SIZEOF_LONG
655SIZEOF_INT
656SIZEOF_SHORT
Matthias Andreeec3a69b2017-08-29 01:02:36 -0400657DD
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100658BUILD_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
Theodore Ts'o749f0712016-05-29 20:48:54 -0400733TDB_MAN_COMMENT
734TDB_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100735UUIDD_CMT
736E2INITRD_MAN
737E2INITRD_PROG
738FSCK_MAN
739FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500740DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100741RESIZER_CMT
742IMAGER_CMT
743DEBUGFS_CMT
Theodore Ts'o0afb9be2018-08-18 11:19:25 -0400744ALL_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100745BLKID_CMT
746DEPPROFILED_LIBBLKID
747PROFILED_LIBBLKID
748DEPSTATIC_LIBBLKID
749STATIC_LIBBLKID
750DEPLIBBLKID
751LIBBLKID
752UUID_CMT
753DEPPROFILED_LIBUUID
754PROFILED_LIBUUID
755DEPSTATIC_LIBUUID
756STATIC_LIBUUID
757DEPLIBUUID
758LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400759PKG_CONFIG_LIBDIR
760PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100761PKG_CONFIG
762TEST_IO_CMT
763PRIVATE_LIBS_CMT
764LDFLAG_DYNAMIC
765PROFILED_LIB_EXT
766STATIC_LIB_EXT
767LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100768PROFILE_CMT
769BSDLIB_CMT
770ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400771Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400772ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400773E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400774LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400775SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400776LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100777MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400778EGREP
779GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100780CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400781RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500782DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100783OBJEXT
784EXEEXT
785ac_ct_CC
786CPPFLAGS
787LDFLAGS
788CFLAGS
789CC
790host_os
791host_vendor
792host_cpu
793host
794build_os
795build_vendor
796build_cpu
797build
798E2FSPROGS_PKGVER
799E2FSPROGS_VERSION
800E2FSPROGS_DAY
801E2FSPROGS_MONTH
802E2FSPROGS_YEAR
803target_alias
804host_alias
805build_alias
806LIBS
807ECHO_T
808ECHO_N
809ECHO_C
810DEFS
811mandir
812localedir
813libdir
814psdir
815pdfdir
816dvidir
817htmldir
818infodir
819docdir
820oldincludedir
821includedir
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400822runstatedir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100823localstatedir
824sharedstatedir
825sysconfdir
826datadir
827datarootdir
828libexecdir
829sbindir
830bindir
831program_transform_name
832prefix
833exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500834PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100835PACKAGE_BUGREPORT
836PACKAGE_STRING
837PACKAGE_VERSION
838PACKAGE_TARNAME
839PACKAGE_NAME
840PATH_SEPARATOR
841SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_subst_files='MCONFIG
843MAKEFILE_ELF
844MAKEFILE_BSDLIB
845MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400846MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400847ASM_TYPES_HEADER
848PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100849ac_user_opts='
850enable_option_checking
851with_diet_libc
852with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100853with_ccopts
854with_ldopts
855with_root_prefix
856enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400857enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400858enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400859enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400860enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400861enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100862enable_elf_shlibs
863enable_bsd_shlibs
864enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500865enable_gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400866enable_hardening
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100867enable_jbd_debug
868enable_blkid_debug
869enable_testio_debug
870enable_libuuid
871enable_libblkid
Theodore Ts'o0afb9be2018-08-18 11:19:25 -0400872enable_subset
Theodore Ts'o3df60142013-06-16 16:14:40 -0400873enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100874enable_debugfs
875enable_imager
876enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500877enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100878enable_fsck
879enable_e2initrd_helper
880enable_tls
881enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000882enable_mmp
Theodore Ts'o749f0712016-05-29 20:48:54 -0400883enable_tdb
Tony Breeds1625bf42012-07-30 14:44:12 -0400884enable_bmap_stats
885enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100886enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400887enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100888with_gnu_ld
889enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400890with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100891with_libiconv_prefix
892with_included_gettext
893with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700894enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400895with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100896'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400897 ac_precious_vars='build_alias
898host_alias
899target_alias
900CC
901CFLAGS
902LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400903LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400904CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400905CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400906PKG_CONFIG
907PKG_CONFIG_PATH
908PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400909
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910
911# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500912ac_init_help=
913ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100914ac_unrecognized_opts=
915ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916# The variables have the same names as the options, with
917# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500918cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921no_recursion=
922prefix=NONE
923program_prefix=NONE
924program_suffix=NONE
925program_transform_name=s,x,x,
926silent=
927site=
928srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000929verbose=
930x_includes=NONE
931x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500932
933# Installation directory options.
934# These are left unexpanded so users can "make install exec_prefix=/foo"
935# and all the variables that are supposed to be based on exec_prefix
936# by default will actually change.
937# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400938# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000939bindir='${exec_prefix}/bin'
940sbindir='${exec_prefix}/sbin'
941libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400942datarootdir='${prefix}/share'
943datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000944sysconfdir='${prefix}/etc'
945sharedstatedir='${prefix}/com'
946localstatedir='${prefix}/var'
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400947runstatedir='${localstatedir}/run'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000948includedir='${prefix}/include'
949oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400950docdir='${datarootdir}/doc/${PACKAGE}'
951infodir='${datarootdir}/info'
952htmldir='${docdir}'
953dvidir='${docdir}'
954pdfdir='${docdir}'
955psdir='${docdir}'
956libdir='${exec_prefix}/lib'
957localedir='${datarootdir}/locale'
958mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000960ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400961ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000962for ac_option
963do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000967 ac_prev=
968 continue
969 fi
970
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400975 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
Theodore Ts'oe1052142006-10-21 21:46:47 -0400979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000982
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000987
988 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500991 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001002
Theodore Ts'oe1052142006-10-21 21:46:47 -04001003 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001004 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001006 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007
Theodore Ts'oe1052142006-10-21 21:46:47 -04001008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001015 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001017 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001019 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001030
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1035
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040
1041 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001043 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001045 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050"enable_$ac_useropt"
1051"*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076
1077 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001081
Theodore Ts'oe1052142006-10-21 21:46:47 -04001082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001093 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001110 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001111
Theodore Ts'oe1052142006-10-21 21:46:47 -04001112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001117 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001127 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001128
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001134 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001148 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001149
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001160 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001167 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001184 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185
Theodore Ts'oe1052142006-10-21 21:46:47 -04001186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001200 -runstatedir | --runstatedir | --runstatedi | --runstated \
1201 | --runstate | --runstat | --runsta | --runst | --runs \
1202 | --run | --ru | --r)
1203 ac_prev=runstatedir ;;
1204 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1205 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1206 | --run=* | --ru=* | --r=*)
1207 runstatedir=$ac_optarg ;;
1208
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001213 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001214
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001224 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001225
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001230
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001234 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001235
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001241 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001242
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001243 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001244 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001246 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001247
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253
1254 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001258 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263"with_$ac_useropt"
1264"*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001269
1270 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001272 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001274 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1278 *"
1279"with_$ac_useropt"
1280"*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001295 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001302 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001303
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001304 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001306 ;;
1307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001314 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001315 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001316 export $ac_envvar ;;
1317
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001318 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001319 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001324 ;;
1325
1326 esac
1327done
1328
1329if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001331 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001332fi
1333
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001334if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1336 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1340fi
1341
1342# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001346 libdir localedir mandir runstatedir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001347do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001348 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001356 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001359 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001384
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001388 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001390 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001391
1392
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001396 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001420 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001421 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001430fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001434 pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459\`configure' configures this package to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001473 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001481 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001483 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001499 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001513_ACEOF
1514
1515 cat <<\_ACEOF
1516
1517System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520_ACEOF
1521fi
1522
1523if test -n "$ac_init_help"; then
1524
1525 cat <<\_ACEOF
1526
1527Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001528 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001531 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001532 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001533 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001534
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001535 --enable-symlink-build use symlinks while building instead of hard links
1536 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 --enable-elf-shlibs select ELF shared libraries
1538 --enable-bsd-shlibs select BSD shared libraries
1539 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001540 --enable-gcov build for coverage testing using gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04001541 --enable-hardening build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542 --enable-jbd-debug enable journal debugging
1543 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001544 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001545 --enable-libuuid build and use private uuid library
1546 --enable-libblkid build and use private blkid library
Theodore Ts'o0afb9be2018-08-18 11:19:25 -04001547 --enable-subset enable subset-only build
Theodore Ts'o3df60142013-06-16 16:14:40 -04001548 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001549 --disable-debugfs disable support of debugfs program
1550 --disable-imager disable support of e2image program
1551 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001552 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553 --enable-fsck build fsck wrapper program
1554 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001555 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001556 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001557 --disable-mmp disable support mmp, Multi Mount Protection
Theodore Ts'o749f0712016-05-29 20:48:54 -04001558 --disable-tdb disable tdb support
Tony Breeds1625bf42012-07-30 14:44:12 -04001559 --disable-bmap-stats disable collection of bitmap stats.
1560 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001561 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001562 --enable-threads={posix|solaris|pth|windows}
1563 specify multithreading API
1564 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001565 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001566 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001567
1568Optional Packages:
1569 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1570 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001571 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001572 --with-cc no longer supported, use CC= instead
1573 --with-ccopts no longer supported, use CFLAGS= instead
1574 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001575 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001576 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1577 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1578 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001579 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1580 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1581 --with-included-gettext use the GNU gettext library included here
1582 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1583 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001584 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001585
1586Some influential environment variables:
1587 CC C compiler command
1588 CFLAGS C compiler flags
1589 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1590 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001591 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001592 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001593 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001594 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001595 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001596 PKG_CONFIG_PATH
1597 directories to add to pkg-config's search path
1598 PKG_CONFIG_LIBDIR
1599 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001600
1601Use these variables to override the choices made by `configure' or to help
1602it to find libraries and programs with nonstandard names/locations.
1603
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001604Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001605_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001606ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001607fi
1608
1609if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001612 test -d "$ac_dir" ||
1613 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1614 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001615 ac_builddir=.
1616
Theodore Ts'oe1052142006-10-21 21:46:47 -04001617case "$ac_dir" in
1618.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1619*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001620 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001621 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001622 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001623 case $ac_top_builddir_sub in
1624 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1625 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1626 esac ;;
1627esac
1628ac_abs_top_builddir=$ac_pwd
1629ac_abs_builddir=$ac_pwd$ac_dir_suffix
1630# for backward compatibility:
1631ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632
1633case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001635 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001636 ac_top_srcdir=$ac_top_builddir_sub
1637 ac_abs_top_srcdir=$ac_pwd ;;
1638 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001639 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001640 ac_top_srcdir=$srcdir
1641 ac_abs_top_srcdir=$srcdir ;;
1642 *) # Relative name.
1643 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1644 ac_top_srcdir=$ac_top_build_prefix$srcdir
1645 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001646esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001648
Theodore Ts'oe1052142006-10-21 21:46:47 -04001649 cd "$ac_dir" || { ac_status=$?; continue; }
1650 # Check for guested configure.
1651 if test -f "$ac_srcdir/configure.gnu"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1654 elif test -f "$ac_srcdir/configure"; then
1655 echo &&
1656 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001657 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001658 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001659 fi || ac_status=$?
1660 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001661 done
1662fi
1663
Theodore Ts'oe1052142006-10-21 21:46:47 -04001664test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001665if $ac_init_version; then
1666 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001667configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001668generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001669
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001670Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001671This configure script is free software; the Free Software Foundation
1672gives unlimited permission to copy, distribute and modify it.
1673_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001674 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001675fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001676
1677## ------------------------ ##
1678## Autoconf initialization. ##
1679## ------------------------ ##
1680
1681# ac_fn_c_try_compile LINENO
1682# --------------------------
1683# Try to compile conftest.$ac_ext, and return whether this succeeded.
1684ac_fn_c_try_compile ()
1685{
1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1687 rm -f conftest.$ac_objext
1688 if { { ac_try="$ac_compile"
1689case "(($ac_try" in
1690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1691 *) ac_try_echo=$ac_try;;
1692esac
1693eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1694$as_echo "$ac_try_echo"; } >&5
1695 (eval "$ac_compile") 2>conftest.err
1696 ac_status=$?
1697 if test -s conftest.err; then
1698 grep -v '^ *+' conftest.err >conftest.er1
1699 cat conftest.er1 >&5
1700 mv -f conftest.er1 conftest.err
1701 fi
1702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1703 test $ac_status = 0; } && {
1704 test -z "$ac_c_werror_flag" ||
1705 test ! -s conftest.err
1706 } && test -s conftest.$ac_objext; then :
1707 ac_retval=0
1708else
1709 $as_echo "$as_me: failed program was:" >&5
1710sed 's/^/| /' conftest.$ac_ext >&5
1711
1712 ac_retval=1
1713fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001715 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001716
1717} # ac_fn_c_try_compile
1718
1719# ac_fn_c_try_link LINENO
1720# -----------------------
1721# Try to link conftest.$ac_ext, and return whether this succeeded.
1722ac_fn_c_try_link ()
1723{
1724 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1725 rm -f conftest.$ac_objext conftest$ac_exeext
1726 if { { ac_try="$ac_link"
1727case "(($ac_try" in
1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1729 *) ac_try_echo=$ac_try;;
1730esac
1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1732$as_echo "$ac_try_echo"; } >&5
1733 (eval "$ac_link") 2>conftest.err
1734 ac_status=$?
1735 if test -s conftest.err; then
1736 grep -v '^ *+' conftest.err >conftest.er1
1737 cat conftest.er1 >&5
1738 mv -f conftest.er1 conftest.err
1739 fi
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741 test $ac_status = 0; } && {
1742 test -z "$ac_c_werror_flag" ||
1743 test ! -s conftest.err
1744 } && test -s conftest$ac_exeext && {
1745 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001746 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001747 }; then :
1748 ac_retval=0
1749else
1750 $as_echo "$as_me: failed program was:" >&5
1751sed 's/^/| /' conftest.$ac_ext >&5
1752
1753 ac_retval=1
1754fi
1755 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1756 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1757 # interfere with the next link command; also delete a directory that is
1758 # left behind by Apple's compiler. We do this before executing the actions.
1759 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001760 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001761 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001762
1763} # ac_fn_c_try_link
1764
1765# ac_fn_c_try_cpp LINENO
1766# ----------------------
1767# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1768ac_fn_c_try_cpp ()
1769{
1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771 if { { ac_try="$ac_cpp conftest.$ac_ext"
1772case "(($ac_try" in
1773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1774 *) ac_try_echo=$ac_try;;
1775esac
1776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1777$as_echo "$ac_try_echo"; } >&5
1778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1779 ac_status=$?
1780 if test -s conftest.err; then
1781 grep -v '^ *+' conftest.err >conftest.er1
1782 cat conftest.er1 >&5
1783 mv -f conftest.er1 conftest.err
1784 fi
1785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001786 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1788 test ! -s conftest.err
1789 }; then :
1790 ac_retval=0
1791else
1792 $as_echo "$as_me: failed program was:" >&5
1793sed 's/^/| /' conftest.$ac_ext >&5
1794
1795 ac_retval=1
1796fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001798 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001799
1800} # ac_fn_c_try_cpp
1801
1802# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1803# -------------------------------------------------------
1804# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1805# the include files in INCLUDES and setting the cache variable VAR
1806# accordingly.
1807ac_fn_c_check_header_mongrel ()
1808{
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001810 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1812$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001813if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001814 $as_echo_n "(cached) " >&6
1815fi
1816eval ac_res=\$$3
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1818$as_echo "$ac_res" >&6; }
1819else
1820 # Is the header compilable?
1821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1822$as_echo_n "checking $2 usability... " >&6; }
1823cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824/* end confdefs.h. */
1825$4
1826#include <$2>
1827_ACEOF
1828if ac_fn_c_try_compile "$LINENO"; then :
1829 ac_header_compiler=yes
1830else
1831 ac_header_compiler=no
1832fi
1833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1835$as_echo "$ac_header_compiler" >&6; }
1836
1837# Is the header present?
1838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1839$as_echo_n "checking $2 presence... " >&6; }
1840cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1841/* end confdefs.h. */
1842#include <$2>
1843_ACEOF
1844if ac_fn_c_try_cpp "$LINENO"; then :
1845 ac_header_preproc=yes
1846else
1847 ac_header_preproc=no
1848fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001849rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1851$as_echo "$ac_header_preproc" >&6; }
1852
1853# So? What about this header?
1854case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1855 yes:no: )
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1857$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1859$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1860 ;;
1861 no:yes:* )
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1863$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1865$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1867$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1869$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 ;;
1873esac
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001876if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001877 $as_echo_n "(cached) " >&6
1878else
1879 eval "$3=\$ac_header_compiler"
1880fi
1881eval ac_res=\$$3
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1883$as_echo "$ac_res" >&6; }
1884fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001885 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001886
1887} # ac_fn_c_check_header_mongrel
1888
Theodore Ts'o93613952014-07-03 23:44:13 -04001889# ac_fn_c_try_run LINENO
1890# ----------------------
1891# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1892# that executables *can* be run.
1893ac_fn_c_try_run ()
1894{
1895 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1896 if { { ac_try="$ac_link"
1897case "(($ac_try" in
1898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1900esac
1901eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902$as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>&5
1904 ac_status=$?
1905 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1906 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1907 { { case "(($ac_try" in
1908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1909 *) ac_try_echo=$ac_try;;
1910esac
1911eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912$as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_try") 2>&5
1914 ac_status=$?
1915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1916 test $ac_status = 0; }; }; then :
1917 ac_retval=0
1918else
1919 $as_echo "$as_me: program exited with status $ac_status" >&5
1920 $as_echo "$as_me: failed program was:" >&5
1921sed 's/^/| /' conftest.$ac_ext >&5
1922
1923 ac_retval=$ac_status
1924fi
1925 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929} # ac_fn_c_try_run
1930
1931# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1932# -------------------------------------------------------
1933# Tests whether HEADER exists and can be compiled using the include files in
1934# INCLUDES, setting the cache variable VAR accordingly.
1935ac_fn_c_check_header_compile ()
1936{
1937 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
1940if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942else
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945$4
1946#include <$2>
1947_ACEOF
1948if ac_fn_c_try_compile "$LINENO"; then :
1949 eval "$3=yes"
1950else
1951 eval "$3=no"
1952fi
1953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1954fi
1955eval ac_res=\$$3
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957$as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959
1960} # ac_fn_c_check_header_compile
1961
1962# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1963# -------------------------------------------
1964# Tests whether TYPE exists after having included INCLUDES, setting cache
1965# variable VAR accordingly.
1966ac_fn_c_check_type ()
1967{
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1970$as_echo_n "checking for $2... " >&6; }
1971if eval \${$3+:} false; then :
1972 $as_echo_n "(cached) " >&6
1973else
1974 eval "$3=no"
1975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1976/* end confdefs.h. */
1977$4
1978int
1979main ()
1980{
1981if (sizeof ($2))
1982 return 0;
1983 ;
1984 return 0;
1985}
1986_ACEOF
1987if ac_fn_c_try_compile "$LINENO"; then :
1988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1989/* end confdefs.h. */
1990$4
1991int
1992main ()
1993{
1994if (sizeof (($2)))
1995 return 0;
1996 ;
1997 return 0;
1998}
1999_ACEOF
2000if ac_fn_c_try_compile "$LINENO"; then :
2001
2002else
2003 eval "$3=yes"
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008fi
2009eval ac_res=\$$3
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011$as_echo "$ac_res" >&6; }
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013
2014} # ac_fn_c_check_type
2015
2016# ac_fn_c_check_func LINENO FUNC VAR
2017# ----------------------------------
2018# Tests whether FUNC exists, setting the cache variable VAR accordingly
2019ac_fn_c_check_func ()
2020{
2021 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2023$as_echo_n "checking for $2... " >&6; }
2024if eval \${$3+:} false; then :
2025 $as_echo_n "(cached) " >&6
2026else
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2030 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2031#define $2 innocuous_$2
2032
2033/* System header to define __stub macros and hopefully few prototypes,
2034 which can conflict with char $2 (); below.
2035 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2036 <limits.h> exists even on freestanding compilers. */
2037
2038#ifdef __STDC__
2039# include <limits.h>
2040#else
2041# include <assert.h>
2042#endif
2043
2044#undef $2
2045
2046/* Override any GCC internal prototype to avoid an error.
2047 Use char because int might match the return type of a GCC
2048 builtin and then its argument prototype would still apply. */
2049#ifdef __cplusplus
2050extern "C"
2051#endif
2052char $2 ();
2053/* The GNU C library defines this for functions which it implements
2054 to always fail with ENOSYS. Some functions are actually named
2055 something starting with __ and the normal name is an alias. */
2056#if defined __stub_$2 || defined __stub___$2
2057choke me
2058#endif
2059
2060int
2061main ()
2062{
2063return $2 ();
2064 ;
2065 return 0;
2066}
2067_ACEOF
2068if ac_fn_c_try_link "$LINENO"; then :
2069 eval "$3=yes"
2070else
2071 eval "$3=no"
2072fi
2073rm -f core conftest.err conftest.$ac_objext \
2074 conftest$ac_exeext conftest.$ac_ext
2075fi
2076eval ac_res=\$$3
2077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2078$as_echo "$ac_res" >&6; }
2079 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2080
2081} # ac_fn_c_check_func
2082
2083# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2084# ---------------------------------------------
2085# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2086# accordingly.
2087ac_fn_c_check_decl ()
2088{
2089 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2090 as_decl_name=`echo $2|sed 's/ *(.*//'`
2091 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2093$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2094if eval \${$3+:} false; then :
2095 $as_echo_n "(cached) " >&6
2096else
2097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h. */
2099$4
2100int
2101main ()
2102{
2103#ifndef $as_decl_name
2104#ifdef __cplusplus
2105 (void) $as_decl_use;
2106#else
2107 (void) $as_decl_name;
2108#endif
2109#endif
2110
2111 ;
2112 return 0;
2113}
2114_ACEOF
2115if ac_fn_c_try_compile "$LINENO"; then :
2116 eval "$3=yes"
2117else
2118 eval "$3=no"
2119fi
2120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121fi
2122eval ac_res=\$$3
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2124$as_echo "$ac_res" >&6; }
2125 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126
2127} # ac_fn_c_check_decl
2128
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002129# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2130# --------------------------------------------
2131# Tries to find the compile-time value of EXPR in a program that includes
2132# INCLUDES, setting VAR accordingly. Returns whether the value could be
2133# computed
2134ac_fn_c_compute_int ()
2135{
2136 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2137 if test "$cross_compiling" = yes; then
2138 # Depending upon the size, compute the lo and hi bounds.
2139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2140/* end confdefs.h. */
2141$4
2142int
2143main ()
2144{
2145static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002146test_array [0] = 0;
2147return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002148
2149 ;
2150 return 0;
2151}
2152_ACEOF
2153if ac_fn_c_try_compile "$LINENO"; then :
2154 ac_lo=0 ac_mid=0
2155 while :; do
2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2157/* end confdefs.h. */
2158$4
2159int
2160main ()
2161{
2162static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002163test_array [0] = 0;
2164return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002165
2166 ;
2167 return 0;
2168}
2169_ACEOF
2170if ac_fn_c_try_compile "$LINENO"; then :
2171 ac_hi=$ac_mid; break
2172else
2173 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2174 if test $ac_lo -le $ac_mid; then
2175 ac_lo= ac_hi=
2176 break
2177 fi
2178 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2179fi
2180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2181 done
2182else
2183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2184/* end confdefs.h. */
2185$4
2186int
2187main ()
2188{
2189static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002190test_array [0] = 0;
2191return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197if ac_fn_c_try_compile "$LINENO"; then :
2198 ac_hi=-1 ac_mid=-1
2199 while :; do
2200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2201/* end confdefs.h. */
2202$4
2203int
2204main ()
2205{
2206static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002207test_array [0] = 0;
2208return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002209
2210 ;
2211 return 0;
2212}
2213_ACEOF
2214if ac_fn_c_try_compile "$LINENO"; then :
2215 ac_lo=$ac_mid; break
2216else
2217 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2218 if test $ac_mid -le $ac_hi; then
2219 ac_lo= ac_hi=
2220 break
2221 fi
2222 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 done
2226else
2227 ac_lo= ac_hi=
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230fi
2231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232# Binary search between lo and hi bounds.
2233while test "x$ac_lo" != "x$ac_hi"; do
2234 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237$4
2238int
2239main ()
2240{
2241static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002242test_array [0] = 0;
2243return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002244
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_hi=$ac_mid
2251else
2252 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2253fi
2254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2255done
2256case $ac_lo in #((
2257?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2258'') ac_retval=1 ;;
2259esac
2260 else
2261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2262/* end confdefs.h. */
2263$4
2264static long int longval () { return $2; }
2265static unsigned long int ulongval () { return $2; }
2266#include <stdio.h>
2267#include <stdlib.h>
2268int
2269main ()
2270{
2271
2272 FILE *f = fopen ("conftest.val", "w");
2273 if (! f)
2274 return 1;
2275 if (($2) < 0)
2276 {
2277 long int i = longval ();
2278 if (i != ($2))
2279 return 1;
2280 fprintf (f, "%ld", i);
2281 }
2282 else
2283 {
2284 unsigned long int i = ulongval ();
2285 if (i != ($2))
2286 return 1;
2287 fprintf (f, "%lu", i);
2288 }
2289 /* Do not output a trailing newline, as this causes \r\n confusion
2290 on some platforms. */
2291 return ferror (f) || fclose (f) != 0;
2292
2293 ;
2294 return 0;
2295}
2296_ACEOF
2297if ac_fn_c_try_run "$LINENO"; then :
2298 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2299else
2300 ac_retval=1
2301fi
2302rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2303 conftest.$ac_objext conftest.beam conftest.$ac_ext
2304rm -f conftest.val
2305
2306 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002308 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002309
2310} # ac_fn_c_compute_int
2311
2312# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2313# ----------------------------------------------------
2314# Tries to find if the field MEMBER exists in type AGGR, after including
2315# INCLUDES, setting cache variable VAR accordingly.
2316ac_fn_c_check_member ()
2317{
2318 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2320$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002321if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002322 $as_echo_n "(cached) " >&6
2323else
2324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2325/* end confdefs.h. */
2326$5
2327int
2328main ()
2329{
2330static $2 ac_aggr;
2331if (ac_aggr.$3)
2332return 0;
2333 ;
2334 return 0;
2335}
2336_ACEOF
2337if ac_fn_c_try_compile "$LINENO"; then :
2338 eval "$4=yes"
2339else
2340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2341/* end confdefs.h. */
2342$5
2343int
2344main ()
2345{
2346static $2 ac_aggr;
2347if (sizeof ac_aggr.$3)
2348return 0;
2349 ;
2350 return 0;
2351}
2352_ACEOF
2353if ac_fn_c_try_compile "$LINENO"; then :
2354 eval "$4=yes"
2355else
2356 eval "$4=no"
2357fi
2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359fi
2360rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2361fi
2362eval ac_res=\$$4
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2364$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002365 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002366
2367} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002368cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002369This file contains any messages produced by compilers while
2370running configure, to aid debugging if configure makes a mistake.
2371
2372It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002373generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002374
2375 $ $0 $@
2376
2377_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002378exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002379{
2380cat <<_ASUNAME
2381## --------- ##
2382## Platform. ##
2383## --------- ##
2384
2385hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2386uname -m = `(uname -m) 2>/dev/null || echo unknown`
2387uname -r = `(uname -r) 2>/dev/null || echo unknown`
2388uname -s = `(uname -s) 2>/dev/null || echo unknown`
2389uname -v = `(uname -v) 2>/dev/null || echo unknown`
2390
2391/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2392/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2393
2394/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2395/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2396/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002397/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002398/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2399/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2400/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2401
2402_ASUNAME
2403
2404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405for as_dir in $PATH
2406do
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002409 $as_echo "PATH: $as_dir"
2410 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002411IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002412
2413} >&5
2414
2415cat >&5 <<_ACEOF
2416
2417
2418## ----------- ##
2419## Core tests. ##
2420## ----------- ##
2421
2422_ACEOF
2423
2424
2425# Keep a trace of the command line.
2426# Strip out --no-create and --no-recursion so they do not pile up.
2427# Strip out --silent because we don't want to record it for future runs.
2428# Also quote any args containing shell meta-characters.
2429# Make two passes to allow for proper duplicate-argument suppression.
2430ac_configure_args=
2431ac_configure_args0=
2432ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002433ac_must_keep_next=false
2434for ac_pass in 1 2
2435do
2436 for ac_arg
2437 do
2438 case $ac_arg in
2439 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2440 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2441 | -silent | --silent | --silen | --sile | --sil)
2442 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002443 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002444 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002445 esac
2446 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002447 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002448 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002449 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002450 if test $ac_must_keep_next = true; then
2451 ac_must_keep_next=false # Got value, back to normal.
2452 else
2453 case $ac_arg in
2454 *=* | --config-cache | -C | -disable-* | --disable-* \
2455 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2456 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2457 | -with-* | --with-* | -without-* | --without-* | --x)
2458 case "$ac_configure_args0 " in
2459 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2460 esac
2461 ;;
2462 -* ) ac_must_keep_next=true ;;
2463 esac
2464 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002465 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002466 ;;
2467 esac
2468 done
2469done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002470{ ac_configure_args0=; unset ac_configure_args0;}
2471{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002472
2473# When interrupted or exit'd, cleanup temporary files, and complete
2474# config.log. We remove comments because anyway the quotes in there
2475# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002476# WARNING: Use '\'' to represent an apostrophe within the trap.
2477# 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 -05002478trap 'exit_status=$?
2479 # Save into config.log some information that might help in debugging.
2480 {
2481 echo
2482
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002483 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002484## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002485## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002486 echo
2487 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002488(
2489 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2490 eval ac_val=\$$ac_var
2491 case $ac_val in #(
2492 *${as_nl}*)
2493 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002494 *_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 +01002495$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002496 esac
2497 case $ac_var in #(
2498 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002499 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002500 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002501 esac ;;
2502 esac
2503 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2506 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002508 "s/'\''/'\''\\\\'\'''\''/g;
2509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2510 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002513 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002514 esac |
2515 sort
2516)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517 echo
2518
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002519 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002521## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002522 echo
2523 for ac_var in $ac_subst_vars
2524 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002525 eval ac_val=\$$ac_var
2526 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002527 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002528 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002529 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002530 done | sort
2531 echo
2532
2533 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002534 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002535## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002536## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537 echo
2538 for ac_var in $ac_subst_files
2539 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002540 eval ac_val=\$$ac_var
2541 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002542 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002543 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002544 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002545 done | sort
2546 echo
2547 fi
2548
2549 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002550 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002552## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002554 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002555 echo
2556 fi
2557 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002558 $as_echo "$as_me: caught signal $ac_signal"
2559 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002560 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002561 rm -f core *.core core.conftest.* &&
2562 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002564' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002566 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002567done
2568ac_signal=0
2569
2570# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002571rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002573$as_echo "/* confdefs.h */" > confdefs.h
2574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002575# Predefined preprocessor variables.
2576
2577cat >>confdefs.h <<_ACEOF
2578#define PACKAGE_NAME "$PACKAGE_NAME"
2579_ACEOF
2580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002581cat >>confdefs.h <<_ACEOF
2582#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2583_ACEOF
2584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_VERSION "$PACKAGE_VERSION"
2587_ACEOF
2588
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_STRING "$PACKAGE_STRING"
2591_ACEOF
2592
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2595_ACEOF
2596
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002597cat >>confdefs.h <<_ACEOF
2598#define PACKAGE_URL "$PACKAGE_URL"
2599_ACEOF
2600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002601
2602# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002603# Prefer an explicitly selected file to automatically selected ones.
2604ac_site_file1=NONE
2605ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002606if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002607 # We do not want a PATH search for config.site.
2608 case $CONFIG_SITE in #((
2609 -*) ac_site_file1=./$CONFIG_SITE;;
2610 */*) ac_site_file1=$CONFIG_SITE;;
2611 *) ac_site_file1=./$CONFIG_SITE;;
2612 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002613elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002614 ac_site_file1=$prefix/share/config.site
2615 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002616else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002617 ac_site_file1=$ac_default_prefix/share/config.site
2618 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002619fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002620for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002621do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002622 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002623 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002624 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002625$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002626 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002627 . "$ac_site_file" \
2628 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2630as_fn_error $? "failed to load site script $ac_site_file
2631See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002632 fi
2633done
2634
2635if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002636 # Some versions of bash will fail to source /dev/null (special files
2637 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2638 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002639 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002640$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002641 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002642 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2643 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002644 esac
2645 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002646else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002648$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002649 >$cache_file
2650fi
2651
Theodore Ts'o93613952014-07-03 23:44:13 -04002652gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002653as_fn_append ac_header_list " stdlib.h"
2654as_fn_append ac_header_list " unistd.h"
2655as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002656as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002657# Check that the precious variables saved in the cache have kept the same
2658# value.
2659ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002660for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2662 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002663 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2664 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002665 case $ac_old_set,$ac_new_set in
2666 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002667 { $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 +01002668$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 -05002669 ac_cache_corrupted=: ;;
2670 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002671 { $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 +01002672$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002673 ac_cache_corrupted=: ;;
2674 ,);;
2675 *)
2676 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002677 # differences in whitespace do not lead to failure.
2678 ac_old_val_w=`echo x $ac_old_val`
2679 ac_new_val_w=`echo x $ac_new_val`
2680 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002681 { $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 +01002682$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2683 ac_cache_corrupted=:
2684 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002685 { $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 +01002686$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2687 eval $ac_var=\$ac_old_val
2688 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002689 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002690$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002691 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002692$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002693 fi;;
2694 esac
2695 # Pass precious variables to config.status.
2696 if test "$ac_new_set" = set; then
2697 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002698 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002699 *) ac_arg=$ac_var=$ac_new_val ;;
2700 esac
2701 case " $ac_configure_args " in
2702 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002703 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002704 esac
2705 fi
2706done
2707if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002709$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002710 { $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 +01002711$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002712 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002713fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002714## -------------------- ##
2715## Main body of script. ##
2716## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002717
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002718ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002719ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002720ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2721ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2722ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002724
2725
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002726ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002727for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002728 if test -f "$ac_dir/install-sh"; then
2729 ac_aux_dir=$ac_dir
2730 ac_install_sh="$ac_aux_dir/install-sh -c"
2731 break
2732 elif test -f "$ac_dir/install.sh"; then
2733 ac_aux_dir=$ac_dir
2734 ac_install_sh="$ac_aux_dir/install.sh -c"
2735 break
2736 elif test -f "$ac_dir/shtool"; then
2737 ac_aux_dir=$ac_dir
2738 ac_install_sh="$ac_aux_dir/shtool install -c"
2739 break
2740 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002741done
2742if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002743 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 +00002744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002745
2746# These three variables are undocumented and unsupported,
2747# and are intended to be withdrawn in a future Autoconf release.
2748# They can cause serious problems if a builder's source tree is in a directory
2749# whose full name contains unusual characters.
2750ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2751ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2752ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2753
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002754
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002755ac_config_headers="$ac_config_headers lib/config.h"
2756
2757
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002758MCONFIG=./MCONFIG
2759
Theodore Ts'o74becf31997-04-26 14:37:06 +00002760BINARY_TYPE=bin
2761E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2762 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2763DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2764 | tr \" " "`
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002765E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
Theodore Ts'o74becf31997-04-26 14:37:06 +00002766MONTH=`echo $DATE | awk -F- '{print $2}'`
2767YEAR=`echo $DATE | awk -F- '{print $3}'`
2768
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002769if expr $YEAR ">" 1900 > /dev/null ; then
2770 E2FSPROGS_YEAR=$YEAR
2771elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002772 E2FSPROGS_YEAR=19$YEAR
2773else
2774 E2FSPROGS_YEAR=20$YEAR
2775fi
2776
2777case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002778Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2779Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2780Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2781Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2782May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2783Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2784Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2785Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2786Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2787Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2788Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2789Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002790*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002791$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002792esac
2793
Andreas Dilger927566a2006-11-12 19:41:25 -05002794base_ver=`echo $E2FSPROGS_VERSION | \
2795 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002796
2797date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2798
2799case $E2FSPROGS_VERSION in
2800*-WIP|pre-*)
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002801 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
Andreas Dilger927566a2006-11-12 19:41:25 -05002802 ;;
2803*)
2804 E2FSPROGS_PKGVER="$base_ver"
2805 ;;
2806esac
2807
2808unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002809{ $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 +01002810$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002812$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002813
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002814
2815
2816
Andreas Dilger927566a2006-11-12 19:41:25 -05002817
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002818WITH_DIET_LIBC=
2819
2820# Check whether --with-diet-libc was given.
2821if test "${with_diet_libc+set}" = set; then :
2822 withval=$with_diet_libc; CC="diet cc -nostdinc"
2823WITH_DIET_LIBC=yes
2824if test -z "$LIBS"
2825then
2826 LIBS="-lcompat"
2827else
2828 LIBS="$LIBS -lcompat"
2829fi
2830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2831$as_echo "CC=$CC" >&6; }
2832fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002833# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002834$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002835 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002836
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002838$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002839if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002840 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002841else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002842 ac_build_alias=$build_alias
2843test "x$ac_build_alias" = x &&
2844 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2845test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002846 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002847ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002848 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002849
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002850fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002852$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002853case $ac_cv_build in
2854*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002855*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002856esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002857build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002858ac_save_IFS=$IFS; IFS='-'
2859set x $ac_cv_build
2860shift
2861build_cpu=$1
2862build_vendor=$2
2863shift; shift
2864# Remember, the first character of IFS is used to create $*,
2865# except with old shells:
2866build_os=$*
2867IFS=$ac_save_IFS
2868case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002869
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002870
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002872$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002873if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002874 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002875else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002876 if test "x$host_alias" = x; then
2877 ac_cv_host=$ac_cv_build
2878else
2879 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002880 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002881fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002882
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002883fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002885$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002886case $ac_cv_host in
2887*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002888*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002889esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002890host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002891ac_save_IFS=$IFS; IFS='-'
2892set x $ac_cv_host
2893shift
2894host_cpu=$1
2895host_vendor=$2
2896shift; shift
2897# Remember, the first character of IFS is used to create $*,
2898# except with old shells:
2899host_os=$*
2900IFS=$ac_save_IFS
2901case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002902
2903
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002904DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002905ac_ext=c
2906ac_cpp='$CPP $CPPFLAGS'
2907ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2908ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2909ac_compiler_gnu=$ac_cv_c_compiler_gnu
2910if test -n "$ac_tool_prefix"; then
2911 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2912set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002914$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002915if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002916 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002917else
2918 if test -n "$CC"; then
2919 ac_cv_prog_CC="$CC" # Let the user override the test.
2920else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2922for as_dir in $PATH
2923do
2924 IFS=$as_save_IFS
2925 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002926 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002928 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002930 break 2
2931 fi
2932done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002933 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002934IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002936fi
2937fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002938CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002939if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002941$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002942else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002944$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002945fi
2946
Theodore Ts'oe1052142006-10-21 21:46:47 -04002947
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002948fi
2949if test -z "$ac_cv_prog_CC"; then
2950 ac_ct_CC=$CC
2951 # Extract the first word of "gcc", so it can be a program name with args.
2952set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002954$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002955if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002956 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957else
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2960else
2961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962for as_dir in $PATH
2963do
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002966 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002970 break 2
2971 fi
2972done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002973 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002974IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002975
2976fi
2977fi
2978ac_ct_CC=$ac_cv_prog_ac_ct_CC
2979if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002981$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002982else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002984$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002985fi
2986
Theodore Ts'oe1052142006-10-21 21:46:47 -04002987 if test "x$ac_ct_CC" = x; then
2988 CC=""
2989 else
2990 case $cross_compiling:$ac_tool_warned in
2991yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002992{ $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 +01002993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002994ac_tool_warned=yes ;;
2995esac
2996 CC=$ac_ct_CC
2997 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002998else
2999 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003000fi
3001
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003002if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003003 if test -n "$ac_tool_prefix"; then
3004 # 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 -05003005set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003007$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003008if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003009 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003010else
3011 if test -n "$CC"; then
3012 ac_cv_prog_CC="$CC" # Let the user override the test.
3013else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015for as_dir in $PATH
3016do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003019 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003023 break 2
3024 fi
3025done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003026 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003027IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003028
3029fi
3030fi
3031CC=$ac_cv_prog_CC
3032if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003034$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003037$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038fi
3039
Theodore Ts'oe1052142006-10-21 21:46:47 -04003040
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003042fi
3043if test -z "$CC"; then
3044 # Extract the first word of "cc", so it can be a program name with args.
3045set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003047$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003048if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003049 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003050else
3051 if test -n "$CC"; then
3052 ac_cv_prog_CC="$CC" # Let the user override the test.
3053else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003054 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003055as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056for as_dir in $PATH
3057do
3058 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003060 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003062 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3063 ac_prog_rejected=yes
3064 continue
3065 fi
3066 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003068 break 2
3069 fi
3070done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003071 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003072IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003073
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003074if test $ac_prog_rejected = yes; then
3075 # We found a bogon in the path, so make sure we never use it.
3076 set dummy $ac_cv_prog_CC
3077 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003078 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003079 # We chose a different compiler from the bogus one.
3080 # However, it has the same basename, so the bogon will be chosen
3081 # first if we set CC to just the basename; use the full file name.
3082 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003083 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003084 fi
3085fi
3086fi
3087fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003088CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003089if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003091$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003092else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003094$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003095fi
3096
Theodore Ts'oe1052142006-10-21 21:46:47 -04003097
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003098fi
3099if test -z "$CC"; then
3100 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003101 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003102 do
3103 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3104set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003106$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003107if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003108 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003109else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114for as_dir in $PATH
3115do
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003118 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003122 break 2
3123 fi
3124done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003125 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003126IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003127
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003128fi
3129fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003130CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003131if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003133$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003134else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003136$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003137fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003138
Theodore Ts'oe1052142006-10-21 21:46:47 -04003139
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140 test -n "$CC" && break
3141 done
3142fi
3143if test -z "$CC"; then
3144 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003145 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003146do
3147 # Extract the first word of "$ac_prog", so it can be a program name with args.
3148set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003150$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003151if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003152 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003153else
3154 if test -n "$ac_ct_CC"; then
3155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3156else
3157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3158for as_dir in $PATH
3159do
3160 IFS=$as_save_IFS
3161 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003162 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003164 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003166 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003167 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003168done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003169 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003170IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003171
3172fi
3173fi
3174ac_ct_CC=$ac_cv_prog_ac_ct_CC
3175if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003177$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003178else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003180$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003181fi
3182
Theodore Ts'oe1052142006-10-21 21:46:47 -04003183
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003184 test -n "$ac_ct_CC" && break
3185done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003186
Theodore Ts'oe1052142006-10-21 21:46:47 -04003187 if test "x$ac_ct_CC" = x; then
3188 CC=""
3189 else
3190 case $cross_compiling:$ac_tool_warned in
3191yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003192{ $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 +01003193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003194ac_tool_warned=yes ;;
3195esac
3196 CC=$ac_ct_CC
3197 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003200fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003201
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003202
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003203test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003205as_fn_error $? "no acceptable C compiler found in \$PATH
3206See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003207
3208# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003209$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003210set X $ac_compile
3211ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003212for ac_option in --version -v -V -qversion; do
3213 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003214case "(($ac_try" in
3215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3216 *) ac_try_echo=$ac_try;;
3217esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003218eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3219$as_echo "$ac_try_echo"; } >&5
3220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003221 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003222 if test -s conftest.err; then
3223 sed '10a\
3224... rest of stderr output deleted ...
3225 10q' conftest.err >conftest.er1
3226 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003227 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003228 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3230 test $ac_status = 0; }
3231done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003232
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003233cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003234/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003235
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003236int
3237main ()
3238{
3239
3240 ;
3241 return 0;
3242}
3243_ACEOF
3244ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003245ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003246# Try to create an executable without -o first, disregard a.out.
3247# It will help us diagnose broken compilers, and finding out an intuition
3248# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3250$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003251ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3252
3253# The possible output files:
3254ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3255
Theodore Ts'oe1052142006-10-21 21:46:47 -04003256ac_rmfiles=
3257for ac_file in $ac_files
3258do
3259 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003260 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003261 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262 esac
3263done
3264rm -f $ac_rmfiles
3265
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003266if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003273 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003274 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3276 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003277 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3278# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3279# in a Makefile. We should not override ac_cv_exeext if it was cached,
3280# so that the user can short-circuit this test for compilers unknown to
3281# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003282for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003283do
3284 test -f "$ac_file" || continue
3285 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003286 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003287 ;;
3288 [ab].out )
3289 # We found the default executable, but exeext='' is most
3290 # certainly right.
3291 break;;
3292 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003293 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003294 then :; else
3295 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3296 fi
3297 # We set ac_cv_exeext here because the later test for it is not
3298 # safe: cross compilers may not add the suffix if given an `-o'
3299 # argument, so we may need to know it at that point already.
3300 # Even if this section looks crufty: it has the advantage of
3301 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003302 break;;
3303 * )
3304 break;;
3305 esac
3306done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003307test "$ac_cv_exeext" = no && ac_cv_exeext=
3308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003309else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003310 ac_file=''
3311fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003312if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314$as_echo "no" >&6; }
3315$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003316sed 's/^/| /' conftest.$ac_ext >&5
3317
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003318{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003320as_fn_error 77 "C compiler cannot create executables
3321See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003322else
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003325fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3327$as_echo_n "checking for C compiler default output file name... " >&6; }
3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3329$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003332rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003333ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003335$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003336if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003337case "(($ac_try" in
3338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339 *) ac_try_echo=$ac_try;;
3340esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003341eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003343 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003344 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003345 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003347 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3348# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3349# work properly (i.e., refer to `conftest.exe'), while it won't with
3350# `rm'.
3351for ac_file in conftest.exe conftest conftest.*; do
3352 test -f "$ac_file" || continue
3353 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003354 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003355 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003356 break;;
3357 * ) break;;
3358 esac
3359done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003360else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003361 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003363as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3364See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003365fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003366rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003368$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003369
3370rm -f conftest.$ac_ext
3371EXEEXT=$ac_cv_exeext
3372ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3374/* end confdefs.h. */
3375#include <stdio.h>
3376int
3377main ()
3378{
3379FILE *f = fopen ("conftest.out", "w");
3380 return ferror (f) || fclose (f) != 0;
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
3386ac_clean_files="$ac_clean_files conftest.out"
3387# Check that the compiler produces executables we can run. If not, either
3388# the compiler is broken, or we cross compile.
3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3390$as_echo_n "checking whether we are cross compiling... " >&6; }
3391if test "$cross_compiling" != yes; then
3392 { { ac_try="$ac_link"
3393case "(($ac_try" in
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3396esac
3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3398$as_echo "$ac_try_echo"; } >&5
3399 (eval "$ac_link") 2>&5
3400 ac_status=$?
3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3402 test $ac_status = 0; }
3403 if { ac_try='./conftest$ac_cv_exeext'
3404 { { case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409$as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_try") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }; }; then
3414 cross_compiling=no
3415 else
3416 if test "$cross_compiling" = maybe; then
3417 cross_compiling=yes
3418 else
3419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003421as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003422If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003423See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003424 fi
3425 fi
3426fi
3427{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3428$as_echo "$cross_compiling" >&6; }
3429
3430rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3431ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003433$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003434if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003435 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003436else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003438/* end confdefs.h. */
3439
3440int
3441main ()
3442{
3443
3444 ;
3445 return 0;
3446}
3447_ACEOF
3448rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003449if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003450case "(($ac_try" in
3451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3452 *) ac_try_echo=$ac_try;;
3453esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003454eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003456 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003457 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003460 for ac_file in conftest.o conftest.obj conftest.*; do
3461 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003463 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003464 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3465 break;;
3466 esac
3467done
3468else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003469 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003470sed 's/^/| /' conftest.$ac_ext >&5
3471
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003472{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003474as_fn_error $? "cannot compute suffix of object files: cannot compile
3475See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003476fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003477rm -f conftest.$ac_cv_objext conftest.$ac_ext
3478fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003480$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003481OBJEXT=$ac_cv_objext
3482ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003483{ $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 +01003484$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003485if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003486 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003489/* end confdefs.h. */
3490
3491int
3492main ()
3493{
3494#ifndef __GNUC__
3495 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003496#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003498 ;
3499 return 0;
3500}
3501_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003502if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003503 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003504else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003505 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003506fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003508ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003509
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003510fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003512$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3513if test $ac_compiler_gnu = yes; then
3514 GCC=yes
3515else
3516 GCC=
3517fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003518ac_test_CFLAGS=${CFLAGS+set}
3519ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003520{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003521$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003522if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003523 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003524else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003525 ac_save_c_werror_flag=$ac_c_werror_flag
3526 ac_c_werror_flag=yes
3527 ac_cv_prog_cc_g=no
3528 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003530/* end confdefs.h. */
3531
3532int
3533main ()
3534{
3535
3536 ;
3537 return 0;
3538}
3539_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003540if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003541 ac_cv_prog_cc_g=yes
3542else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003543 CFLAGS=""
3544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003545/* end confdefs.h. */
3546
3547int
3548main ()
3549{
3550
3551 ;
3552 return 0;
3553}
3554_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003555if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003556
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003557else
3558 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003559 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003561/* end confdefs.h. */
3562
3563int
3564main ()
3565{
3566
3567 ;
3568 return 0;
3569}
3570_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003571if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003572 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003573fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003575fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3579 ac_c_werror_flag=$ac_save_c_werror_flag
3580fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003582$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003583if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003584 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003585elif test $ac_cv_prog_cc_g = yes; then
3586 if test "$GCC" = yes; then
3587 CFLAGS="-g -O2"
3588 else
3589 CFLAGS="-g"
3590 fi
3591else
3592 if test "$GCC" = yes; then
3593 CFLAGS="-O2"
3594 else
3595 CFLAGS=
3596 fi
3597fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003599$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003600if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003601 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003603 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003604ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003605cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003606/* end confdefs.h. */
3607#include <stdarg.h>
3608#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003609struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003610/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3611struct buf { int x; };
3612FILE * (*rcsopen) (struct buf *, struct stat *, int);
3613static char *e (p, i)
3614 char **p;
3615 int i;
3616{
3617 return p[i];
3618}
3619static char *f (char * (*g) (char **, int), char **p, ...)
3620{
3621 char *s;
3622 va_list v;
3623 va_start (v,p);
3624 s = g (p, va_arg (v,int));
3625 va_end (v);
3626 return s;
3627}
3628
3629/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3630 function prototypes and stuff, but not '\xHH' hex character constants.
3631 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003632 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003633 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3634 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003635 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003636int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3637
Theodore Ts'oe1052142006-10-21 21:46:47 -04003638/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3639 inside strings and character constants. */
3640#define FOO(x) 'x'
3641int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003643int test (int i, double x);
3644struct s1 {int (*f) (int a);};
3645struct s2 {int (*f) (double a);};
3646int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3647int argc;
3648char **argv;
3649int
3650main ()
3651{
3652return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3653 ;
3654 return 0;
3655}
3656_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003657for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3658 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003659do
3660 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003661 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003662 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003664rm -f core conftest.err conftest.$ac_objext
3665 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003666done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003667rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003668CC=$ac_save_CC
3669
3670fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003671# AC_CACHE_VAL
3672case "x$ac_cv_prog_cc_c89" in
3673 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003675$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003676 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003678$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003679 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003680 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003682$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003683esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003684if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003685
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003686fi
3687
3688ac_ext=c
3689ac_cpp='$CPP $CPPFLAGS'
3690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3692ac_compiler_gnu=$ac_cv_c_compiler_gnu
3693
3694
3695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3696$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003697if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003698 $as_echo_n "(cached) " >&6
3699else
3700 ac_check_lib_save_LIBS=$LIBS
3701LIBS="-ldl $LIBS"
3702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3703/* end confdefs.h. */
3704
3705/* Override any GCC internal prototype to avoid an error.
3706 Use char because int might match the return type of a GCC
3707 builtin and then its argument prototype would still apply. */
3708#ifdef __cplusplus
3709extern "C"
3710#endif
3711char dlopen ();
3712int
3713main ()
3714{
3715return dlopen ();
3716 ;
3717 return 0;
3718}
3719_ACEOF
3720if ac_fn_c_try_link "$LINENO"; then :
3721 ac_cv_lib_dl_dlopen=yes
3722else
3723 ac_cv_lib_dl_dlopen=no
3724fi
3725rm -f core conftest.err conftest.$ac_objext \
3726 conftest$ac_exeext conftest.$ac_ext
3727LIBS=$ac_check_lib_save_LIBS
3728fi
3729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3730$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003731if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003732 DLOPEN_LIB=-ldl
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003733fi
3734
3735
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003736
3737# Check whether --with-cc was given.
3738if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003739 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003740fi
3741
3742
3743# Check whether --with-ccopts was given.
3744if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003745 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003746fi
3747
3748
3749# Check whether --with-ldopts was given.
3750if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003751 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003752fi
3753
3754ac_ext=c
3755ac_cpp='$CPP $CPPFLAGS'
3756ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3757ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3758ac_compiler_gnu=$ac_cv_c_compiler_gnu
3759if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3761set dummy ${ac_tool_prefix}gcc; ac_word=$2
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003764if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003765 $as_echo_n "(cached) " >&6
3766else
3767 if test -n "$CC"; then
3768 ac_cv_prog_CC="$CC" # Let the user override the test.
3769else
3770as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3771for as_dir in $PATH
3772do
3773 IFS=$as_save_IFS
3774 test -z "$as_dir" && as_dir=.
3775 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003777 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3779 break 2
3780 fi
3781done
3782 done
3783IFS=$as_save_IFS
3784
3785fi
3786fi
3787CC=$ac_cv_prog_CC
3788if test -n "$CC"; then
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3790$as_echo "$CC" >&6; }
3791else
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793$as_echo "no" >&6; }
3794fi
3795
3796
3797fi
3798if test -z "$ac_cv_prog_CC"; then
3799 ac_ct_CC=$CC
3800 # Extract the first word of "gcc", so it can be a program name with args.
3801set dummy gcc; ac_word=$2
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003804if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003805 $as_echo_n "(cached) " >&6
3806else
3807 if test -n "$ac_ct_CC"; then
3808 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3809else
3810as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3811for as_dir in $PATH
3812do
3813 IFS=$as_save_IFS
3814 test -z "$as_dir" && as_dir=.
3815 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003817 ac_cv_prog_ac_ct_CC="gcc"
3818 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3819 break 2
3820 fi
3821done
3822 done
3823IFS=$as_save_IFS
3824
3825fi
3826fi
3827ac_ct_CC=$ac_cv_prog_ac_ct_CC
3828if test -n "$ac_ct_CC"; then
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3830$as_echo "$ac_ct_CC" >&6; }
3831else
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833$as_echo "no" >&6; }
3834fi
3835
3836 if test "x$ac_ct_CC" = x; then
3837 CC=""
3838 else
3839 case $cross_compiling:$ac_tool_warned in
3840yes:)
3841{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3842$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3843ac_tool_warned=yes ;;
3844esac
3845 CC=$ac_ct_CC
3846 fi
3847else
3848 CC="$ac_cv_prog_CC"
3849fi
3850
3851if test -z "$CC"; then
3852 if test -n "$ac_tool_prefix"; then
3853 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3854set dummy ${ac_tool_prefix}cc; ac_word=$2
3855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3856$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003857if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003858 $as_echo_n "(cached) " >&6
3859else
3860 if test -n "$CC"; then
3861 ac_cv_prog_CC="$CC" # Let the user override the test.
3862else
3863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864for as_dir in $PATH
3865do
3866 IFS=$as_save_IFS
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003870 ac_cv_prog_CC="${ac_tool_prefix}cc"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3872 break 2
3873 fi
3874done
3875 done
3876IFS=$as_save_IFS
3877
3878fi
3879fi
3880CC=$ac_cv_prog_CC
3881if test -n "$CC"; then
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3883$as_echo "$CC" >&6; }
3884else
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886$as_echo "no" >&6; }
3887fi
3888
3889
3890 fi
3891fi
3892if test -z "$CC"; then
3893 # Extract the first word of "cc", so it can be a program name with args.
3894set dummy cc; ac_word=$2
3895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3896$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003897if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003898 $as_echo_n "(cached) " >&6
3899else
3900 if test -n "$CC"; then
3901 ac_cv_prog_CC="$CC" # Let the user override the test.
3902else
3903 ac_prog_rejected=no
3904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905for as_dir in $PATH
3906do
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003911 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3912 ac_prog_rejected=yes
3913 continue
3914 fi
3915 ac_cv_prog_CC="cc"
3916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3917 break 2
3918 fi
3919done
3920 done
3921IFS=$as_save_IFS
3922
3923if test $ac_prog_rejected = yes; then
3924 # We found a bogon in the path, so make sure we never use it.
3925 set dummy $ac_cv_prog_CC
3926 shift
3927 if test $# != 0; then
3928 # We chose a different compiler from the bogus one.
3929 # However, it has the same basename, so the bogon will be chosen
3930 # first if we set CC to just the basename; use the full file name.
3931 shift
3932 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3933 fi
3934fi
3935fi
3936fi
3937CC=$ac_cv_prog_CC
3938if test -n "$CC"; then
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3940$as_echo "$CC" >&6; }
3941else
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943$as_echo "no" >&6; }
3944fi
3945
3946
3947fi
3948if test -z "$CC"; then
3949 if test -n "$ac_tool_prefix"; then
3950 for ac_prog in cl.exe
3951 do
3952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3953set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003956if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003957 $as_echo_n "(cached) " >&6
3958else
3959 if test -n "$CC"; then
3960 ac_cv_prog_CC="$CC" # Let the user override the test.
3961else
3962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963for as_dir in $PATH
3964do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003969 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3972 fi
3973done
3974 done
3975IFS=$as_save_IFS
3976
3977fi
3978fi
3979CC=$ac_cv_prog_CC
3980if test -n "$CC"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3982$as_echo "$CC" >&6; }
3983else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985$as_echo "no" >&6; }
3986fi
3987
3988
3989 test -n "$CC" && break
3990 done
3991fi
3992if test -z "$CC"; then
3993 ac_ct_CC=$CC
3994 for ac_prog in cl.exe
3995do
3996 # Extract the first word of "$ac_prog", so it can be a program name with args.
3997set dummy $ac_prog; ac_word=$2
3998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004000if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004001 $as_echo_n "(cached) " >&6
4002else
4003 if test -n "$ac_ct_CC"; then
4004 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4005else
4006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007for as_dir in $PATH
4008do
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004013 ac_cv_prog_ac_ct_CC="$ac_prog"
4014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4016 fi
4017done
4018 done
4019IFS=$as_save_IFS
4020
4021fi
4022fi
4023ac_ct_CC=$ac_cv_prog_ac_ct_CC
4024if test -n "$ac_ct_CC"; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4026$as_echo "$ac_ct_CC" >&6; }
4027else
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4029$as_echo "no" >&6; }
4030fi
4031
4032
4033 test -n "$ac_ct_CC" && break
4034done
4035
4036 if test "x$ac_ct_CC" = x; then
4037 CC=""
4038 else
4039 case $cross_compiling:$ac_tool_warned in
4040yes:)
4041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4043ac_tool_warned=yes ;;
4044esac
4045 CC=$ac_ct_CC
4046 fi
4047fi
4048
4049fi
4050
4051
4052test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4053$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004054as_fn_error $? "no acceptable C compiler found in \$PATH
4055See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004056
4057# Provide some information about the compiler.
4058$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4059set X $ac_compile
4060ac_compiler=$2
4061for ac_option in --version -v -V -qversion; do
4062 { { ac_try="$ac_compiler $ac_option >&5"
4063case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066esac
4067eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068$as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4070 ac_status=$?
4071 if test -s conftest.err; then
4072 sed '10a\
4073... rest of stderr output deleted ...
4074 10q' conftest.err >conftest.er1
4075 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004076 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004077 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4079 test $ac_status = 0; }
4080done
4081
4082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4083$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004084if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004085 $as_echo_n "(cached) " >&6
4086else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088/* end confdefs.h. */
4089
4090int
4091main ()
4092{
4093#ifndef __GNUC__
4094 choke me
4095#endif
4096
4097 ;
4098 return 0;
4099}
4100_ACEOF
4101if ac_fn_c_try_compile "$LINENO"; then :
4102 ac_compiler_gnu=yes
4103else
4104 ac_compiler_gnu=no
4105fi
4106rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4107ac_cv_c_compiler_gnu=$ac_compiler_gnu
4108
4109fi
4110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4111$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4112if test $ac_compiler_gnu = yes; then
4113 GCC=yes
4114else
4115 GCC=
4116fi
4117ac_test_CFLAGS=${CFLAGS+set}
4118ac_save_CFLAGS=$CFLAGS
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4120$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004121if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004122 $as_echo_n "(cached) " >&6
4123else
4124 ac_save_c_werror_flag=$ac_c_werror_flag
4125 ac_c_werror_flag=yes
4126 ac_cv_prog_cc_g=no
4127 CFLAGS="-g"
4128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4129/* end confdefs.h. */
4130
4131int
4132main ()
4133{
4134
4135 ;
4136 return 0;
4137}
4138_ACEOF
4139if ac_fn_c_try_compile "$LINENO"; then :
4140 ac_cv_prog_cc_g=yes
4141else
4142 CFLAGS=""
4143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4144/* end confdefs.h. */
4145
4146int
4147main ()
4148{
4149
4150 ;
4151 return 0;
4152}
4153_ACEOF
4154if ac_fn_c_try_compile "$LINENO"; then :
4155
4156else
4157 ac_c_werror_flag=$ac_save_c_werror_flag
4158 CFLAGS="-g"
4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4160/* end confdefs.h. */
4161
4162int
4163main ()
4164{
4165
4166 ;
4167 return 0;
4168}
4169_ACEOF
4170if ac_fn_c_try_compile "$LINENO"; then :
4171 ac_cv_prog_cc_g=yes
4172fi
4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174fi
4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176fi
4177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4178 ac_c_werror_flag=$ac_save_c_werror_flag
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4181$as_echo "$ac_cv_prog_cc_g" >&6; }
4182if test "$ac_test_CFLAGS" = set; then
4183 CFLAGS=$ac_save_CFLAGS
4184elif test $ac_cv_prog_cc_g = yes; then
4185 if test "$GCC" = yes; then
4186 CFLAGS="-g -O2"
4187 else
4188 CFLAGS="-g"
4189 fi
4190else
4191 if test "$GCC" = yes; then
4192 CFLAGS="-O2"
4193 else
4194 CFLAGS=
4195 fi
4196fi
4197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4198$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004199if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004200 $as_echo_n "(cached) " >&6
4201else
4202 ac_cv_prog_cc_c89=no
4203ac_save_CC=$CC
4204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205/* end confdefs.h. */
4206#include <stdarg.h>
4207#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004208struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004209/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4210struct buf { int x; };
4211FILE * (*rcsopen) (struct buf *, struct stat *, int);
4212static char *e (p, i)
4213 char **p;
4214 int i;
4215{
4216 return p[i];
4217}
4218static char *f (char * (*g) (char **, int), char **p, ...)
4219{
4220 char *s;
4221 va_list v;
4222 va_start (v,p);
4223 s = g (p, va_arg (v,int));
4224 va_end (v);
4225 return s;
4226}
4227
4228/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4229 function prototypes and stuff, but not '\xHH' hex character constants.
4230 These don't provoke an error unfortunately, instead are silently treated
4231 as 'x'. The following induces an error, until -std is added to get
4232 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4233 array size at least. It's necessary to write '\x00'==0 to get something
4234 that's true only with -std. */
4235int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4236
4237/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4238 inside strings and character constants. */
4239#define FOO(x) 'x'
4240int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4241
4242int test (int i, double x);
4243struct s1 {int (*f) (int a);};
4244struct s2 {int (*f) (double a);};
4245int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4246int argc;
4247char **argv;
4248int
4249main ()
4250{
4251return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4252 ;
4253 return 0;
4254}
4255_ACEOF
4256for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4257 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4258do
4259 CC="$ac_save_CC $ac_arg"
4260 if ac_fn_c_try_compile "$LINENO"; then :
4261 ac_cv_prog_cc_c89=$ac_arg
4262fi
4263rm -f core conftest.err conftest.$ac_objext
4264 test "x$ac_cv_prog_cc_c89" != "xno" && break
4265done
4266rm -f conftest.$ac_ext
4267CC=$ac_save_CC
4268
4269fi
4270# AC_CACHE_VAL
4271case "x$ac_cv_prog_cc_c89" in
4272 x)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4274$as_echo "none needed" >&6; } ;;
4275 xno)
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4277$as_echo "unsupported" >&6; } ;;
4278 *)
4279 CC="$CC $ac_cv_prog_cc_c89"
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4281$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4282esac
4283if test "x$ac_cv_prog_cc_c89" != xno; then :
4284
4285fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004287ac_ext=c
4288ac_cpp='$CPP $CPPFLAGS'
4289ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004293if test "$GCC" = yes; then
4294 RDYNAMIC="-rdynamic"
4295
4296fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004297ac_ext=c
4298ac_cpp='$CPP $CPPFLAGS'
4299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4301ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004303$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004304# On Suns, sometimes $CPP names a directory.
4305if test -n "$CPP" && test -d "$CPP"; then
4306 CPP=
4307fi
4308if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004309 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004310 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004311else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004312 # Double quotes because CPP needs to be expanded
4313 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4314 do
4315 ac_preproc_ok=false
4316for ac_c_preproc_warn_flag in '' yes
4317do
4318 # Use a header file that comes with gcc, so configuring glibc
4319 # with a fresh cross-compiler works.
4320 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4321 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004322 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004323 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004325/* end confdefs.h. */
4326#ifdef __STDC__
4327# include <limits.h>
4328#else
4329# include <assert.h>
4330#endif
4331 Syntax error
4332_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004333if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004334
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004335else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004336 # Broken: fails on valid input.
4337continue
4338fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004339rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340
Theodore Ts'oe1052142006-10-21 21:46:47 -04004341 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004344/* end confdefs.h. */
4345#include <ac_nonexistent.h>
4346_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004347if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004348 # Broken: success on invalid input.
4349continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004351 # Passes both tests.
4352ac_preproc_ok=:
4353break
4354fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004355rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004356
4357done
4358# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004359rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004360if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004361 break
4362fi
4363
4364 done
4365 ac_cv_prog_CPP=$CPP
4366
4367fi
4368 CPP=$ac_cv_prog_CPP
4369else
4370 ac_cv_prog_CPP=$CPP
4371fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004373$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004374ac_preproc_ok=false
4375for ac_c_preproc_warn_flag in '' yes
4376do
4377 # Use a header file that comes with gcc, so configuring glibc
4378 # with a fresh cross-compiler works.
4379 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4380 # <limits.h> exists even on freestanding compilers.
4381 # On the NeXT, cc -E runs the code through the compiler's parser,
4382 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004384/* end confdefs.h. */
4385#ifdef __STDC__
4386# include <limits.h>
4387#else
4388# include <assert.h>
4389#endif
4390 Syntax error
4391_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004392if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004393
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004394else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004395 # Broken: fails on valid input.
4396continue
4397fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004398rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004399
Theodore Ts'oe1052142006-10-21 21:46:47 -04004400 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004401 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004403/* end confdefs.h. */
4404#include <ac_nonexistent.h>
4405_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004406if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004407 # Broken: success on invalid input.
4408continue
4409else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004410 # Passes both tests.
4411ac_preproc_ok=:
4412break
4413fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004414rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004415
4416done
4417# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004418rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004419if $ac_preproc_ok; then :
4420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004421else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004424as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4425See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004426fi
4427
4428ac_ext=c
4429ac_cpp='$CPP $CPPFLAGS'
4430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004435$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004436if test "$GCC" = yes
4437then
4438 case "$host_cpu" in
4439 alpha) addcflags="-mieee" ;;
4440 esac
4441fi
4442if test "x$addcflags" != x
4443then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004445$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004446 CFLAGS="$addcflags $CFLAGS"
4447else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004449$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004450fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004451
4452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4453$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4454if ${ac_cv_path_GREP+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456else
4457 if test -z "$GREP"; then
4458 ac_path_GREP_found=false
4459 # Loop through the user's path and test for each of PROGNAME-LIST
4460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4461for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4462do
4463 IFS=$as_save_IFS
4464 test -z "$as_dir" && as_dir=.
4465 for ac_prog in grep ggrep; do
4466 for ac_exec_ext in '' $ac_executable_extensions; do
4467 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4468 as_fn_executable_p "$ac_path_GREP" || continue
4469# Check for GNU ac_path_GREP and select it if it is found.
4470 # Check for GNU $ac_path_GREP
4471case `"$ac_path_GREP" --version 2>&1` in
4472*GNU*)
4473 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4474*)
4475 ac_count=0
4476 $as_echo_n 0123456789 >"conftest.in"
4477 while :
4478 do
4479 cat "conftest.in" "conftest.in" >"conftest.tmp"
4480 mv "conftest.tmp" "conftest.in"
4481 cp "conftest.in" "conftest.nl"
4482 $as_echo 'GREP' >> "conftest.nl"
4483 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4484 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4485 as_fn_arith $ac_count + 1 && ac_count=$as_val
4486 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4487 # Best one so far, save it but keep looking for a better one
4488 ac_cv_path_GREP="$ac_path_GREP"
4489 ac_path_GREP_max=$ac_count
4490 fi
4491 # 10*(2^10) chars as input seems more than enough
4492 test $ac_count -gt 10 && break
4493 done
4494 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4495esac
4496
4497 $ac_path_GREP_found && break 3
4498 done
4499 done
4500 done
4501IFS=$as_save_IFS
4502 if test -z "$ac_cv_path_GREP"; then
4503 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4504 fi
4505else
4506 ac_cv_path_GREP=$GREP
4507fi
4508
4509fi
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4511$as_echo "$ac_cv_path_GREP" >&6; }
4512 GREP="$ac_cv_path_GREP"
4513
4514
4515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4516$as_echo_n "checking for egrep... " >&6; }
4517if ${ac_cv_path_EGREP+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519else
4520 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4521 then ac_cv_path_EGREP="$GREP -E"
4522 else
4523 if test -z "$EGREP"; then
4524 ac_path_EGREP_found=false
4525 # Loop through the user's path and test for each of PROGNAME-LIST
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4527for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4528do
4529 IFS=$as_save_IFS
4530 test -z "$as_dir" && as_dir=.
4531 for ac_prog in egrep; do
4532 for ac_exec_ext in '' $ac_executable_extensions; do
4533 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4534 as_fn_executable_p "$ac_path_EGREP" || continue
4535# Check for GNU ac_path_EGREP and select it if it is found.
4536 # Check for GNU $ac_path_EGREP
4537case `"$ac_path_EGREP" --version 2>&1` in
4538*GNU*)
4539 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4540*)
4541 ac_count=0
4542 $as_echo_n 0123456789 >"conftest.in"
4543 while :
4544 do
4545 cat "conftest.in" "conftest.in" >"conftest.tmp"
4546 mv "conftest.tmp" "conftest.in"
4547 cp "conftest.in" "conftest.nl"
4548 $as_echo 'EGREP' >> "conftest.nl"
4549 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4550 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4551 as_fn_arith $ac_count + 1 && ac_count=$as_val
4552 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4553 # Best one so far, save it but keep looking for a better one
4554 ac_cv_path_EGREP="$ac_path_EGREP"
4555 ac_path_EGREP_max=$ac_count
4556 fi
4557 # 10*(2^10) chars as input seems more than enough
4558 test $ac_count -gt 10 && break
4559 done
4560 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4561esac
4562
4563 $ac_path_EGREP_found && break 3
4564 done
4565 done
4566 done
4567IFS=$as_save_IFS
4568 if test -z "$ac_cv_path_EGREP"; then
4569 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4570 fi
4571else
4572 ac_cv_path_EGREP=$EGREP
4573fi
4574
4575 fi
4576fi
4577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4578$as_echo "$ac_cv_path_EGREP" >&6; }
4579 EGREP="$ac_cv_path_EGREP"
4580
4581
4582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4583$as_echo_n "checking for ANSI C header files... " >&6; }
4584if ${ac_cv_header_stdc+:} false; then :
4585 $as_echo_n "(cached) " >&6
4586else
4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4588/* end confdefs.h. */
4589#include <stdlib.h>
4590#include <stdarg.h>
4591#include <string.h>
4592#include <float.h>
4593
4594int
4595main ()
4596{
4597
4598 ;
4599 return 0;
4600}
4601_ACEOF
4602if ac_fn_c_try_compile "$LINENO"; then :
4603 ac_cv_header_stdc=yes
4604else
4605 ac_cv_header_stdc=no
4606fi
4607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4608
4609if test $ac_cv_header_stdc = yes; then
4610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4612/* end confdefs.h. */
4613#include <string.h>
4614
4615_ACEOF
4616if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4617 $EGREP "memchr" >/dev/null 2>&1; then :
4618
4619else
4620 ac_cv_header_stdc=no
4621fi
4622rm -f conftest*
4623
4624fi
4625
4626if test $ac_cv_header_stdc = yes; then
4627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4629/* end confdefs.h. */
4630#include <stdlib.h>
4631
4632_ACEOF
4633if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4634 $EGREP "free" >/dev/null 2>&1; then :
4635
4636else
4637 ac_cv_header_stdc=no
4638fi
4639rm -f conftest*
4640
4641fi
4642
4643if test $ac_cv_header_stdc = yes; then
4644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4645 if test "$cross_compiling" = yes; then :
4646 :
4647else
4648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4649/* end confdefs.h. */
4650#include <ctype.h>
4651#include <stdlib.h>
4652#if ((' ' & 0x0FF) == 0x020)
4653# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4654# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4655#else
4656# define ISLOWER(c) \
4657 (('a' <= (c) && (c) <= 'i') \
4658 || ('j' <= (c) && (c) <= 'r') \
4659 || ('s' <= (c) && (c) <= 'z'))
4660# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4661#endif
4662
4663#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4664int
4665main ()
4666{
4667 int i;
4668 for (i = 0; i < 256; i++)
4669 if (XOR (islower (i), ISLOWER (i))
4670 || toupper (i) != TOUPPER (i))
4671 return 2;
4672 return 0;
4673}
4674_ACEOF
4675if ac_fn_c_try_run "$LINENO"; then :
4676
4677else
4678 ac_cv_header_stdc=no
4679fi
4680rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4681 conftest.$ac_objext conftest.beam conftest.$ac_ext
4682fi
4683
4684fi
4685fi
4686{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4687$as_echo "$ac_cv_header_stdc" >&6; }
4688if test $ac_cv_header_stdc = yes; then
4689
4690$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4691
4692fi
4693
4694# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4695for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4696 inttypes.h stdint.h unistd.h
4697do :
4698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4699ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4700"
4701if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4702 cat >>confdefs.h <<_ACEOF
4703#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4704_ACEOF
4705
4706fi
4707
4708done
4709
4710
4711
4712 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4713if test "x$ac_cv_header_minix_config_h" = xyes; then :
4714 MINIX=yes
4715else
4716 MINIX=
4717fi
4718
4719
4720 if test "$MINIX" = yes; then
4721
4722$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4723
4724
4725$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4726
4727
4728$as_echo "#define _MINIX 1" >>confdefs.h
4729
4730 fi
4731
4732
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4734$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4735if ${ac_cv_safe_to_define___extensions__+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737else
4738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4739/* end confdefs.h. */
4740
4741# define __EXTENSIONS__ 1
4742 $ac_includes_default
4743int
4744main ()
4745{
4746
4747 ;
4748 return 0;
4749}
4750_ACEOF
4751if ac_fn_c_try_compile "$LINENO"; then :
4752 ac_cv_safe_to_define___extensions__=yes
4753else
4754 ac_cv_safe_to_define___extensions__=no
4755fi
4756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4757fi
4758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4759$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4760 test $ac_cv_safe_to_define___extensions__ = yes &&
4761 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4762
4763 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4764
4765 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4766
4767 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4768
4769 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4770
4771
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004772LIB_EXT=.a
4773STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004774PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004775
Theodore Ts'oe1052142006-10-21 21:46:47 -04004776# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004777if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004778 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004779else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004780 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004781fi
4782# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004783if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004784 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004785then
4786 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004788$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004789else
4790 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004792$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004793fi
4794
4795else
4796 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004798$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004799
Theodore Ts'oe1052142006-10-21 21:46:47 -04004800fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004801
Theodore Ts'oe1052142006-10-21 21:46:47 -04004802
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004803# Check whether --enable-symlink-install was given.
4804if test "${enable_symlink_install+set}" = set; then :
4805 enableval=$enable_symlink_install; if test "$enableval" = "no"
4806then
4807 LINK_INSTALL_FLAGS=-f
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4809$as_echo "Disabling symlinks for install" >&6; }
4810else
4811 LINK_INSTALL_FLAGS=-sf
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4813$as_echo "Enabling symlinks for install" >&6; }
4814fi
4815
4816else
4817 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4819$as_echo "Disabling symlinks for install by default" >&6; }
4820
4821fi
4822
4823
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004824relative_symlink_defined=
4825# Check whether --enable-relative-symlinks was given.
4826if test "${enable_relative_symlinks+set}" = set; then :
4827 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004828then
4829 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004830 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4832$as_echo "Disabling relative symlinks for install" >&6; }
4833else
4834 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004835 relative_symlink_defined=yes
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4837$as_echo "Enabling relative symlinks for install" >&6; }
4838fi
4839fi
4840
4841# Check whether --enable-symlink-relative-symlinks was given.
4842if test "${enable_symlink_relative_symlinks+set}" = set; then :
4843 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4844then
4845 SYMLINK_RELATIVE=yes
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4847$as_echo "Disabling relative symlinks for install" >&6; }
4848else
4849 SYMLINK_RELATIVE=--relative
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4851$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004852fi
4853
4854else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004855 if test -z "$relative_symlink_defined"
4856then
4857 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4859$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004860fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004861
4862fi
4863
4864
4865# Check whether --enable-symlink-build was given.
4866if test "${enable_symlink_build+set}" = set; then :
4867 enableval=$enable_symlink_build; if test "$enableval" = "no"
4868then
4869 LINK_BUILD_FLAGS=
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4871$as_echo "Disabling symlinks for build" >&6; }
4872else
4873 LINK_BUILD_FLAGS=-s
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4875$as_echo "Enabling symlinks for build" >&6; }
4876fi
4877
4878else
4879 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4881$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004882
4883fi
4884
4885
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004886# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004887if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004888 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4889then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004891$as_echo "Disabling verbose make commands" >&6; }
4892 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004893 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004894 Q=@
4895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004897$as_echo "Enabling verbose make commands" >&6; }
4898 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004899 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004900 Q=
4901fi
4902
4903else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004905$as_echo "Disabling verbose make commands" >&6; }
4906E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004907ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004908Q=@
4909
4910fi
4911
4912
4913
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004914
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004915E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004916LDFLAG_DYNAMIC=
4917PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004918# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004919if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004920 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004921then
4922 ELF_CMT=#
4923 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004925$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004926else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004927 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004928 ELF_CMT=
4929 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004930 case "$host_os" in
4931 solaris2.*)
4932 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4933 ;;
4934 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004935 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004936 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004937 PRIVATE_LIBS_CMT=#
4938 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004940$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004941fi
4942
4943else
4944 MAKEFILE_ELF=/dev/null
4945ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004947$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004948
Theodore Ts'oe1052142006-10-21 21:46:47 -04004949fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004950
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004951
Theodore Ts'oe1052142006-10-21 21:46:47 -04004952
4953# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004954if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004955 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004956then
4957 BSDLIB_CMT=#
4958 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004960$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004961else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004962 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004963 BSDLIB_CMT=
4964 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004965 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004966 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004967 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004968 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4969 LIB_EXT=.dylib
4970 ;;
4971 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004973$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004974fi
4975
4976else
4977 MAKEFILE_BSDLIB=/dev/null
4978BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004980$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004981
Theodore Ts'oe1052142006-10-21 21:46:47 -04004982fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004983
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004984
Theodore Ts'oe1052142006-10-21 21:46:47 -04004985
4986# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004987if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004988 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004989then
4990 PROFILE_CMT=#
4991 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004993$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004994else
4995 PROFILE_CMT=
4996 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4997 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004999$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005000fi
5001
5002else
5003 PROFILE_CMT=#
5004MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005006$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005007
Theodore Ts'oe1052142006-10-21 21:46:47 -04005008fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005009
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005010
Theodore Ts'oe1052142006-10-21 21:46:47 -04005011
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005012# Check whether --enable-gcov was given.
5013if test "${enable_gcov+set}" = set; then :
5014 enableval=$enable_gcov; if test "$enableval" = "yes"
5015then
5016 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5017 LDFLAGS="-fprofile-arcs -ftest-coverage"
5018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5019$as_echo "Enabling gcov support" >&6; }
5020fi
5021
5022fi
5023
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04005024CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5025CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5026LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5027LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5028# Check whether --enable-hardening was given.
5029if test "${enable_hardening+set}" = set; then :
5030 enableval=$enable_hardening; if test "$enableval" = "yes"
5031then
5032 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5033 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5034 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5035 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5036 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5037 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5038 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5039 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5041$as_echo "Enabling hardening support" >&6; }
5042fi
5043
5044fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005045
5046
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005047
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048
Theodore Ts'o55da9872008-09-02 23:12:38 -04005049
5050
Theodore Ts'oe1052142006-10-21 21:46:47 -04005051# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005052if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005053 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005054then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005056$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005057else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005058
5059$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005060
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005062$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005063fi
5064
5065else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005067$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005068
Theodore Ts'oe1052142006-10-21 21:46:47 -04005069fi
5070
5071# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005072if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005073 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005074then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005076$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005077else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005078
5079$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005080
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005082$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005083fi
5084
5085else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005087$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005088
Theodore Ts'oe1052142006-10-21 21:46:47 -04005089fi
5090
5091# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005092if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005093 enableval=$enable_testio_debug;
5094if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005095then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005097$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005098 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005099else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005100 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005102
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005104$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005105fi
5106
5107else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005109$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005110$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005111
5112TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005113
Theodore Ts'oe1052142006-10-21 21:46:47 -04005114fi
5115
Theodore Ts'oaf773652008-09-01 11:27:27 -04005116
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005117
5118
Theodore Ts'o93613952014-07-03 23:44:13 -04005119
5120
5121
5122
5123
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005124if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005125 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005126 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5127set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005129$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005130if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005131 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005132else
5133 case $PKG_CONFIG in
5134 [\\/]* | ?:[\\/]*)
5135 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5136 ;;
5137 *)
5138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5139for as_dir in $PATH
5140do
5141 IFS=$as_save_IFS
5142 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005143 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005145 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005147 break 2
5148 fi
5149done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005150 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005151IFS=$as_save_IFS
5152
5153 ;;
5154esac
5155fi
5156PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5157if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005159$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005160else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005162$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005163fi
5164
5165
5166fi
5167if test -z "$ac_cv_path_PKG_CONFIG"; then
5168 ac_pt_PKG_CONFIG=$PKG_CONFIG
5169 # Extract the first word of "pkg-config", so it can be a program name with args.
5170set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005172$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005173if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005174 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005175else
5176 case $ac_pt_PKG_CONFIG in
5177 [\\/]* | ?:[\\/]*)
5178 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5179 ;;
5180 *)
5181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
5183do
5184 IFS=$as_save_IFS
5185 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005186 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005188 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005190 break 2
5191 fi
5192done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005193 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005194IFS=$as_save_IFS
5195
5196 ;;
5197esac
5198fi
5199ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5200if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005202$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005203else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005205$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005206fi
5207
5208 if test "x$ac_pt_PKG_CONFIG" = x; then
5209 PKG_CONFIG=""
5210 else
5211 case $cross_compiling:$ac_tool_warned in
5212yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005213{ $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 +01005214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005215ac_tool_warned=yes ;;
5216esac
5217 PKG_CONFIG=$ac_pt_PKG_CONFIG
5218 fi
5219else
5220 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5221fi
5222
5223fi
5224if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005225 _pkg_min_version=0.9.0
5226 { $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 +01005227$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005228 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005230$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005233$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005234 PKG_CONFIG=""
5235 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005236fi
5237LIBUUID=
5238DEPLIBUUID=
5239STATIC_LIBUUID=
5240DEPSTATIC_LIBUUID=
5241PROFILED_LIBUUID=
5242DEPPROFILED_LIBUUID=
5243UUID_CMT=
5244# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005245if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005246 enableval=$enable_libuuid; if test "$enableval" = "no"
5247then
5248 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005249 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005250 fi
5251
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005253$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005254if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005255 $as_echo_n "(cached) " >&6
5256else
5257 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005258LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005260/* end confdefs.h. */
5261
5262/* Override any GCC internal prototype to avoid an error.
5263 Use char because int might match the return type of a GCC
5264 builtin and then its argument prototype would still apply. */
5265#ifdef __cplusplus
5266extern "C"
5267#endif
5268char uuid_generate ();
5269int
5270main ()
5271{
5272return uuid_generate ();
5273 ;
5274 return 0;
5275}
5276_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005277if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005278 ac_cv_lib_uuid_uuid_generate=yes
5279else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005280 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005281fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005282rm -f core conftest.err conftest.$ac_objext \
5283 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005284LIBS=$ac_check_lib_save_LIBS
5285fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005287$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005288if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005289 LIBUUID=`$PKG_CONFIG --libs uuid`;
5290 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5291else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005292 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005293fi
5294
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005295 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005296 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005298$as_echo "Disabling private uuid library" >&6; }
5299else
5300 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5301 DEPLIBUUID=$LIBUUID
5302 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5303 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5304 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5305 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005307$as_echo "Enabling private uuid library" >&6; }
5308fi
5309
5310else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005311 if test -n "$PKG_CONFIG"; then
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5313$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5314if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5315 $as_echo_n "(cached) " >&6
5316else
5317 ac_check_lib_save_LIBS=$LIBS
5318LIBS="-luuid $LIBS"
5319cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320/* end confdefs.h. */
5321
5322/* Override any GCC internal prototype to avoid an error.
5323 Use char because int might match the return type of a GCC
5324 builtin and then its argument prototype would still apply. */
5325#ifdef __cplusplus
5326extern "C"
5327#endif
5328char uuid_generate ();
5329int
5330main ()
5331{
5332return uuid_generate ();
5333 ;
5334 return 0;
5335}
5336_ACEOF
5337if ac_fn_c_try_link "$LINENO"; then :
5338 ac_cv_lib_uuid_uuid_generate=yes
5339else
5340 ac_cv_lib_uuid_uuid_generate=no
5341fi
5342rm -f core conftest.err conftest.$ac_objext \
5343 conftest$ac_exeext conftest.$ac_ext
5344LIBS=$ac_check_lib_save_LIBS
5345fi
5346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5347$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5348if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5349 LIBUUID=`$PKG_CONFIG --libs uuid`;
5350 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5351fi
5352
5353fi
5354if test -n "$LIBUUID"; then
5355 PROFILED_LIBUUID=$LIBUUID
5356 UUID_CMT=#
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5358$as_echo "Using system uuid by default" >&6; }
5359else
5360 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5361 DEPLIBUUID=$LIBUUID
5362 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5363 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5364 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5365 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005368fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005369
5370fi
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
Theodore Ts'o93613952014-07-03 23:44:13 -04005381
5382
5383
5384
5385
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005386if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005387 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5389set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005391$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005392if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005393 $as_echo_n "(cached) " >&6
5394else
5395 case $PKG_CONFIG in
5396 [\\/]* | ?:[\\/]*)
5397 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5398 ;;
5399 *)
5400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5401for as_dir in $PATH
5402do
5403 IFS=$as_save_IFS
5404 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005405 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005407 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005409 break 2
5410 fi
5411done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005412 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005413IFS=$as_save_IFS
5414
5415 ;;
5416esac
5417fi
5418PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5419if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005421$as_echo "$PKG_CONFIG" >&6; }
5422else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005424$as_echo "no" >&6; }
5425fi
5426
5427
5428fi
5429if test -z "$ac_cv_path_PKG_CONFIG"; then
5430 ac_pt_PKG_CONFIG=$PKG_CONFIG
5431 # Extract the first word of "pkg-config", so it can be a program name with args.
5432set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005434$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005435if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005436 $as_echo_n "(cached) " >&6
5437else
5438 case $ac_pt_PKG_CONFIG in
5439 [\\/]* | ?:[\\/]*)
5440 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5441 ;;
5442 *)
5443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5444for as_dir in $PATH
5445do
5446 IFS=$as_save_IFS
5447 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005448 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005450 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005452 break 2
5453 fi
5454done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005455 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005456IFS=$as_save_IFS
5457
5458 ;;
5459esac
5460fi
5461ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5462if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005464$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5465else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005467$as_echo "no" >&6; }
5468fi
5469
5470 if test "x$ac_pt_PKG_CONFIG" = x; then
5471 PKG_CONFIG=""
5472 else
5473 case $cross_compiling:$ac_tool_warned in
5474yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005475{ $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 +01005476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477ac_tool_warned=yes ;;
5478esac
5479 PKG_CONFIG=$ac_pt_PKG_CONFIG
5480 fi
5481else
5482 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5483fi
5484
5485fi
5486if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005487 _pkg_min_version=0.9.0
5488 { $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 +01005489$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005490 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005492$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005493 else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005495$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005496 PKG_CONFIG=""
5497 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005498fi
5499LIBBLKID=
5500DEPLIBBLKID=
5501STATIC_LIBBLKID=
5502DEPSTATIC_LIBBLKID=
5503PROFILED_LIBBLKID=
5504DEPPROFILED_LIBBLKID=
5505BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005506
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005507# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005508if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005509 enableval=$enable_libblkid; if test "$enableval" = "no"
5510then
5511 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005512 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005513 fi
5514
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005516$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005517if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005518 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005519else
5520 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005521LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005523/* end confdefs.h. */
5524
5525/* Override any GCC internal prototype to avoid an error.
5526 Use char because int might match the return type of a GCC
5527 builtin and then its argument prototype would still apply. */
5528#ifdef __cplusplus
5529extern "C"
5530#endif
5531char blkid_get_cache ();
5532int
5533main ()
5534{
5535return blkid_get_cache ();
5536 ;
5537 return 0;
5538}
5539_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005540if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005541 ac_cv_lib_blkid_blkid_get_cache=yes
5542else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005543 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005544fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005545rm -f core conftest.err conftest.$ac_objext \
5546 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005547LIBS=$ac_check_lib_save_LIBS
5548fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005550$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005551if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005552 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5553 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5554else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005555 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005556fi
5557
5558 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005559 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005561$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005562else
5563 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5564 DEPLIBBLKID=$LIBBLKID
5565 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5566 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5567 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5568 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005569 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005572$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005573fi
5574
5575else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005576 if test -n "$PKG_CONFIG"; then
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5578$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5579if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5580 $as_echo_n "(cached) " >&6
5581else
5582 ac_check_lib_save_LIBS=$LIBS
5583LIBS="-lblkid $LIBS"
5584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5585/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005586
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005587/* Override any GCC internal prototype to avoid an error.
5588 Use char because int might match the return type of a GCC
5589 builtin and then its argument prototype would still apply. */
5590#ifdef __cplusplus
5591extern "C"
5592#endif
5593char blkid_get_cache ();
5594int
5595main ()
5596{
5597return blkid_get_cache ();
5598 ;
5599 return 0;
5600}
5601_ACEOF
5602if ac_fn_c_try_link "$LINENO"; then :
5603 ac_cv_lib_blkid_blkid_get_cache=yes
5604else
5605 ac_cv_lib_blkid_blkid_get_cache=no
5606fi
5607rm -f core conftest.err conftest.$ac_objext \
5608 conftest$ac_exeext conftest.$ac_ext
5609LIBS=$ac_check_lib_save_LIBS
5610fi
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5612$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5613if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5614 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5615 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5616fi
5617
5618fi
5619if test -n "$LIBBLKID"; then
5620 BLKID_CMT=#
5621 PROFILED_LIBBLKID=$LIBBLKID
5622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5623$as_echo "Using system blkid library by default" >&6; }
5624else
5625 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5626 DEPLIBBLKID=$LIBBLKID
5627 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5628 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5629 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5630 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5631 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5632
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005634$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005635fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005636
5637fi
5638
5639
5640
5641
5642
5643
5644
5645
Theodore Ts'o0afb9be2018-08-18 11:19:25 -04005646ALL_CMT=
5647# Check whether --enable-subset was given.
5648if test "${enable_subset+set}" = set; then :
5649 enableval=$enable_subset; if test "$enableval" = "no"
5650then
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5652$as_echo "Disabling subset-only build" >&6; }
5653else
5654 ALL_CMT=#
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5656$as_echo "Enabling subset-only-build" >&6; }
5657fi
5658
5659fi
5660
5661
Theodore Ts'o3df60142013-06-16 16:14:40 -04005662
5663# Check whether --enable-backtrace was given.
5664if test "${enable_backtrace+set}" = set; then :
5665 enableval=$enable_backtrace; if test "$enableval" = "no"
5666then
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5668$as_echo "Disabling use of backtrace" >&6; }
5669 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5670
5671else
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5673$as_echo "Enabling use of backtrace" >&6; }
5674fi
5675
5676else
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5678$as_echo "Enabling use of backtrace by default" >&6; }
5679
5680fi
5681
Theodore Ts'oe1052142006-10-21 21:46:47 -04005682# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005683if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005684 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005685then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005687$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005688 DEBUGFS_CMT="#"
5689else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005690 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005692$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005693fi
5694
5695else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005697$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005698DEBUGFS_CMT=
5699
Theodore Ts'oe1052142006-10-21 21:46:47 -04005700fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005701
Theodore Ts'oe1052142006-10-21 21:46:47 -04005702
5703# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005704if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005705 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005706then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005708$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005709 IMAGER_CMT="#"
5710else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005711 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005713$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005714fi
5715
5716else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005718$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005719IMAGER_CMT=
5720
Theodore Ts'oe1052142006-10-21 21:46:47 -04005721fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005722
Theodore Ts'oe1052142006-10-21 21:46:47 -04005723
5724# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005725if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005726 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005727then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005729$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005730 RESIZER_CMT="#"
5731else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005732 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005734$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005735fi
5736
5737else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005739$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005740RESIZER_CMT=
5741
Theodore Ts'oe1052142006-10-21 21:46:47 -04005742fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005743
Theodore Ts'oe1052142006-10-21 21:46:47 -04005744
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005745# Check whether --enable-defrag was given.
5746if test "${enable_defrag+set}" = set; then :
5747 enableval=$enable_defrag; if test "$enableval" = "no"
5748then
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5750$as_echo "Disabling e4defrag support" >&6; }
5751 DEFRAG_CMT="#"
5752else
5753 DEFRAG_CMT=
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5755$as_echo "Enabling e4defrag support" >&6; }
5756fi
5757
5758else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005759 if test -z "$WITH_DIET_LIBC"
5760then
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005762$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005763 DEFRAG_CMT=
5764else
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5766$as_echo "Disabling e4defrag support by default" >&6; }
5767 DEFRAG_CMT="#"
5768fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005769
5770fi
5771
5772
Theodore Ts'oe1052142006-10-21 21:46:47 -04005773# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005774if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005775 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005776then
5777 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005779$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005780else
5781 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005783$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005784fi
5785
5786else
5787 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005788 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005789 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005791$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005792 ;;
5793 *)
5794 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005796$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005797esac
5798
Theodore Ts'oe1052142006-10-21 21:46:47 -04005799fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005800
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005801
Theodore Ts'oe1052142006-10-21 21:46:47 -04005802
5803# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005804if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005805 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005806then
5807 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005809$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005810else
5811 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005813$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005814fi
5815
5816else
5817 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005819$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005820
Theodore Ts'oe1052142006-10-21 21:46:47 -04005821fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005822
5823
Theodore Ts'oe1052142006-10-21 21:46:47 -04005824
Theodore Ts'o32493942007-12-31 10:45:01 -05005825# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005826if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005827 enableval=$enable_tls; if test "$enableval" = "no"
5828then
5829 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005831$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005832else
5833 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005835$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005836fi
5837
5838else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005839 if test -n "$WITH_DIET_LIBC"
5840then
5841 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005842 { $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 +01005843$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005844else
5845 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005847$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005848fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005849
5850fi
5851
5852if test "$try_tls" = "yes"
5853then
5854
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005856$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005857 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005858 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005859else
5860
5861 ax_tls_keywords="__thread __declspec(thread) none"
5862 for ax_tls_keyword in $ax_tls_keywords; do
5863 case $ax_tls_keyword in
5864 none) ac_cv_tls=none ; break ;;
5865 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005867/* end confdefs.h. */
5868#include <stdlib.h>
5869 static void
5870 foo(void) {
5871 static $ax_tls_keyword int bar;
5872 exit(1);
5873 }
5874int
5875main ()
5876{
5877
5878 ;
5879 return 0;
5880}
5881_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005882if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005883 ac_cv_tls=$ax_tls_keyword ; break
5884else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005885 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005886
5887fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005888rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5889 esac
5890 done
5891
5892fi
5893
5894
5895 if test "$ac_cv_tls" != "none"; then
5896
5897cat >>confdefs.h <<_ACEOF
5898#define TLS $ac_cv_tls
5899_ACEOF
5900
5901 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005903$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005904
5905fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005906
Theodore Ts'o5610f992007-12-31 11:16:56 -05005907# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005908if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005909 enableval=$enable_uuidd; if test "$enableval" = "no"
5910then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005912$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005913 UUIDD_CMT="#"
5914else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005915 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005916
5917 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005919$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005920fi
5921
5922else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005923 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005924
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005925if test -z "$UUID_CMT"
5926then
5927 UUIDD_CMT=""
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005929$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005930else
5931 UUIDD_CMT="#"
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5933$as_echo "Disabling uuidd by default" >&6; }
5934fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005935
5936fi
5937
5938
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005939
5940# Check whether --enable-mmp was given.
5941if test "${enable_mmp+set}" = set; then :
5942 enableval=$enable_mmp; if test "$enableval" = "no"
5943then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5945$as_echo "Disabling mmp support" >&6; }
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5948$as_echo "Enabling mmp support" >&6; }
5949 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5950
5951fi
5952
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5955$as_echo "Enabling mmp support by default" >&6; }
5956$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5957
5958
5959fi
5960
Tony Breeds1625bf42012-07-30 14:44:12 -04005961
Theodore Ts'o749f0712016-05-29 20:48:54 -04005962# Check whether --enable-tdb was given.
5963if test "${enable_tdb+set}" = set; then :
5964 enableval=$enable_tdb; if test "$enableval" = "no"
5965then
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5967$as_echo "Disabling tdb support" >&6; }
5968 TDB_CMT="#"
5969 TDB_MAN_COMMENT='.\"'
5970else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5972$as_echo "Enabling tdb support" >&6; }
5973 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5974
5975 TDB_CMT=""
5976 TDB_MAN_COMMENT=""
5977fi
5978
5979else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5981$as_echo "Enabling mmp support by default" >&6; }
5982$as_echo "#define CONFIG_TDB 1" >>confdefs.h
5983
5984TDB_CMT=""
5985TDB_MAN_COMMENT=""
5986
5987fi
5988
5989
5990
5991
Tony Breeds1625bf42012-07-30 14:44:12 -04005992# Check whether --enable-bmap-stats was given.
5993if test "${enable_bmap_stats+set}" = set; then :
5994 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5995then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5997$as_echo "Disabling bitmap statistics support" >&6; }
5998else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6000$as_echo "Enabling bitmap statistics support" >&6; }
6001 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6002
6003fi
6004
6005else
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6007$as_echo "Enabling bitmap statistics support by default" >&6; }
6008$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6009
6010
6011fi
6012
6013
6014# Check whether --enable-bmap-stats-ops was given.
6015if test "${enable_bmap_stats_ops+set}" = set; then :
6016 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6017then
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6019$as_echo "Disabling additional bitmap statistics" >&6; }
6020else
6021 if test "x${enable_bmap_stats}" = "xno"; then :
6022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6023$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6024as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6025See \`config.log' for more details" "$LINENO" 5; }
6026fi
6027
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6029$as_echo "Enabling additional bitmap statistics" >&6; }
6030 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6031
6032fi
6033
6034else
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6036$as_echo "Disabling additional bitmap statistics by default" >&6; }
6037
6038fi
6039
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006040MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6041
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006042GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006043PACKAGE=e2fsprogs
6044VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006045VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006046
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006047cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006048#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006050
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006051
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006053#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006055
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006056
6057
6058
6059
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006061$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6062set x ${MAKE-make}
6063ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006064if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006065 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006066else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006067 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006068SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006069all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006070 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006071_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006072# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006073case `${MAKE-make} -f conftest.make 2>/dev/null` in
6074 *@@@%%%=?*=@@@%%%*)
6075 eval ac_cv_prog_make_${ac_make}_set=yes;;
6076 *)
6077 eval ac_cv_prog_make_${ac_make}_set=no;;
6078esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006080fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006081if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006083$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006084 SET_MAKE=
6085else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006087$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006088 SET_MAKE="MAKE=${MAKE-make}"
6089fi
6090
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006091# Find a good install program. We prefer a C program (faster),
6092# so one script is as good as another. But avoid the broken or
6093# incompatible versions:
6094# SysV /etc/install, /usr/sbin/install
6095# SunOS /usr/etc/install
6096# IRIX /sbin/install
6097# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006099# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6100# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6101# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006103# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006104# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006106$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006107if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006108if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006109 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006110else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6112for as_dir in $PATH
6113do
6114 IFS=$as_save_IFS
6115 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006116 # Account for people who put trailing slashes in PATH elements.
6117case $as_dir/ in #((
6118 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006119 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006120 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006121 /usr/ucb/* ) ;;
6122 *)
6123 # OSF1 and SCO ODT 3.0 have their own names for install.
6124 # Don't use installbsd from OSF since it installs stuff as root
6125 # by default.
6126 for ac_prog in ginstall scoinst install; do
6127 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006128 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006129 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006130 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006131 # AIX install. It has an incompatible calling convention.
6132 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006133 elif test $ac_prog = install &&
6134 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6135 # program-specific install script used by HP pwplus--don't use.
6136 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006137 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006138 rm -rf conftest.one conftest.two conftest.dir
6139 echo one > conftest.one
6140 echo two > conftest.two
6141 mkdir conftest.dir
6142 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6143 test -s conftest.one && test -s conftest.two &&
6144 test -s conftest.dir/conftest.one &&
6145 test -s conftest.dir/conftest.two
6146 then
6147 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6148 break 3
6149 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006150 fi
6151 fi
6152 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153 done
6154 ;;
6155esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006156
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006157 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006158IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006159
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006160rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006161
6162fi
6163 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006164 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006165 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006166 # As a last resort, use the slow shell script. Don't cache a
6167 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006168 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006169 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006170 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006171 fi
6172fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006174$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006175
6176# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6177# It thinks the first close brace ends the variable substitution.
6178test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006180test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006181
6182test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6183
Theodore Ts'o93613952014-07-03 23:44:13 -04006184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6185$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6186if test -z "$MKDIR_P"; then
6187 if ${ac_cv_path_mkdir+:} false; then :
6188 $as_echo_n "(cached) " >&6
6189else
6190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6191for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6192do
6193 IFS=$as_save_IFS
6194 test -z "$as_dir" && as_dir=.
6195 for ac_prog in mkdir gmkdir; do
6196 for ac_exec_ext in '' $ac_executable_extensions; do
6197 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6198 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6199 'mkdir (GNU coreutils) '* | \
6200 'mkdir (coreutils) '* | \
6201 'mkdir (fileutils) '4.1*)
6202 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6203 break 3;;
6204 esac
6205 done
6206 done
6207 done
6208IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006209
Theodore Ts'o93613952014-07-03 23:44:13 -04006210fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006211
Theodore Ts'o93613952014-07-03 23:44:13 -04006212 test -d ./--version && rmdir ./--version
6213 if test "${ac_cv_path_mkdir+set}" = set; then
6214 MKDIR_P="$ac_cv_path_mkdir -p"
6215 else
6216 # As a last resort, use the slow shell script. Don't cache a
6217 # value for MKDIR_P within a source directory, because that will
6218 # break other packages using the cache if that directory is
6219 # removed, or if the value is a relative name.
6220 MKDIR_P="$ac_install_sh -d"
6221 fi
6222fi
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6224$as_echo "$MKDIR_P" >&6; }
6225
6226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6227$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6228if ${ac_cv_path_SED+:} false; then :
6229 $as_echo_n "(cached) " >&6
6230else
6231 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6232 for ac_i in 1 2 3 4 5 6 7; do
6233 ac_script="$ac_script$as_nl$ac_script"
6234 done
6235 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6236 { ac_script=; unset ac_script;}
6237 if test -z "$SED"; then
6238 ac_path_SED_found=false
6239 # Loop through the user's path and test for each of PROGNAME-LIST
6240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6241for as_dir in $PATH
6242do
6243 IFS=$as_save_IFS
6244 test -z "$as_dir" && as_dir=.
6245 for ac_prog in sed gsed; do
6246 for ac_exec_ext in '' $ac_executable_extensions; do
6247 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6248 as_fn_executable_p "$ac_path_SED" || continue
6249# Check for GNU ac_path_SED and select it if it is found.
6250 # Check for GNU $ac_path_SED
6251case `"$ac_path_SED" --version 2>&1` in
6252*GNU*)
6253 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6254*)
6255 ac_count=0
6256 $as_echo_n 0123456789 >"conftest.in"
6257 while :
6258 do
6259 cat "conftest.in" "conftest.in" >"conftest.tmp"
6260 mv "conftest.tmp" "conftest.in"
6261 cp "conftest.in" "conftest.nl"
6262 $as_echo '' >> "conftest.nl"
6263 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6265 as_fn_arith $ac_count + 1 && ac_count=$as_val
6266 if test $ac_count -gt ${ac_path_SED_max-0}; then
6267 # Best one so far, save it but keep looking for a better one
6268 ac_cv_path_SED="$ac_path_SED"
6269 ac_path_SED_max=$ac_count
6270 fi
6271 # 10*(2^10) chars as input seems more than enough
6272 test $ac_count -gt 10 && break
6273 done
6274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6275esac
6276
6277 $ac_path_SED_found && break 3
6278 done
6279 done
6280 done
6281IFS=$as_save_IFS
6282 if test -z "$ac_cv_path_SED"; then
6283 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6284 fi
6285else
6286 ac_cv_path_SED=$SED
6287fi
6288
6289fi
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6291$as_echo "$ac_cv_path_SED" >&6; }
6292 SED="$ac_cv_path_SED"
6293 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006294
6295
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006297$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006298 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006299if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006300 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006301else
6302 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006303fi
6304
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006306$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006307
6308
6309
6310
Theodore Ts'o93613952014-07-03 23:44:13 -04006311 GETTEXT_MACRO_VERSION=0.18
6312
6313
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006314
6315
6316# Prepare PATH_SEPARATOR.
6317# The user is always right.
6318if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006319 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6320 # contains only /bin. Note that ksh looks also at the FPATH variable,
6321 # so we have to set that as well for the test.
6322 PATH_SEPARATOR=:
6323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6324 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6325 || PATH_SEPARATOR=';'
6326 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006327fi
6328
6329# Find out how to test for executable files. Don't use a zero-byte file,
6330# as systems may use methods other than mode bits to determine executability.
6331cat >conf$$.file <<_ASEOF
6332#! /bin/sh
6333exit 0
6334_ASEOF
6335chmod +x conf$$.file
6336if test -x conf$$.file >/dev/null 2>&1; then
6337 ac_executable_p="test -x"
6338else
6339 ac_executable_p="test -f"
6340fi
6341rm -f conf$$.file
6342
6343# Extract the first word of "msgfmt", so it can be a program name with args.
6344set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006346$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006347if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006348 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006349else
6350 case "$MSGFMT" in
6351 [\\/]* | ?:[\\/]*)
6352 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6353 ;;
6354 *)
6355 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6356 for ac_dir in $PATH; do
6357 IFS="$ac_save_IFS"
6358 test -z "$ac_dir" && ac_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006361 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6362 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006363 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6364 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6365 break 2
6366 fi
6367 fi
6368 done
6369 done
6370 IFS="$ac_save_IFS"
6371 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6372 ;;
6373esac
6374fi
6375MSGFMT="$ac_cv_path_MSGFMT"
6376if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006378$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006379else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006381$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006382fi
6383
6384 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6385set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006387$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006388if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006389 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006390else
6391 case $GMSGFMT in
6392 [\\/]* | ?:[\\/]*)
6393 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6394 ;;
6395 *)
6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6397for as_dir in $PATH
6398do
6399 IFS=$as_save_IFS
6400 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006401 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006403 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006405 break 2
6406 fi
6407done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006408 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006409IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006410
6411 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6412 ;;
6413esac
6414fi
6415GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006416if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006418$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006421$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006422fi
6423
6424
6425
Theodore Ts'o93613952014-07-03 23:44:13 -04006426 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6427 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6428 *) MSGFMT_015=$MSGFMT ;;
6429 esac
6430
6431 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6432 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6433 *) GMSGFMT_015=$GMSGFMT ;;
6434 esac
6435
6436
Theodore Ts'oe1052142006-10-21 21:46:47 -04006437
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006438# Prepare PATH_SEPARATOR.
6439# The user is always right.
6440if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006441 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6442 # contains only /bin. Note that ksh looks also at the FPATH variable,
6443 # so we have to set that as well for the test.
6444 PATH_SEPARATOR=:
6445 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6446 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6447 || PATH_SEPARATOR=';'
6448 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006449fi
6450
6451# Find out how to test for executable files. Don't use a zero-byte file,
6452# as systems may use methods other than mode bits to determine executability.
6453cat >conf$$.file <<_ASEOF
6454#! /bin/sh
6455exit 0
6456_ASEOF
6457chmod +x conf$$.file
6458if test -x conf$$.file >/dev/null 2>&1; then
6459 ac_executable_p="test -x"
6460else
6461 ac_executable_p="test -f"
6462fi
6463rm -f conf$$.file
6464
6465# Extract the first word of "xgettext", so it can be a program name with args.
6466set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006468$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006469if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006470 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006471else
6472 case "$XGETTEXT" in
6473 [\\/]* | ?:[\\/]*)
6474 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6475 ;;
6476 *)
6477 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6478 for ac_dir in $PATH; do
6479 IFS="$ac_save_IFS"
6480 test -z "$ac_dir" && ac_dir=.
6481 for ac_exec_ext in '' $ac_executable_extensions; do
6482 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006483 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6484 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 -05006485 (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
6486 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6487 break 2
6488 fi
6489 fi
6490 done
6491 done
6492 IFS="$ac_save_IFS"
6493 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6494 ;;
6495esac
6496fi
6497XGETTEXT="$ac_cv_path_XGETTEXT"
6498if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006500$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006501else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006503$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006504fi
6505
6506 rm -f messages.po
6507
Theodore Ts'o93613952014-07-03 23:44:13 -04006508 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6509 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6510 *) XGETTEXT_015=$XGETTEXT ;;
6511 esac
6512
6513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006514
6515# Prepare PATH_SEPARATOR.
6516# The user is always right.
6517if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006518 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6519 # contains only /bin. Note that ksh looks also at the FPATH variable,
6520 # so we have to set that as well for the test.
6521 PATH_SEPARATOR=:
6522 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6523 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6524 || PATH_SEPARATOR=';'
6525 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006526fi
6527
6528# Find out how to test for executable files. Don't use a zero-byte file,
6529# as systems may use methods other than mode bits to determine executability.
6530cat >conf$$.file <<_ASEOF
6531#! /bin/sh
6532exit 0
6533_ASEOF
6534chmod +x conf$$.file
6535if test -x conf$$.file >/dev/null 2>&1; then
6536 ac_executable_p="test -x"
6537else
6538 ac_executable_p="test -f"
6539fi
6540rm -f conf$$.file
6541
6542# Extract the first word of "msgmerge", so it can be a program name with args.
6543set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006544{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006545$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006546if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006547 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006548else
6549 case "$MSGMERGE" in
6550 [\\/]* | ?:[\\/]*)
6551 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6552 ;;
6553 *)
6554 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6555 for ac_dir in $PATH; do
6556 IFS="$ac_save_IFS"
6557 test -z "$ac_dir" && ac_dir=.
6558 for ac_exec_ext in '' $ac_executable_extensions; do
6559 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006560 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6561 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6563 break 2
6564 fi
6565 fi
6566 done
6567 done
6568 IFS="$ac_save_IFS"
6569 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6570 ;;
6571esac
6572fi
6573MSGMERGE="$ac_cv_path_MSGMERGE"
6574if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006576$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006577else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006579$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006580fi
6581
6582
Theodore Ts'o93613952014-07-03 23:44:13 -04006583 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006585
Theodore Ts'o93613952014-07-03 23:44:13 -04006586 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6587
6588
6589 ac_config_commands="$ac_config_commands po-directories"
6590
6591
6592
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6594$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6595if ${ac_cv_gnu_library_2+:} false; then :
6596 $as_echo_n "(cached) " >&6
6597else
6598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599/* end confdefs.h. */
6600
6601#include <features.h>
6602#ifdef __GNU_LIBRARY__
6603 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6604 Lucky GNU user
6605 #endif
6606#endif
6607
6608_ACEOF
6609if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6610 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6611 ac_cv_gnu_library_2=yes
6612else
6613 ac_cv_gnu_library_2=no
6614fi
6615rm -f conftest*
6616
6617
6618
6619fi
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6621$as_echo "$ac_cv_gnu_library_2" >&6; }
6622
6623 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006624
6625
6626if test -n "$ac_tool_prefix"; then
6627 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6628set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006630$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006631if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006632 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006633else
6634 if test -n "$RANLIB"; then
6635 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6636else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6638for as_dir in $PATH
6639do
6640 IFS=$as_save_IFS
6641 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006642 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646 break 2
6647 fi
6648done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006649 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006650IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006651
6652fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006653fi
6654RANLIB=$ac_cv_prog_RANLIB
6655if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006657$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006658else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006660$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006661fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006662
Theodore Ts'oe1052142006-10-21 21:46:47 -04006663
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664fi
6665if test -z "$ac_cv_prog_RANLIB"; then
6666 ac_ct_RANLIB=$RANLIB
6667 # Extract the first word of "ranlib", so it can be a program name with args.
6668set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006670$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006671if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006672 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673else
6674 if test -n "$ac_ct_RANLIB"; then
6675 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6676else
6677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6678for as_dir in $PATH
6679do
6680 IFS=$as_save_IFS
6681 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006682 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006686 break 2
6687 fi
6688done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006689 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006690IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006692fi
6693fi
6694ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6695if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006697$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006698else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006700$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006701fi
6702
Theodore Ts'oe1052142006-10-21 21:46:47 -04006703 if test "x$ac_ct_RANLIB" = x; then
6704 RANLIB=":"
6705 else
6706 case $cross_compiling:$ac_tool_warned in
6707yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006708{ $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 +01006709$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006710ac_tool_warned=yes ;;
6711esac
6712 RANLIB=$ac_ct_RANLIB
6713 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006714else
6715 RANLIB="$ac_cv_prog_RANLIB"
6716fi
6717
6718
Theodore Ts'o93613952014-07-03 23:44:13 -04006719
6720 CFLAG_VISIBILITY=
6721 HAVE_VISIBILITY=0
6722 if test -n "$GCC"; then
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6724$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6725 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006726 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727else
Theodore Ts'o93613952014-07-03 23:44:13 -04006728
6729 gl_save_CFLAGS="$CFLAGS"
6730 CFLAGS="$CFLAGS -Werror"
6731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732/* end confdefs.h. */
6733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734int
6735main ()
6736{
Theodore Ts'o93613952014-07-03 23:44:13 -04006737
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006738 ;
6739 return 0;
6740}
6741_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006742if ac_fn_c_try_compile "$LINENO"; then :
6743 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006744else
Theodore Ts'o93613952014-07-03 23:44:13 -04006745 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006746fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006749fi
6750
Theodore Ts'o93613952014-07-03 23:44:13 -04006751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6752$as_echo "$gl_cv_cc_vis_werror" >&6; }
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6754$as_echo_n "checking for simple visibility declarations... " >&6; }
6755 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006756 $as_echo_n "(cached) " >&6
6757else
Theodore Ts'o93613952014-07-03 23:44:13 -04006758
6759 gl_save_CFLAGS="$CFLAGS"
6760 CFLAGS="$CFLAGS -fvisibility=hidden"
6761 if test $gl_cv_cc_vis_werror = yes; then
6762 CFLAGS="$CFLAGS -Werror"
6763 fi
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765/* end confdefs.h. */
6766extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6767 extern __attribute__((__visibility__("default"))) int exportedvar;
6768 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6769 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6770 void dummyfunc (void) {}
6771
6772int
6773main ()
6774{
6775
6776 ;
6777 return 0;
6778}
6779_ACEOF
6780if ac_fn_c_try_compile "$LINENO"; then :
6781 gl_cv_cc_visibility=yes
6782else
6783 gl_cv_cc_visibility=no
6784fi
6785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 CFLAGS="$gl_save_CFLAGS"
6787fi
6788
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6790$as_echo "$gl_cv_cc_visibility" >&6; }
6791 if test $gl_cv_cc_visibility = yes; then
6792 CFLAG_VISIBILITY="-fvisibility=hidden"
6793 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006794 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006795 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006796
6797
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006798
Theodore Ts'o93613952014-07-03 23:44:13 -04006799cat >>confdefs.h <<_ACEOF
6800#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006801_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006802
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006803
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006805$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006806if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006807 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006808else
6809 ac_cv_c_inline=no
6810for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812/* end confdefs.h. */
6813#ifndef __cplusplus
6814typedef int foo_t;
6815static $ac_kw foo_t static_foo () {return 0; }
6816$ac_kw foo_t foo () {return 0; }
6817#endif
6818
6819_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006820if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006821 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6824 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825done
6826
6827fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006829$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006832 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833 *)
6834 case $ac_cv_c_inline in
6835 no) ac_val=;;
6836 *) ac_val=$ac_cv_c_inline;;
6837 esac
6838 cat >>confdefs.h <<_ACEOF
6839#ifndef __cplusplus
6840#define inline $ac_val
6841#endif
6842_ACEOF
6843 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006844esac
6845
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006846ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006847if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849else
6850
6851cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006852#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853_ACEOF
6854
6855fi
6856
6857
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006859$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006860if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006861 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864/* end confdefs.h. */
6865#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006866 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006867int
6868main ()
6869{
Theodore Ts'o93613952014-07-03 23:44:13 -04006870uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006871 ;
6872 return 0;
6873}
6874_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006875if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006876 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006877else
Theodore Ts'o93613952014-07-03 23:44:13 -04006878 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006879fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6883$as_echo "$gl_cv_header_stdint_h" >&6; }
6884 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006885
6886cat >>confdefs.h <<_ACEOF
6887#define HAVE_STDINT_H_WITH_UINTMAX 1
6888_ACEOF
6889
6890 fi
6891
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006892# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6893# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006895$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006896if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006897 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006898else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006901#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902int
6903main ()
6904{
6905char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006906 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006907 ;
6908 return 0;
6909}
6910_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006911if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006912 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006913else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006914 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006916rm -f core conftest.err conftest.$ac_objext \
6917 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006919{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006920$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006921if test $ac_cv_working_alloca_h = yes; then
6922
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006923$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006924
6925fi
6926
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006928$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006929if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006930 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006931else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006933/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006934#ifdef __GNUC__
6935# define alloca __builtin_alloca
6936#else
6937# ifdef _MSC_VER
6938# include <malloc.h>
6939# define alloca _alloca
6940# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006941# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006942# include <alloca.h>
6943# else
6944# ifdef _AIX
6945 #pragma alloca
6946# else
6947# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006948void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006949# endif
6950# endif
6951# endif
6952# endif
6953#endif
6954
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006955int
6956main ()
6957{
6958char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006959 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006960 ;
6961 return 0;
6962}
6963_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006964if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006965 ac_cv_func_alloca_works=yes
6966else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006967 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006969rm -f core conftest.err conftest.$ac_objext \
6970 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006973$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006974
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006975if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006977$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006978
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006979else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006980 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6981# that cause trouble. Some versions do not even contain alloca or
6982# contain a buggy version. If you still want to use their alloca,
6983# use ar to extract alloca.o from them instead of compiling alloca.c.
6984
Theodore Ts'oe1052142006-10-21 21:46:47 -04006985ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006987$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006988
6989
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006991$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006992if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006993 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006994else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006996/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006997#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006998webecray
6999#else
7000wenotbecray
7001#endif
7002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007004if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007005 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006 ac_cv_os_cray=yes
7007else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007008 ac_cv_os_cray=no
7009fi
7010rm -f conftest*
7011
7012fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007014$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007015if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007016 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007018ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007019if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007020
7021cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007022#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007024
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007025 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007026fi
7027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007028 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007029fi
7030
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007032$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007033if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007034 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007035else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007036 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007037 ac_cv_c_stack_direction=0
7038else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007041$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007042int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007043find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007044{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007045 int dir, dummy = 0;
7046 if (! addr)
7047 addr = &dummy;
7048 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7049 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7050 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007051}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052
7053int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007054main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007055{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007056 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007058_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007059if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007060 ac_cv_c_stack_direction=1
7061else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007062 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007063fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007064rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7065 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007066fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007070$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007071cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007072#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007073_ACEOF
7074
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007075
7076fi
7077
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007078
7079
7080
7081 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007082do :
7083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007084ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7085"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007086if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007087 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007088#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089_ACEOF
7090
7091fi
7092
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007093done
7094
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007095
7096
7097
7098
7099
7100
7101
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007102for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007103do :
7104 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007105if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007106 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007107#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007108_ACEOF
7109
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007110fi
7111done
7112
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007114$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007115if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007116 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007117else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007118 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007119 ac_cv_func_mmap_fixed_mapped=no
7120else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007122/* end confdefs.h. */
7123$ac_includes_default
7124/* malloc might have been renamed as rpl_malloc. */
7125#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007126
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007127/* Thanks to Mike Haertel and Jim Avera for this test.
7128 Here is a matrix of mmap possibilities:
7129 mmap private not fixed
7130 mmap private fixed at somewhere currently unmapped
7131 mmap private fixed at somewhere already mapped
7132 mmap shared not fixed
7133 mmap shared fixed at somewhere currently unmapped
7134 mmap shared fixed at somewhere already mapped
7135 For private mappings, we should verify that changes cannot be read()
7136 back from the file, nor mmap's back from the file at a different
7137 address. (There have been systems where private was not correctly
7138 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007140 like early versions of FreeBSD and possibly contemporary NetBSD.)
7141 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007142 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007143
7144 Grep wants private fixed already mapped.
7145 The main things grep needs to know about mmap are:
7146 * does it exist and is it safe to write into the mmap'd area
7147 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007148
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007149#include <fcntl.h>
7150#include <sys/mman.h>
7151
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007152#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007153char *malloc ();
7154#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007155
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007156/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007157#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007158# ifdef _SC_PAGESIZE
7159# define getpagesize() sysconf(_SC_PAGESIZE)
7160# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007161# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007162# include <sys/param.h>
7163# ifdef EXEC_PAGESIZE
7164# define getpagesize() EXEC_PAGESIZE
7165# else /* no EXEC_PAGESIZE */
7166# ifdef NBPG
7167# define getpagesize() NBPG * CLSIZE
7168# ifndef CLSIZE
7169# define CLSIZE 1
7170# endif /* no CLSIZE */
7171# else /* no NBPG */
7172# ifdef NBPC
7173# define getpagesize() NBPC
7174# else /* no NBPC */
7175# ifdef PAGESIZE
7176# define getpagesize() PAGESIZE
7177# endif /* PAGESIZE */
7178# endif /* no NBPC */
7179# endif /* no NBPG */
7180# endif /* no EXEC_PAGESIZE */
7181# else /* no HAVE_SYS_PARAM_H */
7182# define getpagesize() 8192 /* punt totally */
7183# endif /* no HAVE_SYS_PARAM_H */
7184# endif /* no _SC_PAGESIZE */
7185
7186#endif /* no HAVE_GETPAGESIZE */
7187
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007188int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007189main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007190{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007192 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007193 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007194 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007195
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007197
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007198 /* First, make a file with some known garbage in it. */
7199 data = (char *) malloc (pagesize);
7200 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007201 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007202 for (i = 0; i < pagesize; ++i)
7203 *(data + i) = rand ();
7204 umask (0);
7205 fd = creat ("conftest.mmap", 0600);
7206 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007207 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007208 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007209 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007210 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007211
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007212 /* Next, check that the tail of a page is zero-filled. File must have
7213 non-zero length, otherwise we risk SIGBUS for entire page. */
7214 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7215 if (fd2 < 0)
7216 return 4;
7217 cdata2 = "";
7218 if (write (fd2, cdata2, 1) != 1)
7219 return 5;
7220 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7221 if (data2 == MAP_FAILED)
7222 return 6;
7223 for (i = 0; i < pagesize; ++i)
7224 if (*(data2 + i))
7225 return 7;
7226 close (fd2);
7227 if (munmap (data2, pagesize))
7228 return 8;
7229
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007230 /* Next, try to mmap the file at a fixed address which already has
7231 something else allocated at it. If we can, also make sure that
7232 we see the same garbage. */
7233 fd = open ("conftest.mmap", O_RDWR);
7234 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007235 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7237 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007238 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239 for (i = 0; i < pagesize; ++i)
7240 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007241 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007243 /* Finally, make sure that changes to the mapped area do not
7244 percolate back to the file as seen by read(). (This is a bug on
7245 some variants of i386 svr4.0.) */
7246 for (i = 0; i < pagesize; ++i)
7247 *(data2 + i) = *(data2 + i) + 1;
7248 data3 = (char *) malloc (pagesize);
7249 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007250 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007251 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007252 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007253 for (i = 0; i < pagesize; ++i)
7254 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007255 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007256 close (fd);
Dmitry V. Levind7de3f32017-05-18 17:46:49 +00007257 free (data);
7258 free (data3);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007259 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007260}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007262if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007263 ac_cv_func_mmap_fixed_mapped=yes
7264else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007265 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007266fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007267rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7268 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007271fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007273$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007274if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007275
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007276$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007277
7278fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007279rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007280
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007281
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007282
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007284$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007285if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007286 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007287else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007288
Theodore Ts'o93613952014-07-03 23:44:13 -04007289 gt_cv_int_divbyzero_sigfpe=
7290 case "$host_os" in
7291 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7292 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7293 # compiling. If we were to perform the real test, 1 Crash Report
7294 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007295 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007296 i[34567]86 | x86_64)
7297 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007298 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007299 ;;
7300 esac
7301 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7302 if test "$cross_compiling" = yes; then :
7303
7304 # Guess based on the CPU.
7305 case "$host_cpu" in
7306 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7307 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7308 *)
7309 gt_cv_int_divbyzero_sigfpe="guessing no";;
7310 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007311
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007312else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007314/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007315
7316#include <stdlib.h>
7317#include <signal.h>
7318
7319static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007320sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007321{
7322 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7323 exit (sig != SIGFPE);
7324}
7325
7326int x = 1;
7327int y = 0;
7328int z;
7329int nan;
7330
7331int main ()
7332{
7333 signal (SIGFPE, sigfpe_handler);
7334/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7335#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7336 signal (SIGTRAP, sigfpe_handler);
7337#endif
7338/* Linux/SPARC yields signal SIGILL. */
7339#if defined (__sparc__) && defined (__linux__)
7340 signal (SIGILL, sigfpe_handler);
7341#endif
7342
7343 z = x / y;
7344 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007345 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007346}
7347
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007349if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007350 gt_cv_int_divbyzero_sigfpe=yes
7351else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007352 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007353fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007354rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7355 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007356fi
7357
Theodore Ts'o93613952014-07-03 23:44:13 -04007358 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007359
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007360fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007362$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007363 case "$gt_cv_int_divbyzero_sigfpe" in
7364 *yes) value=1;;
7365 *) value=0;;
7366 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007367
7368cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007369#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007370_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007371
7372
7373
Theodore Ts'o93613952014-07-03 23:44:13 -04007374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7375$as_echo_n "checking for inttypes.h... " >&6; }
7376if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007377 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007378else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007380/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007381
7382#include <sys/types.h>
7383#include <inttypes.h>
7384
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007385int
7386main ()
7387{
Theodore Ts'o93613952014-07-03 23:44:13 -04007388uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007389 ;
7390 return 0;
7391}
7392_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007393if ac_fn_c_try_compile "$LINENO"; then :
7394 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007395else
Theodore Ts'o93613952014-07-03 23:44:13 -04007396 gl_cv_header_inttypes_h=no
7397fi
7398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7399fi
7400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7401$as_echo "$gl_cv_header_inttypes_h" >&6; }
7402 if test $gl_cv_header_inttypes_h = yes; then
7403
7404cat >>confdefs.h <<_ACEOF
7405#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7406_ACEOF
7407
7408 fi
7409
7410
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7412$as_echo_n "checking for unsigned long long int... " >&6; }
7413if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415else
7416 ac_cv_type_unsigned_long_long_int=yes
7417 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7419/* end confdefs.h. */
7420
7421 /* For now, do not test the preprocessor; as of 2007 there are too many
7422 implementations with broken preprocessors. Perhaps this can
7423 be revisited in 2012. In the meantime, code should not expect
7424 #if to work with literals wider than 32 bits. */
7425 /* Test literals. */
7426 long long int ll = 9223372036854775807ll;
7427 long long int nll = -9223372036854775807LL;
7428 unsigned long long int ull = 18446744073709551615ULL;
7429 /* Test constant expressions. */
7430 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7431 ? 1 : -1)];
7432 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7433 ? 1 : -1)];
7434 int i = 63;
7435int
7436main ()
7437{
7438/* Test availability of runtime routines for shift and division. */
7439 long long int llmax = 9223372036854775807ll;
7440 unsigned long long int ullmax = 18446744073709551615ull;
7441 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7442 | (llmax / ll) | (llmax % ll)
7443 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7444 | (ullmax / ull) | (ullmax % ull));
7445 ;
7446 return 0;
7447}
7448
7449_ACEOF
7450if ac_fn_c_try_link "$LINENO"; then :
7451
7452else
7453 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007454fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007455rm -f core conftest.err conftest.$ac_objext \
7456 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007457 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007458fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7460$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7461 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007462
Theodore Ts'o93613952014-07-03 23:44:13 -04007463$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464
7465 fi
7466
7467
7468
7469
Theodore Ts'o93613952014-07-03 23:44:13 -04007470 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007471
Theodore Ts'o93613952014-07-03 23:44:13 -04007472 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007473 && ac_type='unsigned long long' \
7474 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475
7476cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007477#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007478_ACEOF
7479
7480 else
7481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007482$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007483
7484 fi
7485
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007486
Theodore Ts'o93613952014-07-03 23:44:13 -04007487 for ac_header in inttypes.h
7488do :
7489 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7490if test "x$ac_cv_header_inttypes_h" = xyes; then :
7491 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007492#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007493_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007494
Theodore Ts'o93613952014-07-03 23:44:13 -04007495fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007496
Theodore Ts'o93613952014-07-03 23:44:13 -04007497done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007498
Theodore Ts'o93613952014-07-03 23:44:13 -04007499 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007500 { $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 +01007501$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007502if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007503 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007504else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007505
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007508
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007509#include <inttypes.h>
7510#ifdef PRId32
7511char *p = PRId32;
7512#endif
7513
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007514int
7515main ()
7516{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007517
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518 ;
7519 return 0;
7520}
7521_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007522if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007523 gt_cv_inttypes_pri_broken=no
7524else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007525 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007527rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007528
7529fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007531$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007532 fi
7533 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007534
7535cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007536#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007537_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007538
Theodore Ts'o93613952014-07-03 23:44:13 -04007539 PRI_MACROS_BROKEN=1
7540 else
7541 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542 fi
7543
7544
7545
Theodore Ts'o93613952014-07-03 23:44:13 -04007546
7547
7548
7549
7550 # Check whether --enable-threads was given.
7551if test "${enable_threads+set}" = set; then :
7552 enableval=$enable_threads; gl_use_threads=$enableval
7553else
7554 if test -n "$gl_use_threads_default"; then
7555 gl_use_threads="$gl_use_threads_default"
7556 else
7557 case "$host_os" in
7558 osf*) gl_use_threads=no ;;
7559 cygwin*)
7560 case `uname -r` in
7561 1.[0-5].*) gl_use_threads=no ;;
7562 *) gl_use_threads=yes ;;
7563 esac
7564 ;;
7565 *) gl_use_threads=yes ;;
7566 esac
7567 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568
7569fi
7570
Theodore Ts'o93613952014-07-03 23:44:13 -04007571 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7572 # For using <pthread.h>:
7573 case "$host_os" in
7574 osf*)
7575 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7576 # groks <pthread.h>. cc also understands the flag -pthread, but
7577 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7578 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7579 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7580 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7581 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7582 ;;
7583 esac
7584 # Some systems optimize for single-threaded programs by default, and
7585 # need special flags to disable these optimizations. For example, the
7586 # definition of 'errno' in <errno.h>.
7587 case "$host_os" in
7588 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7589 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7590 esac
7591 fi
7592
7593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007594
7595
7596
7597 if test "X$prefix" = "XNONE"; then
7598 acl_final_prefix="$ac_default_prefix"
7599 else
7600 acl_final_prefix="$prefix"
7601 fi
7602 if test "X$exec_prefix" = "XNONE"; then
7603 acl_final_exec_prefix='${prefix}'
7604 else
7605 acl_final_exec_prefix="$exec_prefix"
7606 fi
7607 acl_save_prefix="$prefix"
7608 prefix="$acl_final_prefix"
7609 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7610 prefix="$acl_save_prefix"
7611
7612
Theodore Ts'o93613952014-07-03 23:44:13 -04007613
Theodore Ts'oe1052142006-10-21 21:46:47 -04007614# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007615if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007616 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007617else
7618 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007619fi
7620
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007621# Prepare PATH_SEPARATOR.
7622# The user is always right.
7623if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007624 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7625 # contains only /bin. Note that ksh looks also at the FPATH variable,
7626 # so we have to set that as well for the test.
7627 PATH_SEPARATOR=:
7628 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7629 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7630 || PATH_SEPARATOR=';'
7631 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007632fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007633
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007634ac_prog=ld
7635if test "$GCC" = yes; then
7636 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7638$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007639 case $host in
7640 *-*-mingw*)
7641 # gcc leaves a trailing carriage return which upsets mingw
7642 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7643 *)
7644 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7645 esac
7646 case $ac_prog in
7647 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007648 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007649 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007650 # Canonicalize the pathname of ld
7651 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7652 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7653 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007654 done
7655 test -z "$LD" && LD="$ac_prog"
7656 ;;
7657 "")
7658 # If it fails, then pretend we aren't using GCC.
7659 ac_prog=ld
7660 ;;
7661 *)
7662 # If it is relative, then search for the first ld in PATH.
7663 with_gnu_ld=unknown
7664 ;;
7665 esac
7666elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007668$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007669else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007671$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007672fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007673if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007674 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007675else
7676 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007677 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007678 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007679 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007680 test -z "$ac_dir" && ac_dir=.
7681 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7682 acl_cv_path_LD="$ac_dir/$ac_prog"
7683 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007684 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007686 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007687 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007688 test "$with_gnu_ld" != no && break
7689 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007690 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007691 test "$with_gnu_ld" != yes && break
7692 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007693 esac
7694 fi
7695 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007696 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007697else
7698 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7699fi
7700fi
7701
7702LD="$acl_cv_path_LD"
7703if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007705$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007706else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007708$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007710test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007712$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007713if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007714 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007715else
Theodore Ts'o93613952014-07-03 23:44:13 -04007716 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007717case `$LD -v 2>&1 </dev/null` in
7718*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007719 acl_cv_prog_gnu_ld=yes
7720 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007721*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007722 acl_cv_prog_gnu_ld=no
7723 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007724esac
7725fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007727$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007728with_gnu_ld=$acl_cv_prog_gnu_ld
7729
7730
7731
Theodore Ts'o93613952014-07-03 23:44:13 -04007732
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007734$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007735if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007736 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007737else
7738
7739 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7740 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7741 . ./conftest.sh
7742 rm -f ./conftest.sh
7743 acl_cv_rpath=done
7744
7745fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007747$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007748 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007749 acl_libext="$acl_cv_libext"
7750 acl_shlibext="$acl_cv_shlibext"
7751 acl_libname_spec="$acl_cv_libname_spec"
7752 acl_library_names_spec="$acl_cv_library_names_spec"
7753 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7754 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7755 acl_hardcode_direct="$acl_cv_hardcode_direct"
7756 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007757 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007758if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007759 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007760else
7761 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007762fi
7763
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007764
7765
7766
Theodore Ts'o93613952014-07-03 23:44:13 -04007767 acl_libdirstem=lib
7768 acl_libdirstem2=
7769 case "$host_os" in
7770 solaris*)
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7772$as_echo_n "checking for 64-bit host... " >&6; }
7773if ${gl_cv_solaris_64bit+:} false; then :
7774 $as_echo_n "(cached) " >&6
7775else
7776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7777/* end confdefs.h. */
7778
7779#ifdef _LP64
7780sixtyfour bits
7781#endif
7782
7783_ACEOF
7784if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7785 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7786 gl_cv_solaris_64bit=yes
7787else
7788 gl_cv_solaris_64bit=no
7789fi
7790rm -f conftest*
7791
7792
7793fi
7794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7795$as_echo "$gl_cv_solaris_64bit" >&6; }
7796 if test $gl_cv_solaris_64bit = yes; then
7797 acl_libdirstem=lib/64
7798 case "$host_cpu" in
7799 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7800 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7801 esac
7802 fi
7803 ;;
7804 *)
7805 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7806 if test -n "$searchpath"; then
7807 acl_save_IFS="${IFS= }"; IFS=":"
7808 for searchdir in $searchpath; do
7809 if test -d "$searchdir"; then
7810 case "$searchdir" in
7811 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7812 */../ | */.. )
7813 # Better ignore directories of this form. They are misleading.
7814 ;;
7815 *) searchdir=`cd "$searchdir" && pwd`
7816 case "$searchdir" in
7817 */lib64 ) acl_libdirstem=lib64 ;;
7818 esac ;;
7819 esac
7820 fi
7821 done
7822 IFS="$acl_save_IFS"
7823 fi
7824 ;;
7825 esac
7826 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7827
7828
7829
7830 gl_threads_api=none
7831 LIBTHREAD=
7832 LTLIBTHREAD=
7833 LIBMULTITHREAD=
7834 LTLIBMULTITHREAD=
7835 if test "$gl_use_threads" != no; then
7836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7837$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7838if ${gl_cv_have_weak+:} false; then :
7839 $as_echo_n "(cached) " >&6
7840else
7841 gl_cv_have_weak=no
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h. */
7844extern void xyzzy ();
7845#pragma weak xyzzy
7846int
7847main ()
7848{
7849xyzzy();
7850 ;
7851 return 0;
7852}
7853_ACEOF
7854if ac_fn_c_try_link "$LINENO"; then :
7855 gl_cv_have_weak=maybe
7856fi
7857rm -f core conftest.err conftest.$ac_objext \
7858 conftest$ac_exeext conftest.$ac_ext
7859 if test $gl_cv_have_weak = maybe; then
7860 if test "$cross_compiling" = yes; then :
7861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7862/* end confdefs.h. */
7863#ifdef __ELF__
7864 Extensible Linking Format
7865 #endif
7866
7867_ACEOF
7868if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7869 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7870 gl_cv_have_weak="guessing yes"
7871else
7872 gl_cv_have_weak="guessing no"
7873fi
7874rm -f conftest*
7875
7876
7877else
7878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7879/* end confdefs.h. */
7880
7881#include <stdio.h>
7882#pragma weak fputs
7883int main ()
7884{
7885 return (fputs == NULL);
7886}
7887_ACEOF
7888if ac_fn_c_try_run "$LINENO"; then :
7889 gl_cv_have_weak=yes
7890else
7891 gl_cv_have_weak=no
7892fi
7893rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7894 conftest.$ac_objext conftest.beam conftest.$ac_ext
7895fi
7896
7897 fi
7898
7899fi
7900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7901$as_echo "$gl_cv_have_weak" >&6; }
7902 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7903 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7904 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7905 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7906if test "x$ac_cv_header_pthread_h" = xyes; then :
7907 gl_have_pthread_h=yes
7908else
7909 gl_have_pthread_h=no
7910fi
7911
7912
7913 if test "$gl_have_pthread_h" = yes; then
7914 # Other possible tests:
7915 # -lpthreads (FSU threads, PCthreads)
7916 # -lgthreads
7917 gl_have_pthread=
7918 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7919 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7920 # the second one only in libpthread, and lock.c needs it.
7921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7922/* end confdefs.h. */
7923#include <pthread.h>
7924int
7925main ()
7926{
7927pthread_mutex_lock((pthread_mutex_t*)0);
7928 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7929 ;
7930 return 0;
7931}
7932_ACEOF
7933if ac_fn_c_try_link "$LINENO"; then :
7934 gl_have_pthread=yes
7935fi
7936rm -f core conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7938 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7939 # since it is defined as a macro on OSF/1.)
7940 if test -n "$gl_have_pthread"; then
7941 # The program links fine without libpthread. But it may actually
7942 # need to link with libpthread in order to create multiple threads.
7943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7944$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7945if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7946 $as_echo_n "(cached) " >&6
7947else
7948 ac_check_lib_save_LIBS=$LIBS
7949LIBS="-lpthread $LIBS"
7950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7951/* end confdefs.h. */
7952
7953/* Override any GCC internal prototype to avoid an error.
7954 Use char because int might match the return type of a GCC
7955 builtin and then its argument prototype would still apply. */
7956#ifdef __cplusplus
7957extern "C"
7958#endif
7959char pthread_kill ();
7960int
7961main ()
7962{
7963return pthread_kill ();
7964 ;
7965 return 0;
7966}
7967_ACEOF
7968if ac_fn_c_try_link "$LINENO"; then :
7969 ac_cv_lib_pthread_pthread_kill=yes
7970else
7971 ac_cv_lib_pthread_pthread_kill=no
7972fi
7973rm -f core conftest.err conftest.$ac_objext \
7974 conftest$ac_exeext conftest.$ac_ext
7975LIBS=$ac_check_lib_save_LIBS
7976fi
7977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7978$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7979if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7980 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7981 # On Solaris and HP-UX, most pthread functions exist also in libc.
7982 # Therefore pthread_in_use() needs to actually try to create a
7983 # thread: pthread_create from libc will fail, whereas
7984 # pthread_create will actually create a thread.
7985 case "$host_os" in
7986 solaris* | hpux*)
7987
7988$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7989
7990 esac
7991
7992fi
7993
7994 else
7995 # Some library is needed. Try libpthread and libc_r.
7996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7997$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7998if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7999 $as_echo_n "(cached) " >&6
8000else
8001 ac_check_lib_save_LIBS=$LIBS
8002LIBS="-lpthread $LIBS"
8003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004/* end confdefs.h. */
8005
8006/* Override any GCC internal prototype to avoid an error.
8007 Use char because int might match the return type of a GCC
8008 builtin and then its argument prototype would still apply. */
8009#ifdef __cplusplus
8010extern "C"
8011#endif
8012char pthread_kill ();
8013int
8014main ()
8015{
8016return pthread_kill ();
8017 ;
8018 return 0;
8019}
8020_ACEOF
8021if ac_fn_c_try_link "$LINENO"; then :
8022 ac_cv_lib_pthread_pthread_kill=yes
8023else
8024 ac_cv_lib_pthread_pthread_kill=no
8025fi
8026rm -f core conftest.err conftest.$ac_objext \
8027 conftest$ac_exeext conftest.$ac_ext
8028LIBS=$ac_check_lib_save_LIBS
8029fi
8030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8031$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8032if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8033 gl_have_pthread=yes
8034 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8035 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8036fi
8037
8038 if test -z "$gl_have_pthread"; then
8039 # For FreeBSD 4.
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8041$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8042if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8043 $as_echo_n "(cached) " >&6
8044else
8045 ac_check_lib_save_LIBS=$LIBS
8046LIBS="-lc_r $LIBS"
8047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8048/* end confdefs.h. */
8049
8050/* Override any GCC internal prototype to avoid an error.
8051 Use char because int might match the return type of a GCC
8052 builtin and then its argument prototype would still apply. */
8053#ifdef __cplusplus
8054extern "C"
8055#endif
8056char pthread_kill ();
8057int
8058main ()
8059{
8060return pthread_kill ();
8061 ;
8062 return 0;
8063}
8064_ACEOF
8065if ac_fn_c_try_link "$LINENO"; then :
8066 ac_cv_lib_c_r_pthread_kill=yes
8067else
8068 ac_cv_lib_c_r_pthread_kill=no
8069fi
8070rm -f core conftest.err conftest.$ac_objext \
8071 conftest$ac_exeext conftest.$ac_ext
8072LIBS=$ac_check_lib_save_LIBS
8073fi
8074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8075$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8076if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8077 gl_have_pthread=yes
8078 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8079 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8080fi
8081
8082 fi
8083 fi
8084 if test -n "$gl_have_pthread"; then
8085 gl_threads_api=posix
8086
8087$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8088
8089 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8090 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8091
8092$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8093
8094 LIBTHREAD=
8095 LTLIBTHREAD=
8096 fi
8097 fi
8098 fi
8099 fi
8100 fi
8101 if test -z "$gl_have_pthread"; then
8102 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8103 gl_have_solaristhread=
8104 gl_save_LIBS="$LIBS"
8105 LIBS="$LIBS -lthread"
8106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8107/* end confdefs.h. */
8108
8109#include <thread.h>
8110#include <synch.h>
8111
8112int
8113main ()
8114{
8115thr_self();
8116 ;
8117 return 0;
8118}
8119_ACEOF
8120if ac_fn_c_try_link "$LINENO"; then :
8121 gl_have_solaristhread=yes
8122fi
8123rm -f core conftest.err conftest.$ac_objext \
8124 conftest$ac_exeext conftest.$ac_ext
8125 LIBS="$gl_save_LIBS"
8126 if test -n "$gl_have_solaristhread"; then
8127 gl_threads_api=solaris
8128 LIBTHREAD=-lthread
8129 LTLIBTHREAD=-lthread
8130 LIBMULTITHREAD="$LIBTHREAD"
8131 LTLIBMULTITHREAD="$LTLIBTHREAD"
8132
8133$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8134
8135 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8136
8137$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8138
8139 LIBTHREAD=
8140 LTLIBTHREAD=
8141 fi
8142 fi
8143 fi
8144 fi
8145 if test "$gl_use_threads" = pth; then
8146 gl_save_CPPFLAGS="$CPPFLAGS"
8147
8148
8149
8150
8151
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8153$as_echo_n "checking how to link with libpth... " >&6; }
8154if ${ac_cv_libpth_libs+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156else
8157
8158
8159
8160
8161
8162
8163
8164
8165 use_additional=yes
8166
8167 acl_save_prefix="$prefix"
8168 prefix="$acl_final_prefix"
8169 acl_save_exec_prefix="$exec_prefix"
8170 exec_prefix="$acl_final_exec_prefix"
8171
8172 eval additional_includedir=\"$includedir\"
8173 eval additional_libdir=\"$libdir\"
8174
8175 exec_prefix="$acl_save_exec_prefix"
8176 prefix="$acl_save_prefix"
8177
8178
8179# Check whether --with-libpth-prefix was given.
8180if test "${with_libpth_prefix+set}" = set; then :
8181 withval=$with_libpth_prefix;
8182 if test "X$withval" = "Xno"; then
8183 use_additional=no
8184 else
8185 if test "X$withval" = "X"; then
8186
8187 acl_save_prefix="$prefix"
8188 prefix="$acl_final_prefix"
8189 acl_save_exec_prefix="$exec_prefix"
8190 exec_prefix="$acl_final_exec_prefix"
8191
8192 eval additional_includedir=\"$includedir\"
8193 eval additional_libdir=\"$libdir\"
8194
8195 exec_prefix="$acl_save_exec_prefix"
8196 prefix="$acl_save_prefix"
8197
8198 else
8199 additional_includedir="$withval/include"
8200 additional_libdir="$withval/$acl_libdirstem"
8201 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8202 && ! test -d "$withval/$acl_libdirstem"; then
8203 additional_libdir="$withval/$acl_libdirstem2"
8204 fi
8205 fi
8206 fi
8207
8208fi
8209
8210 LIBPTH=
8211 LTLIBPTH=
8212 INCPTH=
8213 LIBPTH_PREFIX=
8214 HAVE_LIBPTH=
8215 rpathdirs=
8216 ltrpathdirs=
8217 names_already_handled=
8218 names_next_round='pth '
8219 while test -n "$names_next_round"; do
8220 names_this_round="$names_next_round"
8221 names_next_round=
8222 for name in $names_this_round; do
8223 already_handled=
8224 for n in $names_already_handled; do
8225 if test "$n" = "$name"; then
8226 already_handled=yes
8227 break
8228 fi
8229 done
8230 if test -z "$already_handled"; then
8231 names_already_handled="$names_already_handled $name"
8232 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8233 eval value=\"\$HAVE_LIB$uppername\"
8234 if test -n "$value"; then
8235 if test "$value" = yes; then
8236 eval value=\"\$LIB$uppername\"
8237 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8238 eval value=\"\$LTLIB$uppername\"
8239 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8240 else
8241 :
8242 fi
8243 else
8244 found_dir=
8245 found_la=
8246 found_so=
8247 found_a=
8248 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8249 if test -n "$acl_shlibext"; then
8250 shrext=".$acl_shlibext" # typically: shrext=.so
8251 else
8252 shrext=
8253 fi
8254 if test $use_additional = yes; then
8255 dir="$additional_libdir"
8256 if test -n "$acl_shlibext"; then
8257 if test -f "$dir/$libname$shrext"; then
8258 found_dir="$dir"
8259 found_so="$dir/$libname$shrext"
8260 else
8261 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8262 ver=`(cd "$dir" && \
8263 for f in "$libname$shrext".*; do echo "$f"; done \
8264 | sed -e "s,^$libname$shrext\\\\.,," \
8265 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8266 | sed 1q ) 2>/dev/null`
8267 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8268 found_dir="$dir"
8269 found_so="$dir/$libname$shrext.$ver"
8270 fi
8271 else
8272 eval library_names=\"$acl_library_names_spec\"
8273 for f in $library_names; do
8274 if test -f "$dir/$f"; then
8275 found_dir="$dir"
8276 found_so="$dir/$f"
8277 break
8278 fi
8279 done
8280 fi
8281 fi
8282 fi
8283 if test "X$found_dir" = "X"; then
8284 if test -f "$dir/$libname.$acl_libext"; then
8285 found_dir="$dir"
8286 found_a="$dir/$libname.$acl_libext"
8287 fi
8288 fi
8289 if test "X$found_dir" != "X"; then
8290 if test -f "$dir/$libname.la"; then
8291 found_la="$dir/$libname.la"
8292 fi
8293 fi
8294 fi
8295 if test "X$found_dir" = "X"; then
8296 for x in $LDFLAGS $LTLIBPTH; do
8297
8298 acl_save_prefix="$prefix"
8299 prefix="$acl_final_prefix"
8300 acl_save_exec_prefix="$exec_prefix"
8301 exec_prefix="$acl_final_exec_prefix"
8302 eval x=\"$x\"
8303 exec_prefix="$acl_save_exec_prefix"
8304 prefix="$acl_save_prefix"
8305
8306 case "$x" in
8307 -L*)
8308 dir=`echo "X$x" | sed -e 's/^X-L//'`
8309 if test -n "$acl_shlibext"; then
8310 if test -f "$dir/$libname$shrext"; then
8311 found_dir="$dir"
8312 found_so="$dir/$libname$shrext"
8313 else
8314 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8315 ver=`(cd "$dir" && \
8316 for f in "$libname$shrext".*; do echo "$f"; done \
8317 | sed -e "s,^$libname$shrext\\\\.,," \
8318 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8319 | sed 1q ) 2>/dev/null`
8320 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8321 found_dir="$dir"
8322 found_so="$dir/$libname$shrext.$ver"
8323 fi
8324 else
8325 eval library_names=\"$acl_library_names_spec\"
8326 for f in $library_names; do
8327 if test -f "$dir/$f"; then
8328 found_dir="$dir"
8329 found_so="$dir/$f"
8330 break
8331 fi
8332 done
8333 fi
8334 fi
8335 fi
8336 if test "X$found_dir" = "X"; then
8337 if test -f "$dir/$libname.$acl_libext"; then
8338 found_dir="$dir"
8339 found_a="$dir/$libname.$acl_libext"
8340 fi
8341 fi
8342 if test "X$found_dir" != "X"; then
8343 if test -f "$dir/$libname.la"; then
8344 found_la="$dir/$libname.la"
8345 fi
8346 fi
8347 ;;
8348 esac
8349 if test "X$found_dir" != "X"; then
8350 break
8351 fi
8352 done
8353 fi
8354 if test "X$found_dir" != "X"; then
8355 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8356 if test "X$found_so" != "X"; then
8357 if test "$enable_rpath" = no \
8358 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8359 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8360 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8361 else
8362 haveit=
8363 for x in $ltrpathdirs; do
8364 if test "X$x" = "X$found_dir"; then
8365 haveit=yes
8366 break
8367 fi
8368 done
8369 if test -z "$haveit"; then
8370 ltrpathdirs="$ltrpathdirs $found_dir"
8371 fi
8372 if test "$acl_hardcode_direct" = yes; then
8373 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8374 else
8375 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8376 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8377 haveit=
8378 for x in $rpathdirs; do
8379 if test "X$x" = "X$found_dir"; then
8380 haveit=yes
8381 break
8382 fi
8383 done
8384 if test -z "$haveit"; then
8385 rpathdirs="$rpathdirs $found_dir"
8386 fi
8387 else
8388 haveit=
8389 for x in $LDFLAGS $LIBPTH; do
8390
8391 acl_save_prefix="$prefix"
8392 prefix="$acl_final_prefix"
8393 acl_save_exec_prefix="$exec_prefix"
8394 exec_prefix="$acl_final_exec_prefix"
8395 eval x=\"$x\"
8396 exec_prefix="$acl_save_exec_prefix"
8397 prefix="$acl_save_prefix"
8398
8399 if test "X$x" = "X-L$found_dir"; then
8400 haveit=yes
8401 break
8402 fi
8403 done
8404 if test -z "$haveit"; then
8405 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8406 fi
8407 if test "$acl_hardcode_minus_L" != no; then
8408 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8409 else
8410 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8411 fi
8412 fi
8413 fi
8414 fi
8415 else
8416 if test "X$found_a" != "X"; then
8417 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8418 else
8419 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8420 fi
8421 fi
8422 additional_includedir=
8423 case "$found_dir" in
8424 */$acl_libdirstem | */$acl_libdirstem/)
8425 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8426 if test "$name" = 'pth'; then
8427 LIBPTH_PREFIX="$basedir"
8428 fi
8429 additional_includedir="$basedir/include"
8430 ;;
8431 */$acl_libdirstem2 | */$acl_libdirstem2/)
8432 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8433 if test "$name" = 'pth'; then
8434 LIBPTH_PREFIX="$basedir"
8435 fi
8436 additional_includedir="$basedir/include"
8437 ;;
8438 esac
8439 if test "X$additional_includedir" != "X"; then
8440 if test "X$additional_includedir" != "X/usr/include"; then
8441 haveit=
8442 if test "X$additional_includedir" = "X/usr/local/include"; then
8443 if test -n "$GCC"; then
8444 case $host_os in
8445 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8446 esac
8447 fi
8448 fi
8449 if test -z "$haveit"; then
8450 for x in $CPPFLAGS $INCPTH; do
8451
8452 acl_save_prefix="$prefix"
8453 prefix="$acl_final_prefix"
8454 acl_save_exec_prefix="$exec_prefix"
8455 exec_prefix="$acl_final_exec_prefix"
8456 eval x=\"$x\"
8457 exec_prefix="$acl_save_exec_prefix"
8458 prefix="$acl_save_prefix"
8459
8460 if test "X$x" = "X-I$additional_includedir"; then
8461 haveit=yes
8462 break
8463 fi
8464 done
8465 if test -z "$haveit"; then
8466 if test -d "$additional_includedir"; then
8467 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8468 fi
8469 fi
8470 fi
8471 fi
8472 fi
8473 if test -n "$found_la"; then
8474 save_libdir="$libdir"
8475 case "$found_la" in
8476 */* | *\\*) . "$found_la" ;;
8477 *) . "./$found_la" ;;
8478 esac
8479 libdir="$save_libdir"
8480 for dep in $dependency_libs; do
8481 case "$dep" in
8482 -L*)
8483 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8484 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8485 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8486 haveit=
8487 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8488 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8489 if test -n "$GCC"; then
8490 case $host_os in
8491 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8492 esac
8493 fi
8494 fi
8495 if test -z "$haveit"; then
8496 haveit=
8497 for x in $LDFLAGS $LIBPTH; do
8498
8499 acl_save_prefix="$prefix"
8500 prefix="$acl_final_prefix"
8501 acl_save_exec_prefix="$exec_prefix"
8502 exec_prefix="$acl_final_exec_prefix"
8503 eval x=\"$x\"
8504 exec_prefix="$acl_save_exec_prefix"
8505 prefix="$acl_save_prefix"
8506
8507 if test "X$x" = "X-L$additional_libdir"; then
8508 haveit=yes
8509 break
8510 fi
8511 done
8512 if test -z "$haveit"; then
8513 if test -d "$additional_libdir"; then
8514 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8515 fi
8516 fi
8517 haveit=
8518 for x in $LDFLAGS $LTLIBPTH; do
8519
8520 acl_save_prefix="$prefix"
8521 prefix="$acl_final_prefix"
8522 acl_save_exec_prefix="$exec_prefix"
8523 exec_prefix="$acl_final_exec_prefix"
8524 eval x=\"$x\"
8525 exec_prefix="$acl_save_exec_prefix"
8526 prefix="$acl_save_prefix"
8527
8528 if test "X$x" = "X-L$additional_libdir"; then
8529 haveit=yes
8530 break
8531 fi
8532 done
8533 if test -z "$haveit"; then
8534 if test -d "$additional_libdir"; then
8535 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8536 fi
8537 fi
8538 fi
8539 fi
8540 ;;
8541 -R*)
8542 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8543 if test "$enable_rpath" != no; then
8544 haveit=
8545 for x in $rpathdirs; do
8546 if test "X$x" = "X$dir"; then
8547 haveit=yes
8548 break
8549 fi
8550 done
8551 if test -z "$haveit"; then
8552 rpathdirs="$rpathdirs $dir"
8553 fi
8554 haveit=
8555 for x in $ltrpathdirs; do
8556 if test "X$x" = "X$dir"; then
8557 haveit=yes
8558 break
8559 fi
8560 done
8561 if test -z "$haveit"; then
8562 ltrpathdirs="$ltrpathdirs $dir"
8563 fi
8564 fi
8565 ;;
8566 -l*)
8567 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8568 ;;
8569 *.la)
8570 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8571 ;;
8572 *)
8573 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8574 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8575 ;;
8576 esac
8577 done
8578 fi
8579 else
8580 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8581 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8582 fi
8583 fi
8584 fi
8585 done
8586 done
8587 if test "X$rpathdirs" != "X"; then
8588 if test -n "$acl_hardcode_libdir_separator"; then
8589 alldirs=
8590 for found_dir in $rpathdirs; do
8591 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8592 done
8593 acl_save_libdir="$libdir"
8594 libdir="$alldirs"
8595 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8596 libdir="$acl_save_libdir"
8597 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8598 else
8599 for found_dir in $rpathdirs; do
8600 acl_save_libdir="$libdir"
8601 libdir="$found_dir"
8602 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8603 libdir="$acl_save_libdir"
8604 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8605 done
8606 fi
8607 fi
8608 if test "X$ltrpathdirs" != "X"; then
8609 for found_dir in $ltrpathdirs; do
8610 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8611 done
8612 fi
8613
8614
8615
8616
8617
8618
8619 ac_cv_libpth_libs="$LIBPTH"
8620 ac_cv_libpth_ltlibs="$LTLIBPTH"
8621 ac_cv_libpth_cppflags="$INCPTH"
8622 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8623
8624fi
8625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8626$as_echo "$ac_cv_libpth_libs" >&6; }
8627 LIBPTH="$ac_cv_libpth_libs"
8628 LTLIBPTH="$ac_cv_libpth_ltlibs"
8629 INCPTH="$ac_cv_libpth_cppflags"
8630 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8631
8632 for element in $INCPTH; do
8633 haveit=
8634 for x in $CPPFLAGS; do
8635
8636 acl_save_prefix="$prefix"
8637 prefix="$acl_final_prefix"
8638 acl_save_exec_prefix="$exec_prefix"
8639 exec_prefix="$acl_final_exec_prefix"
8640 eval x=\"$x\"
8641 exec_prefix="$acl_save_exec_prefix"
8642 prefix="$acl_save_prefix"
8643
8644 if test "X$x" = "X$element"; then
8645 haveit=yes
8646 break
8647 fi
8648 done
8649 if test -z "$haveit"; then
8650 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8651 fi
8652 done
8653
8654
8655
8656
8657 HAVE_LIBPTH=yes
8658
8659
8660
8661 gl_have_pth=
8662 gl_save_LIBS="$LIBS"
8663 LIBS="$LIBS $LIBPTH"
8664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8665/* end confdefs.h. */
8666#include <pth.h>
8667int
8668main ()
8669{
8670pth_self();
8671 ;
8672 return 0;
8673}
8674_ACEOF
8675if ac_fn_c_try_link "$LINENO"; then :
8676 gl_have_pth=yes
8677fi
8678rm -f core conftest.err conftest.$ac_objext \
8679 conftest$ac_exeext conftest.$ac_ext
8680 LIBS="$gl_save_LIBS"
8681 if test -n "$gl_have_pth"; then
8682 gl_threads_api=pth
8683 LIBTHREAD="$LIBPTH"
8684 LTLIBTHREAD="$LTLIBPTH"
8685 LIBMULTITHREAD="$LIBTHREAD"
8686 LTLIBMULTITHREAD="$LTLIBTHREAD"
8687
8688$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8689
8690 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8691 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8692
8693$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8694
8695 LIBTHREAD=
8696 LTLIBTHREAD=
8697 fi
8698 fi
8699 else
8700 CPPFLAGS="$gl_save_CPPFLAGS"
8701 fi
8702 fi
8703 if test -z "$gl_have_pthread"; then
8704 case "$gl_use_threads" in
8705 yes | windows | win32) # The 'win32' is for backward compatibility.
8706 if { case "$host_os" in
8707 mingw*) true;;
8708 *) false;;
8709 esac
8710 }; then
8711 gl_threads_api=windows
8712
8713$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8714
8715 fi
8716 ;;
8717 esac
8718 fi
8719 fi
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8721$as_echo_n "checking for multithread API to use... " >&6; }
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8723$as_echo "$gl_threads_api" >&6; }
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 if test "$gl_threads_api" = posix; then
8736 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8737 # pthread_rwlock_* functions.
8738 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8739"
8740if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8741
8742$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8743
8744fi
8745
8746 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8748/* end confdefs.h. */
8749
8750 #include <pthread.h>
8751int
8752main ()
8753{
8754
8755#if __FreeBSD__ == 4
8756error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8757#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8758 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8759error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8760#else
8761int x = (int)PTHREAD_MUTEX_RECURSIVE;
8762return !x;
8763#endif
8764
8765 ;
8766 return 0;
8767}
8768_ACEOF
8769if ac_fn_c_try_compile "$LINENO"; then :
8770
8771$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8772
8773fi
8774rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8775 fi
8776 :
8777
8778
8779
8780
8781
8782
8783
8784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008785
8786
8787
8788
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008789 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008790
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008791 acl_save_prefix="$prefix"
8792 prefix="$acl_final_prefix"
8793 acl_save_exec_prefix="$exec_prefix"
8794 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008795
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008796 eval additional_includedir=\"$includedir\"
8797 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008798
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008799 exec_prefix="$acl_save_exec_prefix"
8800 prefix="$acl_save_prefix"
8801
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008802
Theodore Ts'oe1052142006-10-21 21:46:47 -04008803# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008804if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008805 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008806 if test "X$withval" = "Xno"; then
8807 use_additional=no
8808 else
8809 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008810
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008811 acl_save_prefix="$prefix"
8812 prefix="$acl_final_prefix"
8813 acl_save_exec_prefix="$exec_prefix"
8814 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008815
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008816 eval additional_includedir=\"$includedir\"
8817 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008818
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8821
8822 else
8823 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008824 additional_libdir="$withval/$acl_libdirstem"
8825 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8826 && ! test -d "$withval/$acl_libdirstem"; then
8827 additional_libdir="$withval/$acl_libdirstem2"
8828 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008829 fi
8830 fi
8831
Theodore Ts'oe1052142006-10-21 21:46:47 -04008832fi
8833
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008834 LIBICONV=
8835 LTLIBICONV=
8836 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008837 LIBICONV_PREFIX=
8838 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008839 rpathdirs=
8840 ltrpathdirs=
8841 names_already_handled=
8842 names_next_round='iconv '
8843 while test -n "$names_next_round"; do
8844 names_this_round="$names_next_round"
8845 names_next_round=
8846 for name in $names_this_round; do
8847 already_handled=
8848 for n in $names_already_handled; do
8849 if test "$n" = "$name"; then
8850 already_handled=yes
8851 break
8852 fi
8853 done
8854 if test -z "$already_handled"; then
8855 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008856 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008857 eval value=\"\$HAVE_LIB$uppername\"
8858 if test -n "$value"; then
8859 if test "$value" = yes; then
8860 eval value=\"\$LIB$uppername\"
8861 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8862 eval value=\"\$LTLIB$uppername\"
8863 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8864 else
8865 :
8866 fi
8867 else
8868 found_dir=
8869 found_la=
8870 found_so=
8871 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008872 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8873 if test -n "$acl_shlibext"; then
8874 shrext=".$acl_shlibext" # typically: shrext=.so
8875 else
8876 shrext=
8877 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008878 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008879 dir="$additional_libdir"
8880 if test -n "$acl_shlibext"; then
8881 if test -f "$dir/$libname$shrext"; then
8882 found_dir="$dir"
8883 found_so="$dir/$libname$shrext"
8884 else
8885 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8886 ver=`(cd "$dir" && \
8887 for f in "$libname$shrext".*; do echo "$f"; done \
8888 | sed -e "s,^$libname$shrext\\\\.,," \
8889 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8890 | sed 1q ) 2>/dev/null`
8891 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8892 found_dir="$dir"
8893 found_so="$dir/$libname$shrext.$ver"
8894 fi
8895 else
8896 eval library_names=\"$acl_library_names_spec\"
8897 for f in $library_names; do
8898 if test -f "$dir/$f"; then
8899 found_dir="$dir"
8900 found_so="$dir/$f"
8901 break
8902 fi
8903 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008904 fi
8905 fi
8906 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008907 if test "X$found_dir" = "X"; then
8908 if test -f "$dir/$libname.$acl_libext"; then
8909 found_dir="$dir"
8910 found_a="$dir/$libname.$acl_libext"
8911 fi
8912 fi
8913 if test "X$found_dir" != "X"; then
8914 if test -f "$dir/$libname.la"; then
8915 found_la="$dir/$libname.la"
8916 fi
8917 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008918 fi
8919 if test "X$found_dir" = "X"; then
8920 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008921
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008922 acl_save_prefix="$prefix"
8923 prefix="$acl_final_prefix"
8924 acl_save_exec_prefix="$exec_prefix"
8925 exec_prefix="$acl_final_exec_prefix"
8926 eval x=\"$x\"
8927 exec_prefix="$acl_save_exec_prefix"
8928 prefix="$acl_save_prefix"
8929
8930 case "$x" in
8931 -L*)
8932 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008933 if test -n "$acl_shlibext"; then
8934 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008935 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008936 found_so="$dir/$libname$shrext"
8937 else
8938 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8939 ver=`(cd "$dir" && \
8940 for f in "$libname$shrext".*; do echo "$f"; done \
8941 | sed -e "s,^$libname$shrext\\\\.,," \
8942 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8943 | sed 1q ) 2>/dev/null`
8944 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8945 found_dir="$dir"
8946 found_so="$dir/$libname$shrext.$ver"
8947 fi
8948 else
8949 eval library_names=\"$acl_library_names_spec\"
8950 for f in $library_names; do
8951 if test -f "$dir/$f"; then
8952 found_dir="$dir"
8953 found_so="$dir/$f"
8954 break
8955 fi
8956 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008957 fi
8958 fi
8959 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008960 if test "X$found_dir" = "X"; then
8961 if test -f "$dir/$libname.$acl_libext"; then
8962 found_dir="$dir"
8963 found_a="$dir/$libname.$acl_libext"
8964 fi
8965 fi
8966 if test "X$found_dir" != "X"; then
8967 if test -f "$dir/$libname.la"; then
8968 found_la="$dir/$libname.la"
8969 fi
8970 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008971 ;;
8972 esac
8973 if test "X$found_dir" != "X"; then
8974 break
8975 fi
8976 done
8977 fi
8978 if test "X$found_dir" != "X"; then
8979 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8980 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008981 if test "$enable_rpath" = no \
8982 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8983 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008984 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8985 else
8986 haveit=
8987 for x in $ltrpathdirs; do
8988 if test "X$x" = "X$found_dir"; then
8989 haveit=yes
8990 break
8991 fi
8992 done
8993 if test -z "$haveit"; then
8994 ltrpathdirs="$ltrpathdirs $found_dir"
8995 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008996 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008997 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8998 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008999 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009000 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9001 haveit=
9002 for x in $rpathdirs; do
9003 if test "X$x" = "X$found_dir"; then
9004 haveit=yes
9005 break
9006 fi
9007 done
9008 if test -z "$haveit"; then
9009 rpathdirs="$rpathdirs $found_dir"
9010 fi
9011 else
9012 haveit=
9013 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009014
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009015 acl_save_prefix="$prefix"
9016 prefix="$acl_final_prefix"
9017 acl_save_exec_prefix="$exec_prefix"
9018 exec_prefix="$acl_final_exec_prefix"
9019 eval x=\"$x\"
9020 exec_prefix="$acl_save_exec_prefix"
9021 prefix="$acl_save_prefix"
9022
9023 if test "X$x" = "X-L$found_dir"; then
9024 haveit=yes
9025 break
9026 fi
9027 done
9028 if test -z "$haveit"; then
9029 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9030 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009031 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009032 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9033 else
9034 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9035 fi
9036 fi
9037 fi
9038 fi
9039 else
9040 if test "X$found_a" != "X"; then
9041 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9042 else
9043 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9044 fi
9045 fi
9046 additional_includedir=
9047 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009048 */$acl_libdirstem | */$acl_libdirstem/)
9049 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9050 if test "$name" = 'iconv'; then
9051 LIBICONV_PREFIX="$basedir"
9052 fi
9053 additional_includedir="$basedir/include"
9054 ;;
9055 */$acl_libdirstem2 | */$acl_libdirstem2/)
9056 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9057 if test "$name" = 'iconv'; then
9058 LIBICONV_PREFIX="$basedir"
9059 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009060 additional_includedir="$basedir/include"
9061 ;;
9062 esac
9063 if test "X$additional_includedir" != "X"; then
9064 if test "X$additional_includedir" != "X/usr/include"; then
9065 haveit=
9066 if test "X$additional_includedir" = "X/usr/local/include"; then
9067 if test -n "$GCC"; then
9068 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009069 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009070 esac
9071 fi
9072 fi
9073 if test -z "$haveit"; then
9074 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009075
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009076 acl_save_prefix="$prefix"
9077 prefix="$acl_final_prefix"
9078 acl_save_exec_prefix="$exec_prefix"
9079 exec_prefix="$acl_final_exec_prefix"
9080 eval x=\"$x\"
9081 exec_prefix="$acl_save_exec_prefix"
9082 prefix="$acl_save_prefix"
9083
9084 if test "X$x" = "X-I$additional_includedir"; then
9085 haveit=yes
9086 break
9087 fi
9088 done
9089 if test -z "$haveit"; then
9090 if test -d "$additional_includedir"; then
9091 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9092 fi
9093 fi
9094 fi
9095 fi
9096 fi
9097 if test -n "$found_la"; then
9098 save_libdir="$libdir"
9099 case "$found_la" in
9100 */* | *\\*) . "$found_la" ;;
9101 *) . "./$found_la" ;;
9102 esac
9103 libdir="$save_libdir"
9104 for dep in $dependency_libs; do
9105 case "$dep" in
9106 -L*)
9107 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009108 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9109 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009110 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009111 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9112 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009113 if test -n "$GCC"; then
9114 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009115 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009116 esac
9117 fi
9118 fi
9119 if test -z "$haveit"; then
9120 haveit=
9121 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009122
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009123 acl_save_prefix="$prefix"
9124 prefix="$acl_final_prefix"
9125 acl_save_exec_prefix="$exec_prefix"
9126 exec_prefix="$acl_final_exec_prefix"
9127 eval x=\"$x\"
9128 exec_prefix="$acl_save_exec_prefix"
9129 prefix="$acl_save_prefix"
9130
9131 if test "X$x" = "X-L$additional_libdir"; then
9132 haveit=yes
9133 break
9134 fi
9135 done
9136 if test -z "$haveit"; then
9137 if test -d "$additional_libdir"; then
9138 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9139 fi
9140 fi
9141 haveit=
9142 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009143
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009144 acl_save_prefix="$prefix"
9145 prefix="$acl_final_prefix"
9146 acl_save_exec_prefix="$exec_prefix"
9147 exec_prefix="$acl_final_exec_prefix"
9148 eval x=\"$x\"
9149 exec_prefix="$acl_save_exec_prefix"
9150 prefix="$acl_save_prefix"
9151
9152 if test "X$x" = "X-L$additional_libdir"; then
9153 haveit=yes
9154 break
9155 fi
9156 done
9157 if test -z "$haveit"; then
9158 if test -d "$additional_libdir"; then
9159 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9160 fi
9161 fi
9162 fi
9163 fi
9164 ;;
9165 -R*)
9166 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9167 if test "$enable_rpath" != no; then
9168 haveit=
9169 for x in $rpathdirs; do
9170 if test "X$x" = "X$dir"; then
9171 haveit=yes
9172 break
9173 fi
9174 done
9175 if test -z "$haveit"; then
9176 rpathdirs="$rpathdirs $dir"
9177 fi
9178 haveit=
9179 for x in $ltrpathdirs; do
9180 if test "X$x" = "X$dir"; then
9181 haveit=yes
9182 break
9183 fi
9184 done
9185 if test -z "$haveit"; then
9186 ltrpathdirs="$ltrpathdirs $dir"
9187 fi
9188 fi
9189 ;;
9190 -l*)
9191 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9192 ;;
9193 *.la)
9194 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9195 ;;
9196 *)
9197 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9198 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9199 ;;
9200 esac
9201 done
9202 fi
9203 else
9204 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9205 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9206 fi
9207 fi
9208 fi
9209 done
9210 done
9211 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009212 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009213 alldirs=
9214 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009215 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009216 done
9217 acl_save_libdir="$libdir"
9218 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009219 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009220 libdir="$acl_save_libdir"
9221 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9222 else
9223 for found_dir in $rpathdirs; do
9224 acl_save_libdir="$libdir"
9225 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009226 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009227 libdir="$acl_save_libdir"
9228 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9229 done
9230 fi
9231 fi
9232 if test "X$ltrpathdirs" != "X"; then
9233 for found_dir in $ltrpathdirs; do
9234 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9235 done
9236 fi
9237
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009238
9239
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009240
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009241
9242
9243
9244
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009245
9246
9247
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009248
9249 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009250
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009251 for element in $INCICONV; do
9252 haveit=
9253 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009254
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009255 acl_save_prefix="$prefix"
9256 prefix="$acl_final_prefix"
9257 acl_save_exec_prefix="$exec_prefix"
9258 exec_prefix="$acl_final_exec_prefix"
9259 eval x=\"$x\"
9260 exec_prefix="$acl_save_exec_prefix"
9261 prefix="$acl_save_prefix"
9262
9263 if test "X$x" = "X$element"; then
9264 haveit=yes
9265 break
9266 fi
9267 done
9268 if test -z "$haveit"; then
9269 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9270 fi
9271 done
9272
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009273
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009275$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009276if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009277 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009278else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009279
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009280 am_cv_func_iconv="no, consider installing GNU libiconv"
9281 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009283/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009284
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009285#include <stdlib.h>
9286#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009287
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288int
9289main ()
9290{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009291iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009292 iconv(cd,NULL,NULL,NULL,NULL);
9293 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294 ;
9295 return 0;
9296}
9297_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009298if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009299 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009300fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009301rm -f core conftest.err conftest.$ac_objext \
9302 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009303 if test "$am_cv_func_iconv" != yes; then
9304 am_save_LIBS="$LIBS"
9305 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009307/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009308
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009309#include <stdlib.h>
9310#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312int
9313main ()
9314{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009315iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009316 iconv(cd,NULL,NULL,NULL,NULL);
9317 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009318 ;
9319 return 0;
9320}
9321_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009322if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009323 am_cv_lib_iconv=yes
9324 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009325fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009326rm -f core conftest.err conftest.$ac_objext \
9327 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009328 LIBS="$am_save_LIBS"
9329 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009330
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009331fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009333$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009334 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9336$as_echo_n "checking for working iconv... " >&6; }
9337if ${am_cv_func_iconv_works+:} false; then :
9338 $as_echo_n "(cached) " >&6
9339else
9340
9341 am_save_LIBS="$LIBS"
9342 if test $am_cv_lib_iconv = yes; then
9343 LIBS="$LIBS $LIBICONV"
9344 fi
9345 if test "$cross_compiling" = yes; then :
9346
9347 case "$host_os" in
9348 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9349 *) am_cv_func_iconv_works="guessing yes" ;;
9350 esac
9351
9352else
9353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9354/* end confdefs.h. */
9355
9356#include <iconv.h>
9357#include <string.h>
9358int main ()
9359{
9360 int result = 0;
9361 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9362 returns. */
9363 {
9364 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9365 if (cd_utf8_to_88591 != (iconv_t)(-1))
9366 {
9367 static const char input[] = "\342\202\254"; /* EURO SIGN */
9368 char buf[10];
9369 const char *inptr = input;
9370 size_t inbytesleft = strlen (input);
9371 char *outptr = buf;
9372 size_t outbytesleft = sizeof (buf);
9373 size_t res = iconv (cd_utf8_to_88591,
9374 (char **) &inptr, &inbytesleft,
9375 &outptr, &outbytesleft);
9376 if (res == 0)
9377 result |= 1;
9378 iconv_close (cd_utf8_to_88591);
9379 }
9380 }
9381 /* Test against Solaris 10 bug: Failures are not distinguishable from
9382 successful returns. */
9383 {
9384 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9385 if (cd_ascii_to_88591 != (iconv_t)(-1))
9386 {
9387 static const char input[] = "\263";
9388 char buf[10];
9389 const char *inptr = input;
9390 size_t inbytesleft = strlen (input);
9391 char *outptr = buf;
9392 size_t outbytesleft = sizeof (buf);
9393 size_t res = iconv (cd_ascii_to_88591,
9394 (char **) &inptr, &inbytesleft,
9395 &outptr, &outbytesleft);
9396 if (res == 0)
9397 result |= 2;
9398 iconv_close (cd_ascii_to_88591);
9399 }
9400 }
9401 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9402 {
9403 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9404 if (cd_88591_to_utf8 != (iconv_t)(-1))
9405 {
9406 static const char input[] = "\304";
9407 static char buf[2] = { (char)0xDE, (char)0xAD };
9408 const char *inptr = input;
9409 size_t inbytesleft = 1;
9410 char *outptr = buf;
9411 size_t outbytesleft = 1;
9412 size_t res = iconv (cd_88591_to_utf8,
9413 (char **) &inptr, &inbytesleft,
9414 &outptr, &outbytesleft);
9415 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9416 result |= 4;
9417 iconv_close (cd_88591_to_utf8);
9418 }
9419 }
9420#if 0 /* This bug could be worked around by the caller. */
9421 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9422 {
9423 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9424 if (cd_88591_to_utf8 != (iconv_t)(-1))
9425 {
9426 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9427 char buf[50];
9428 const char *inptr = input;
9429 size_t inbytesleft = strlen (input);
9430 char *outptr = buf;
9431 size_t outbytesleft = sizeof (buf);
9432 size_t res = iconv (cd_88591_to_utf8,
9433 (char **) &inptr, &inbytesleft,
9434 &outptr, &outbytesleft);
9435 if ((int)res > 0)
9436 result |= 8;
9437 iconv_close (cd_88591_to_utf8);
9438 }
9439 }
9440#endif
9441 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9442 provided. */
9443 if (/* Try standardized names. */
9444 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9445 /* Try IRIX, OSF/1 names. */
9446 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9447 /* Try AIX names. */
9448 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9449 /* Try HP-UX names. */
9450 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9451 result |= 16;
9452 return result;
9453}
9454_ACEOF
9455if ac_fn_c_try_run "$LINENO"; then :
9456 am_cv_func_iconv_works=yes
9457else
9458 am_cv_func_iconv_works=no
9459fi
9460rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9461 conftest.$ac_objext conftest.beam conftest.$ac_ext
9462fi
9463
9464 LIBS="$am_save_LIBS"
9465
9466fi
9467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9468$as_echo "$am_cv_func_iconv_works" >&6; }
9469 case "$am_cv_func_iconv_works" in
9470 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9471 *) am_func_iconv=yes ;;
9472 esac
9473 else
9474 am_func_iconv=no am_cv_lib_iconv=no
9475 fi
9476 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009477
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009478$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009479
9480 fi
9481 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009483$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009485$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009486 else
9487 CPPFLAGS="$am_save_CPPFLAGS"
9488 LIBICONV=
9489 LTLIBICONV=
9490 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009491
9492
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009493
9494 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009496$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009497 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009498 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009499else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009500
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009502/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009503
9504#include <stdlib.h>
9505#include <iconv.h>
9506extern
9507#ifdef __cplusplus
9508"C"
9509#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009510#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009511size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9512#else
9513size_t iconv();
9514#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009515
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009516int
9517main ()
9518{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009519
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520 ;
9521 return 0;
9522}
9523_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009524if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009525 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009526else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009527 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009528fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009530 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 +00009531fi
9532
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009533 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009534 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9535 $am_cv_proto_iconv" >&5
9536$as_echo "
9537 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009538
9539cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009540#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009541_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009542
Theodore Ts'o93613952014-07-03 23:44:13 -04009543
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009544 fi
9545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546
Theodore Ts'o93613952014-07-03 23:44:13 -04009547
9548
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009550/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009551int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009552int
9553main ()
9554{
Theodore Ts'o93613952014-07-03 23:44:13 -04009555
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556 ;
9557 return 0;
9558}
9559_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009560if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009561
9562$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9563
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009564fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009565rm -f core conftest.err conftest.$ac_objext \
9566 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009567
Theodore Ts'o93613952014-07-03 23:44:13 -04009568 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9569do :
9570 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9571ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9572if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9573 cat >>confdefs.h <<_ACEOF
9574#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009575_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009576
9577fi
9578
9579done
9580
9581 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9582 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9583 argz_stringify argz_next __fsetlocking
9584do :
9585 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9586ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9587if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9588 cat >>confdefs.h <<_ACEOF
9589#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9590_ACEOF
9591
9592fi
9593done
9594
9595
9596 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9597"
9598if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9599 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009600else
Theodore Ts'o93613952014-07-03 23:44:13 -04009601 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009602fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009603
9604cat >>confdefs.h <<_ACEOF
9605#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9606_ACEOF
9607ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9608"
9609if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9610 ac_have_decl=1
9611else
9612 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009614
Theodore Ts'o93613952014-07-03 23:44:13 -04009615cat >>confdefs.h <<_ACEOF
9616#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9617_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009618
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009619
Theodore Ts'o93613952014-07-03 23:44:13 -04009620
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009621
9622 for ac_prog in bison
9623do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009624 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009625set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009627$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009628if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009629 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009630else
9631 if test -n "$INTLBISON"; then
9632 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9633else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9635for as_dir in $PATH
9636do
9637 IFS=$as_save_IFS
9638 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009639 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009641 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009643 break 2
9644 fi
9645done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009646 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009647IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009648
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009649fi
9650fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009651INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009652if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009654$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009655else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009657$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009658fi
9659
Theodore Ts'oe1052142006-10-21 21:46:47 -04009660
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009661 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009662done
9663
9664 if test -z "$INTLBISON"; then
9665 ac_verc_fail=yes
9666 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009668$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009669 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9670 case $ac_prog_version in
9671 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9672 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9673 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9674 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9675 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009677$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009678 fi
9679 if test $ac_verc_fail = yes; then
9680 INTLBISON=:
9681 fi
9682
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009683
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009684
Theodore Ts'o93613952014-07-03 23:44:13 -04009685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9686$as_echo_n "checking for long long int... " >&6; }
9687if ${ac_cv_type_long_long_int+:} false; then :
9688 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009689else
Theodore Ts'o93613952014-07-03 23:44:13 -04009690 ac_cv_type_long_long_int=yes
9691 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9692 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9693 if test $ac_cv_type_long_long_int = yes; then
9694 if test "$cross_compiling" = yes; then :
9695 :
9696else
9697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9698/* end confdefs.h. */
9699#include <limits.h>
9700 #ifndef LLONG_MAX
9701 # define HALF \
9702 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9703 # define LLONG_MAX (HALF - 1 + HALF)
9704 #endif
9705int
9706main ()
9707{
9708long long int n = 1;
9709 int i;
9710 for (i = 0; ; i++)
9711 {
9712 long long int m = n << i;
9713 if (m >> i != n)
9714 return 1;
9715 if (LLONG_MAX / 2 < m)
9716 break;
9717 }
9718 return 0;
9719 ;
9720 return 0;
9721}
9722_ACEOF
9723if ac_fn_c_try_run "$LINENO"; then :
9724
9725else
9726 ac_cv_type_long_long_int=no
9727fi
9728rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9729 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009730fi
9731
Theodore Ts'o93613952014-07-03 23:44:13 -04009732 fi
9733 fi
9734fi
9735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9736$as_echo "$ac_cv_type_long_long_int" >&6; }
9737 if test $ac_cv_type_long_long_int = yes; then
9738
9739$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9740
9741 fi
9742
9743
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9745$as_echo_n "checking for wchar_t... " >&6; }
9746if ${gt_cv_c_wchar_t+:} false; then :
9747 $as_echo_n "(cached) " >&6
9748else
9749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9750/* end confdefs.h. */
9751#include <stddef.h>
9752 wchar_t foo = (wchar_t)'\0';
9753int
9754main ()
9755{
9756
9757 ;
9758 return 0;
9759}
9760_ACEOF
9761if ac_fn_c_try_compile "$LINENO"; then :
9762 gt_cv_c_wchar_t=yes
9763else
9764 gt_cv_c_wchar_t=no
9765fi
9766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9767fi
9768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9769$as_echo "$gt_cv_c_wchar_t" >&6; }
9770 if test $gt_cv_c_wchar_t = yes; then
9771
9772$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9773
9774 fi
9775
9776
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9778$as_echo_n "checking for wint_t... " >&6; }
9779if ${gt_cv_c_wint_t+:} false; then :
9780 $as_echo_n "(cached) " >&6
9781else
9782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9783/* end confdefs.h. */
9784
9785/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9786 <wchar.h>.
9787 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9788 before <wchar.h>. */
9789#include <stddef.h>
9790#include <stdio.h>
9791#include <time.h>
9792#include <wchar.h>
9793 wint_t foo = (wchar_t)'\0';
9794int
9795main ()
9796{
9797
9798 ;
9799 return 0;
9800}
9801_ACEOF
9802if ac_fn_c_try_compile "$LINENO"; then :
9803 gt_cv_c_wint_t=yes
9804else
9805 gt_cv_c_wint_t=no
9806fi
9807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9808fi
9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9810$as_echo "$gt_cv_c_wint_t" >&6; }
9811 if test $gt_cv_c_wint_t = yes; then
9812
9813$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9814
9815 fi
9816
9817
9818
9819
9820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9821$as_echo_n "checking for intmax_t... " >&6; }
9822if ${gt_cv_c_intmax_t+:} false; then :
9823 $as_echo_n "(cached) " >&6
9824else
9825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9826/* end confdefs.h. */
9827
9828#include <stddef.h>
9829#include <stdlib.h>
9830#if HAVE_STDINT_H_WITH_UINTMAX
9831#include <stdint.h>
9832#endif
9833#if HAVE_INTTYPES_H_WITH_UINTMAX
9834#include <inttypes.h>
9835#endif
9836
9837int
9838main ()
9839{
9840intmax_t x = -1;
9841 return !x;
9842 ;
9843 return 0;
9844}
9845_ACEOF
9846if ac_fn_c_try_compile "$LINENO"; then :
9847 gt_cv_c_intmax_t=yes
9848else
9849 gt_cv_c_intmax_t=no
9850fi
9851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9852fi
9853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9854$as_echo "$gt_cv_c_intmax_t" >&6; }
9855 if test $gt_cv_c_intmax_t = yes; then
9856
9857$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9858
9859 fi
9860
9861
9862
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9864$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9865if ${gt_cv_func_printf_posix+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867else
9868
9869 if test "$cross_compiling" = yes; then :
9870
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872/* end confdefs.h. */
9873
9874#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9875 notposix
9876#endif
9877
9878_ACEOF
9879if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9880 $EGREP "notposix" >/dev/null 2>&1; then :
9881 gt_cv_func_printf_posix="guessing no"
9882else
9883 gt_cv_func_printf_posix="guessing yes"
9884fi
9885rm -f conftest*
9886
9887
9888else
9889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h. */
9891
9892#include <stdio.h>
9893#include <string.h>
9894/* The string "%2$d %1$d", with dollar characters protected from the shell's
9895 dollar expansion (possibly an autoconf bug). */
9896static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9897static char buf[100];
9898int main ()
9899{
9900 sprintf (buf, format, 33, 55);
9901 return (strcmp (buf, "55 33") != 0);
9902}
9903_ACEOF
9904if ac_fn_c_try_run "$LINENO"; then :
9905 gt_cv_func_printf_posix=yes
9906else
9907 gt_cv_func_printf_posix=no
9908fi
9909rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9910 conftest.$ac_objext conftest.beam conftest.$ac_ext
9911fi
9912
9913
9914fi
9915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9916$as_echo "$gt_cv_func_printf_posix" >&6; }
9917 case $gt_cv_func_printf_posix in
9918 *yes)
9919
9920$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9921
9922 ;;
9923 esac
9924
9925
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9927$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9928if ${ac_cv_gnu_library_2_1+:} false; then :
9929 $as_echo_n "(cached) " >&6
9930else
9931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9932/* end confdefs.h. */
9933
9934#include <features.h>
9935#ifdef __GNU_LIBRARY__
9936 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9937 Lucky GNU user
9938 #endif
9939#endif
9940#ifdef __UCLIBC__
9941 Lucky user
9942#endif
9943
9944_ACEOF
9945if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9946 $EGREP "Lucky" >/dev/null 2>&1; then :
9947 ac_cv_gnu_library_2_1=yes
9948else
9949 ac_cv_gnu_library_2_1=no
9950fi
9951rm -f conftest*
9952
9953
9954
9955fi
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9957$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9958
9959 GLIBC21="$ac_cv_gnu_library_2_1"
9960
9961
9962
9963 for ac_header in stdint.h
9964do :
9965 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9966if test "x$ac_cv_header_stdint_h" = xyes; then :
9967 cat >>confdefs.h <<_ACEOF
9968#define HAVE_STDINT_H 1
9969_ACEOF
9970
9971fi
9972
9973done
9974
9975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9976$as_echo_n "checking for SIZE_MAX... " >&6; }
9977if ${gl_cv_size_max+:} false; then :
9978 $as_echo_n "(cached) " >&6
9979else
9980
9981 gl_cv_size_max=
9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9983/* end confdefs.h. */
9984
9985#include <limits.h>
9986#if HAVE_STDINT_H
9987#include <stdint.h>
9988#endif
9989#ifdef SIZE_MAX
9990Found it
9991#endif
9992
9993_ACEOF
9994if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9995 $EGREP "Found it" >/dev/null 2>&1; then :
9996 gl_cv_size_max=yes
9997fi
9998rm -f conftest*
9999
10000 if test -z "$gl_cv_size_max"; then
10001 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10002#include <limits.h>"; then :
10003
10004else
10005 size_t_bits_minus_1=
10006fi
10007
10008 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
10009
10010else
10011 fits_in_uint=
10012fi
10013
10014 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10015 if test $fits_in_uint = 1; then
10016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10017/* end confdefs.h. */
10018#include <stddef.h>
10019 extern size_t foo;
10020 extern unsigned long foo;
10021
10022int
10023main ()
10024{
10025
10026 ;
10027 return 0;
10028}
10029_ACEOF
10030if ac_fn_c_try_compile "$LINENO"; then :
10031 fits_in_uint=0
10032fi
10033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10034 fi
10035 if test $fits_in_uint = 1; then
10036 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10037 else
10038 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10039 fi
10040 else
10041 gl_cv_size_max='((size_t)~(size_t)0)'
10042 fi
10043 fi
10044
10045fi
10046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10047$as_echo "$gl_cv_size_max" >&6; }
10048 if test "$gl_cv_size_max" != yes; then
10049
10050cat >>confdefs.h <<_ACEOF
10051#define SIZE_MAX $gl_cv_size_max
10052_ACEOF
10053
10054 fi
10055
10056
10057
10058
10059 for ac_header in stdint.h
10060do :
10061 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10062if test "x$ac_cv_header_stdint_h" = xyes; then :
10063 cat >>confdefs.h <<_ACEOF
10064#define HAVE_STDINT_H 1
10065_ACEOF
10066
10067fi
10068
10069done
10070
10071
10072
10073
10074
10075 for ac_func in $ac_func_list
10076do :
10077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10078ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10079if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10080 cat >>confdefs.h <<_ACEOF
10081#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10082_ACEOF
10083
10084fi
10085done
10086
10087
10088
10089
10090
10091
10092
10093
10094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10095$as_echo_n "checking for working fcntl.h... " >&6; }
10096if ${gl_cv_header_working_fcntl_h+:} false; then :
10097 $as_echo_n "(cached) " >&6
10098else
10099 if test "$cross_compiling" = yes; then :
10100 gl_cv_header_working_fcntl_h=cross-compiling
10101else
10102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10103/* end confdefs.h. */
10104#include <sys/types.h>
10105 #include <sys/stat.h>
10106 #if HAVE_UNISTD_H
10107 # include <unistd.h>
10108 #else /* on Windows with MSVC */
10109 # include <io.h>
10110 # include <stdlib.h>
10111 # defined sleep(n) _sleep ((n) * 1000)
10112 #endif
10113 #include <fcntl.h>
10114 #ifndef O_NOATIME
10115 #define O_NOATIME 0
10116 #endif
10117 #ifndef O_NOFOLLOW
10118 #define O_NOFOLLOW 0
10119 #endif
10120 static int const constants[] =
10121 {
10122 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10123 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10124 };
10125
10126int
10127main ()
10128{
10129
10130 int result = !constants;
10131 #if HAVE_SYMLINK
10132 {
10133 static char const sym[] = "conftest.sym";
10134 if (symlink ("/dev/null", sym) != 0)
10135 result |= 2;
10136 else
10137 {
10138 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10139 if (fd >= 0)
10140 {
10141 close (fd);
10142 result |= 4;
10143 }
10144 }
10145 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10146 result |= 2;
10147 else
10148 {
10149 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10150 if (fd >= 0)
10151 {
10152 close (fd);
10153 result |= 4;
10154 }
10155 }
10156 unlink (sym);
10157 }
10158 #endif
10159 {
10160 static char const file[] = "confdefs.h";
10161 int fd = open (file, O_RDONLY | O_NOATIME);
10162 if (fd < 0)
10163 result |= 8;
10164 else
10165 {
10166 struct stat st0;
10167 if (fstat (fd, &st0) != 0)
10168 result |= 16;
10169 else
10170 {
10171 char c;
10172 sleep (1);
10173 if (read (fd, &c, 1) != 1)
10174 result |= 24;
10175 else
10176 {
10177 if (close (fd) != 0)
10178 result |= 32;
10179 else
10180 {
10181 struct stat st1;
10182 if (stat (file, &st1) != 0)
10183 result |= 40;
10184 else
10185 if (st0.st_atime != st1.st_atime)
10186 result |= 64;
10187 }
10188 }
10189 }
10190 }
10191 }
10192 return result;
10193 ;
10194 return 0;
10195}
10196_ACEOF
10197if ac_fn_c_try_run "$LINENO"; then :
10198 gl_cv_header_working_fcntl_h=yes
10199else
10200 case $? in #(
10201 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10202 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10203 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10204 *) gl_cv_header_working_fcntl_h='no';;
10205 esac
10206fi
10207rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10208 conftest.$ac_objext conftest.beam conftest.$ac_ext
10209fi
10210
10211fi
10212{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10213$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10214
10215 case $gl_cv_header_working_fcntl_h in #(
10216 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10217 *) ac_val=1;;
10218 esac
10219
10220cat >>confdefs.h <<_ACEOF
10221#define HAVE_WORKING_O_NOATIME $ac_val
10222_ACEOF
10223
10224
10225 case $gl_cv_header_working_fcntl_h in #(
10226 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10227 *) ac_val=1;;
10228 esac
10229
10230cat >>confdefs.h <<_ACEOF
10231#define HAVE_WORKING_O_NOFOLLOW $ac_val
10232_ACEOF
10233
10234
10235
10236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10237$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10238if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10239 $as_echo_n "(cached) " >&6
10240else
10241 gt_save_LIBS="$LIBS"
10242 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244/* end confdefs.h. */
10245#include <CoreFoundation/CFPreferences.h>
10246int
10247main ()
10248{
10249CFPreferencesCopyAppValue(NULL, NULL)
10250 ;
10251 return 0;
10252}
10253_ACEOF
10254if ac_fn_c_try_link "$LINENO"; then :
10255 gt_cv_func_CFPreferencesCopyAppValue=yes
10256else
10257 gt_cv_func_CFPreferencesCopyAppValue=no
10258fi
10259rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 LIBS="$gt_save_LIBS"
10262fi
10263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10264$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10265 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10266
10267$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10268
10269 fi
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10271$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10272if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274else
10275 gt_save_LIBS="$LIBS"
10276 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278/* end confdefs.h. */
10279#include <CoreFoundation/CFLocale.h>
10280int
10281main ()
10282{
10283CFLocaleCopyCurrent();
10284 ;
10285 return 0;
10286}
10287_ACEOF
10288if ac_fn_c_try_link "$LINENO"; then :
10289 gt_cv_func_CFLocaleCopyCurrent=yes
10290else
10291 gt_cv_func_CFLocaleCopyCurrent=no
10292fi
10293rm -f core conftest.err conftest.$ac_objext \
10294 conftest$ac_exeext conftest.$ac_ext
10295 LIBS="$gt_save_LIBS"
10296fi
10297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10298$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10299 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10300
10301$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10302
10303 fi
10304 INTL_MACOSX_LIBS=
10305 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10306 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10307 fi
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318 case "$enable_silent_rules" in
10319 yes) INTL_DEFAULT_VERBOSITY=0;;
10320 no) INTL_DEFAULT_VERBOSITY=1;;
10321 *) INTL_DEFAULT_VERBOSITY=1;;
10322 esac
10323
10324
10325 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10326if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10327
10328else
10329
10330$as_echo "#define ptrdiff_t long" >>confdefs.h
10331
10332
10333fi
10334
10335 for ac_header in features.h stddef.h stdlib.h string.h
10336do :
10337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10338ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10339if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10340 cat >>confdefs.h <<_ACEOF
10341#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10342_ACEOF
10343
10344fi
10345
10346done
10347
10348 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10349 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10350do :
10351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10352ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10353if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10354 cat >>confdefs.h <<_ACEOF
10355#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10356_ACEOF
10357
10358fi
10359done
10360
10361
10362 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10363"
10364if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10365 ac_have_decl=1
10366else
10367 ac_have_decl=0
10368fi
10369
10370cat >>confdefs.h <<_ACEOF
10371#define HAVE_DECL__SNPRINTF $ac_have_decl
10372_ACEOF
10373ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10374"
10375if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10376 ac_have_decl=1
10377else
10378 ac_have_decl=0
10379fi
10380
10381cat >>confdefs.h <<_ACEOF
10382#define HAVE_DECL__SNWPRINTF $ac_have_decl
10383_ACEOF
10384
10385
10386 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10387"
10388if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10389 ac_have_decl=1
10390else
10391 ac_have_decl=0
10392fi
10393
10394cat >>confdefs.h <<_ACEOF
10395#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10396_ACEOF
10397
10398
10399 case $gt_cv_func_printf_posix in
10400 *yes) HAVE_POSIX_PRINTF=1 ;;
10401 *) HAVE_POSIX_PRINTF=0 ;;
10402 esac
10403
10404 if test "$ac_cv_func_asprintf" = yes; then
10405 HAVE_ASPRINTF=1
10406 else
10407 HAVE_ASPRINTF=0
10408 fi
10409
10410 if test "$ac_cv_func_snprintf" = yes; then
10411 HAVE_SNPRINTF=1
10412 else
10413 HAVE_SNPRINTF=0
10414 fi
10415
10416 if test "$ac_cv_func_newlocale" = yes; then
10417 HAVE_NEWLOCALE=1
10418 else
10419 HAVE_NEWLOCALE=0
10420 fi
10421
10422 if test "$ac_cv_func_wprintf" = yes; then
10423 HAVE_WPRINTF=1
10424 else
10425 HAVE_WPRINTF=0
10426 fi
10427
10428
10429
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10431$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10432if ${am_cv_langinfo_codeset+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434else
10435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10436/* end confdefs.h. */
10437#include <langinfo.h>
10438int
10439main ()
10440{
10441char* cs = nl_langinfo(CODESET); return !cs;
10442 ;
10443 return 0;
10444}
10445_ACEOF
10446if ac_fn_c_try_link "$LINENO"; then :
10447 am_cv_langinfo_codeset=yes
10448else
10449 am_cv_langinfo_codeset=no
10450fi
10451rm -f core conftest.err conftest.$ac_objext \
10452 conftest$ac_exeext conftest.$ac_ext
10453
10454fi
10455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10456$as_echo "$am_cv_langinfo_codeset" >&6; }
10457 if test $am_cv_langinfo_codeset = yes; then
10458
10459$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10460
10461 fi
10462
10463
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10465$as_echo_n "checking for LC_MESSAGES... " >&6; }
10466if ${gt_cv_val_LC_MESSAGES+:} false; then :
10467 $as_echo_n "(cached) " >&6
10468else
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470/* end confdefs.h. */
10471#include <locale.h>
10472int
10473main ()
10474{
10475return LC_MESSAGES
10476 ;
10477 return 0;
10478}
10479_ACEOF
10480if ac_fn_c_try_link "$LINENO"; then :
10481 gt_cv_val_LC_MESSAGES=yes
10482else
10483 gt_cv_val_LC_MESSAGES=no
10484fi
10485rm -f core conftest.err conftest.$ac_objext \
10486 conftest$ac_exeext conftest.$ac_ext
10487fi
10488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10489$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10490 if test $gt_cv_val_LC_MESSAGES = yes; then
10491
10492$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10493
10494 fi
10495
10496
10497 if test "$enable_shared" = yes; then
10498 case "$host_os" in
10499 mingw* | cygwin*) is_woe32dll=yes ;;
10500 *) is_woe32dll=no ;;
10501 esac
10502 else
10503 is_woe32dll=no
10504 fi
10505 WOE32DLL=$is_woe32dll
10506
10507
10508 case "$host_os" in
10509 mingw* | cygwin*) is_woe32=yes ;;
10510 *) is_woe32=no ;;
10511 esac
10512 WOE32=$is_woe32
10513
10514 if test $WOE32 = yes; then
10515 if test -n "$ac_tool_prefix"; then
10516 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10517set dummy ${ac_tool_prefix}windres; ac_word=$2
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10519$as_echo_n "checking for $ac_word... " >&6; }
10520if ${ac_cv_prog_WINDRES+:} false; then :
10521 $as_echo_n "(cached) " >&6
10522else
10523 if test -n "$WINDRES"; then
10524 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10525else
10526as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10527for as_dir in $PATH
10528do
10529 IFS=$as_save_IFS
10530 test -z "$as_dir" && as_dir=.
10531 for ac_exec_ext in '' $ac_executable_extensions; do
10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10533 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10535 break 2
10536 fi
10537done
10538 done
10539IFS=$as_save_IFS
10540
10541fi
10542fi
10543WINDRES=$ac_cv_prog_WINDRES
10544if test -n "$WINDRES"; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10546$as_echo "$WINDRES" >&6; }
10547else
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10549$as_echo "no" >&6; }
10550fi
10551
10552
10553fi
10554if test -z "$ac_cv_prog_WINDRES"; then
10555 ac_ct_WINDRES=$WINDRES
10556 # Extract the first word of "windres", so it can be a program name with args.
10557set dummy windres; ac_word=$2
10558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10559$as_echo_n "checking for $ac_word... " >&6; }
10560if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10561 $as_echo_n "(cached) " >&6
10562else
10563 if test -n "$ac_ct_WINDRES"; then
10564 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10565else
10566as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10567for as_dir in $PATH
10568do
10569 IFS=$as_save_IFS
10570 test -z "$as_dir" && as_dir=.
10571 for ac_exec_ext in '' $ac_executable_extensions; do
10572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10573 ac_cv_prog_ac_ct_WINDRES="windres"
10574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10575 break 2
10576 fi
10577done
10578 done
10579IFS=$as_save_IFS
10580
10581fi
10582fi
10583ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10584if test -n "$ac_ct_WINDRES"; then
10585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10586$as_echo "$ac_ct_WINDRES" >&6; }
10587else
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10589$as_echo "no" >&6; }
10590fi
10591
10592 if test "x$ac_ct_WINDRES" = x; then
10593 WINDRES=""
10594 else
10595 case $cross_compiling:$ac_tool_warned in
10596yes:)
10597{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10598$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10599ac_tool_warned=yes ;;
10600esac
10601 WINDRES=$ac_ct_WINDRES
10602 fi
10603else
10604 WINDRES="$ac_cv_prog_WINDRES"
10605fi
10606
10607 fi
10608
10609 case "$host_os" in
10610 hpux*) LTLIBC="" ;;
10611 *) LTLIBC="-lc" ;;
10612 esac
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10641$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10642if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10643 $as_echo_n "(cached) " >&6
10644else
10645 gt_save_LIBS="$LIBS"
10646 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10648/* end confdefs.h. */
10649#include <CoreFoundation/CFPreferences.h>
10650int
10651main ()
10652{
10653CFPreferencesCopyAppValue(NULL, NULL)
10654 ;
10655 return 0;
10656}
10657_ACEOF
10658if ac_fn_c_try_link "$LINENO"; then :
10659 gt_cv_func_CFPreferencesCopyAppValue=yes
10660else
10661 gt_cv_func_CFPreferencesCopyAppValue=no
10662fi
10663rm -f core conftest.err conftest.$ac_objext \
10664 conftest$ac_exeext conftest.$ac_ext
10665 LIBS="$gt_save_LIBS"
10666fi
10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10668$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10669 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10670
10671$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10672
10673 fi
10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10675$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10676if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10677 $as_echo_n "(cached) " >&6
10678else
10679 gt_save_LIBS="$LIBS"
10680 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10682/* end confdefs.h. */
10683#include <CoreFoundation/CFLocale.h>
10684int
10685main ()
10686{
10687CFLocaleCopyCurrent();
10688 ;
10689 return 0;
10690}
10691_ACEOF
10692if ac_fn_c_try_link "$LINENO"; then :
10693 gt_cv_func_CFLocaleCopyCurrent=yes
10694else
10695 gt_cv_func_CFLocaleCopyCurrent=no
10696fi
10697rm -f core conftest.err conftest.$ac_objext \
10698 conftest$ac_exeext conftest.$ac_ext
10699 LIBS="$gt_save_LIBS"
10700fi
10701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10702$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10703 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10704
10705$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10706
10707 fi
10708 INTL_MACOSX_LIBS=
10709 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10710 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10711 fi
10712
10713
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010714
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010715
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716
10717
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010718 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010719 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010720
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010721 LIBINTL=
10722 LTLIBINTL=
10723 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010724
Theodore Ts'o93613952014-07-03 23:44:13 -040010725 case " $gt_needs " in
10726 *" need-formatstring-macros "*) gt_api_version=3 ;;
10727 *" need-ngettext "*) gt_api_version=2 ;;
10728 *) gt_api_version=1 ;;
10729 esac
10730 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10731 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10732
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010733 if test "$USE_NLS" = "yes"; then
10734 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010735
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010737$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010738
Theodore Ts'oe1052142006-10-21 21:46:47 -040010739# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010740if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010741 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010742else
10743 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010744fi
10745
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010747$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010748
10749 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10750 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010751
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010752
Theodore Ts'o93613952014-07-03 23:44:13 -040010753 if test $gt_api_version -ge 3; then
10754 gt_revision_test_code='
10755#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10756#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10757#endif
10758typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10759'
10760 else
10761 gt_revision_test_code=
10762 fi
10763 if test $gt_api_version -ge 2; then
10764 gt_expression_test_code=' + * ngettext ("", "", 0)'
10765 else
10766 gt_expression_test_code=
10767 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010770$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010771if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010772 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010773else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010775/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010776
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010777#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010778$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010779extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010780extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010781
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010782int
10783main ()
10784{
Theodore Ts'o93613952014-07-03 23:44:13 -040010785
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010786bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010787return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10788
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010789 ;
10790 return 0;
10791}
10792_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010793if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010794 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010795else
Theodore Ts'o93613952014-07-03 23:44:13 -040010796 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010798rm -f core conftest.err conftest.$ac_objext \
10799 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010800fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010801eval ac_res=\$$gt_func_gnugettext_libc
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10803$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010804
Theodore Ts'o93613952014-07-03 23:44:13 -040010805 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10806
10807
10808
10809
10810
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010811
10812
10813
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010814 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010815
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010816 acl_save_prefix="$prefix"
10817 prefix="$acl_final_prefix"
10818 acl_save_exec_prefix="$exec_prefix"
10819 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010820
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010821 eval additional_includedir=\"$includedir\"
10822 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010823
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010824 exec_prefix="$acl_save_exec_prefix"
10825 prefix="$acl_save_prefix"
10826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010827
Theodore Ts'oe1052142006-10-21 21:46:47 -040010828# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010829if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010830 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010831 if test "X$withval" = "Xno"; then
10832 use_additional=no
10833 else
10834 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010835
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010836 acl_save_prefix="$prefix"
10837 prefix="$acl_final_prefix"
10838 acl_save_exec_prefix="$exec_prefix"
10839 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010840
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010841 eval additional_includedir=\"$includedir\"
10842 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010843
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010844 exec_prefix="$acl_save_exec_prefix"
10845 prefix="$acl_save_prefix"
10846
10847 else
10848 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010849 additional_libdir="$withval/$acl_libdirstem"
10850 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10851 && ! test -d "$withval/$acl_libdirstem"; then
10852 additional_libdir="$withval/$acl_libdirstem2"
10853 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010854 fi
10855 fi
10856
Theodore Ts'oe1052142006-10-21 21:46:47 -040010857fi
10858
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010859 LIBINTL=
10860 LTLIBINTL=
10861 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010862 LIBINTL_PREFIX=
10863 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010864 rpathdirs=
10865 ltrpathdirs=
10866 names_already_handled=
10867 names_next_round='intl '
10868 while test -n "$names_next_round"; do
10869 names_this_round="$names_next_round"
10870 names_next_round=
10871 for name in $names_this_round; do
10872 already_handled=
10873 for n in $names_already_handled; do
10874 if test "$n" = "$name"; then
10875 already_handled=yes
10876 break
10877 fi
10878 done
10879 if test -z "$already_handled"; then
10880 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010881 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010882 eval value=\"\$HAVE_LIB$uppername\"
10883 if test -n "$value"; then
10884 if test "$value" = yes; then
10885 eval value=\"\$LIB$uppername\"
10886 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10887 eval value=\"\$LTLIB$uppername\"
10888 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10889 else
10890 :
10891 fi
10892 else
10893 found_dir=
10894 found_la=
10895 found_so=
10896 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010897 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10898 if test -n "$acl_shlibext"; then
10899 shrext=".$acl_shlibext" # typically: shrext=.so
10900 else
10901 shrext=
10902 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010903 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010904 dir="$additional_libdir"
10905 if test -n "$acl_shlibext"; then
10906 if test -f "$dir/$libname$shrext"; then
10907 found_dir="$dir"
10908 found_so="$dir/$libname$shrext"
10909 else
10910 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10911 ver=`(cd "$dir" && \
10912 for f in "$libname$shrext".*; do echo "$f"; done \
10913 | sed -e "s,^$libname$shrext\\\\.,," \
10914 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10915 | sed 1q ) 2>/dev/null`
10916 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10917 found_dir="$dir"
10918 found_so="$dir/$libname$shrext.$ver"
10919 fi
10920 else
10921 eval library_names=\"$acl_library_names_spec\"
10922 for f in $library_names; do
10923 if test -f "$dir/$f"; then
10924 found_dir="$dir"
10925 found_so="$dir/$f"
10926 break
10927 fi
10928 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010929 fi
10930 fi
10931 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010932 if test "X$found_dir" = "X"; then
10933 if test -f "$dir/$libname.$acl_libext"; then
10934 found_dir="$dir"
10935 found_a="$dir/$libname.$acl_libext"
10936 fi
10937 fi
10938 if test "X$found_dir" != "X"; then
10939 if test -f "$dir/$libname.la"; then
10940 found_la="$dir/$libname.la"
10941 fi
10942 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010943 fi
10944 if test "X$found_dir" = "X"; then
10945 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010946
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010947 acl_save_prefix="$prefix"
10948 prefix="$acl_final_prefix"
10949 acl_save_exec_prefix="$exec_prefix"
10950 exec_prefix="$acl_final_exec_prefix"
10951 eval x=\"$x\"
10952 exec_prefix="$acl_save_exec_prefix"
10953 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010954
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010955 case "$x" in
10956 -L*)
10957 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010958 if test -n "$acl_shlibext"; then
10959 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010960 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010961 found_so="$dir/$libname$shrext"
10962 else
10963 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10964 ver=`(cd "$dir" && \
10965 for f in "$libname$shrext".*; do echo "$f"; done \
10966 | sed -e "s,^$libname$shrext\\\\.,," \
10967 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10968 | sed 1q ) 2>/dev/null`
10969 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10970 found_dir="$dir"
10971 found_so="$dir/$libname$shrext.$ver"
10972 fi
10973 else
10974 eval library_names=\"$acl_library_names_spec\"
10975 for f in $library_names; do
10976 if test -f "$dir/$f"; then
10977 found_dir="$dir"
10978 found_so="$dir/$f"
10979 break
10980 fi
10981 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010982 fi
10983 fi
10984 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010985 if test "X$found_dir" = "X"; then
10986 if test -f "$dir/$libname.$acl_libext"; then
10987 found_dir="$dir"
10988 found_a="$dir/$libname.$acl_libext"
10989 fi
10990 fi
10991 if test "X$found_dir" != "X"; then
10992 if test -f "$dir/$libname.la"; then
10993 found_la="$dir/$libname.la"
10994 fi
10995 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010996 ;;
10997 esac
10998 if test "X$found_dir" != "X"; then
10999 break
11000 fi
11001 done
11002 fi
11003 if test "X$found_dir" != "X"; then
11004 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11005 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011006 if test "$enable_rpath" = no \
11007 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11008 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011009 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11010 else
11011 haveit=
11012 for x in $ltrpathdirs; do
11013 if test "X$x" = "X$found_dir"; then
11014 haveit=yes
11015 break
11016 fi
11017 done
11018 if test -z "$haveit"; then
11019 ltrpathdirs="$ltrpathdirs $found_dir"
11020 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011021 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011022 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11023 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011024 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011025 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11026 haveit=
11027 for x in $rpathdirs; do
11028 if test "X$x" = "X$found_dir"; then
11029 haveit=yes
11030 break
11031 fi
11032 done
11033 if test -z "$haveit"; then
11034 rpathdirs="$rpathdirs $found_dir"
11035 fi
11036 else
11037 haveit=
11038 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011039
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011040 acl_save_prefix="$prefix"
11041 prefix="$acl_final_prefix"
11042 acl_save_exec_prefix="$exec_prefix"
11043 exec_prefix="$acl_final_exec_prefix"
11044 eval x=\"$x\"
11045 exec_prefix="$acl_save_exec_prefix"
11046 prefix="$acl_save_prefix"
11047
11048 if test "X$x" = "X-L$found_dir"; then
11049 haveit=yes
11050 break
11051 fi
11052 done
11053 if test -z "$haveit"; then
11054 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11055 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011056 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011057 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11058 else
11059 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11060 fi
11061 fi
11062 fi
11063 fi
11064 else
11065 if test "X$found_a" != "X"; then
11066 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11067 else
11068 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11069 fi
11070 fi
11071 additional_includedir=
11072 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011073 */$acl_libdirstem | */$acl_libdirstem/)
11074 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11075 if test "$name" = 'intl'; then
11076 LIBINTL_PREFIX="$basedir"
11077 fi
11078 additional_includedir="$basedir/include"
11079 ;;
11080 */$acl_libdirstem2 | */$acl_libdirstem2/)
11081 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11082 if test "$name" = 'intl'; then
11083 LIBINTL_PREFIX="$basedir"
11084 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011085 additional_includedir="$basedir/include"
11086 ;;
11087 esac
11088 if test "X$additional_includedir" != "X"; then
11089 if test "X$additional_includedir" != "X/usr/include"; then
11090 haveit=
11091 if test "X$additional_includedir" = "X/usr/local/include"; then
11092 if test -n "$GCC"; then
11093 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011094 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011095 esac
11096 fi
11097 fi
11098 if test -z "$haveit"; then
11099 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011100
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011101 acl_save_prefix="$prefix"
11102 prefix="$acl_final_prefix"
11103 acl_save_exec_prefix="$exec_prefix"
11104 exec_prefix="$acl_final_exec_prefix"
11105 eval x=\"$x\"
11106 exec_prefix="$acl_save_exec_prefix"
11107 prefix="$acl_save_prefix"
11108
11109 if test "X$x" = "X-I$additional_includedir"; then
11110 haveit=yes
11111 break
11112 fi
11113 done
11114 if test -z "$haveit"; then
11115 if test -d "$additional_includedir"; then
11116 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11117 fi
11118 fi
11119 fi
11120 fi
11121 fi
11122 if test -n "$found_la"; then
11123 save_libdir="$libdir"
11124 case "$found_la" in
11125 */* | *\\*) . "$found_la" ;;
11126 *) . "./$found_la" ;;
11127 esac
11128 libdir="$save_libdir"
11129 for dep in $dependency_libs; do
11130 case "$dep" in
11131 -L*)
11132 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011133 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11134 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011135 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011136 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11137 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011138 if test -n "$GCC"; then
11139 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011140 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011141 esac
11142 fi
11143 fi
11144 if test -z "$haveit"; then
11145 haveit=
11146 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011147
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011148 acl_save_prefix="$prefix"
11149 prefix="$acl_final_prefix"
11150 acl_save_exec_prefix="$exec_prefix"
11151 exec_prefix="$acl_final_exec_prefix"
11152 eval x=\"$x\"
11153 exec_prefix="$acl_save_exec_prefix"
11154 prefix="$acl_save_prefix"
11155
11156 if test "X$x" = "X-L$additional_libdir"; then
11157 haveit=yes
11158 break
11159 fi
11160 done
11161 if test -z "$haveit"; then
11162 if test -d "$additional_libdir"; then
11163 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11164 fi
11165 fi
11166 haveit=
11167 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011168
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011169 acl_save_prefix="$prefix"
11170 prefix="$acl_final_prefix"
11171 acl_save_exec_prefix="$exec_prefix"
11172 exec_prefix="$acl_final_exec_prefix"
11173 eval x=\"$x\"
11174 exec_prefix="$acl_save_exec_prefix"
11175 prefix="$acl_save_prefix"
11176
11177 if test "X$x" = "X-L$additional_libdir"; then
11178 haveit=yes
11179 break
11180 fi
11181 done
11182 if test -z "$haveit"; then
11183 if test -d "$additional_libdir"; then
11184 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11185 fi
11186 fi
11187 fi
11188 fi
11189 ;;
11190 -R*)
11191 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11192 if test "$enable_rpath" != no; then
11193 haveit=
11194 for x in $rpathdirs; do
11195 if test "X$x" = "X$dir"; then
11196 haveit=yes
11197 break
11198 fi
11199 done
11200 if test -z "$haveit"; then
11201 rpathdirs="$rpathdirs $dir"
11202 fi
11203 haveit=
11204 for x in $ltrpathdirs; do
11205 if test "X$x" = "X$dir"; then
11206 haveit=yes
11207 break
11208 fi
11209 done
11210 if test -z "$haveit"; then
11211 ltrpathdirs="$ltrpathdirs $dir"
11212 fi
11213 fi
11214 ;;
11215 -l*)
11216 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11217 ;;
11218 *.la)
11219 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11220 ;;
11221 *)
11222 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11223 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11224 ;;
11225 esac
11226 done
11227 fi
11228 else
11229 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11230 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11231 fi
11232 fi
11233 fi
11234 done
11235 done
11236 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011237 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011238 alldirs=
11239 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011240 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011241 done
11242 acl_save_libdir="$libdir"
11243 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011244 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011245 libdir="$acl_save_libdir"
11246 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11247 else
11248 for found_dir in $rpathdirs; do
11249 acl_save_libdir="$libdir"
11250 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011251 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011252 libdir="$acl_save_libdir"
11253 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11254 done
11255 fi
11256 fi
11257 if test "X$ltrpathdirs" != "X"; then
11258 for found_dir in $ltrpathdirs; do
11259 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11260 done
11261 fi
11262
Theodore Ts'o93613952014-07-03 23:44:13 -040011263
11264
11265
11266
11267
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011269$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011270if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011271 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011272else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011273 gt_save_CPPFLAGS="$CPPFLAGS"
11274 CPPFLAGS="$CPPFLAGS $INCINTL"
11275 gt_save_LIBS="$LIBS"
11276 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011278/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011279
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011280#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011281$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011282extern int _nl_msg_cat_cntr;
11283extern
11284#ifdef __cplusplus
11285"C"
11286#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011287const char *_nl_expand_alias (const char *);
11288
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011289int
11290main ()
11291{
Theodore Ts'o93613952014-07-03 23:44:13 -040011292
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011293bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011294return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011296 ;
11297 return 0;
11298}
11299_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011300if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011301 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011302else
Theodore Ts'o93613952014-07-03 23:44:13 -040011303 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011304fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011305rm -f core conftest.err conftest.$ac_objext \
11306 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011307 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011308 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011310/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011311
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011312#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011313$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011314extern int _nl_msg_cat_cntr;
11315extern
11316#ifdef __cplusplus
11317"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011318#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011319const char *_nl_expand_alias (const char *);
11320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011321int
11322main ()
11323{
Theodore Ts'o93613952014-07-03 23:44:13 -040011324
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011325bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011326return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011328 ;
11329 return 0;
11330}
11331_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011332if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011333 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011334 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11335 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011336
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011337fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011338rm -f core conftest.err conftest.$ac_objext \
11339 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011340 fi
11341 CPPFLAGS="$gt_save_CPPFLAGS"
11342 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011343fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011344eval ac_res=\$$gt_func_gnugettext_libintl
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11346$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011347 fi
11348
Theodore Ts'o93613952014-07-03 23:44:13 -040011349 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11350 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011351 && test "$PACKAGE" != gettext-runtime \
11352 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011353 gt_use_preinstalled_gnugettext=yes
11354 else
11355 LIBINTL=
11356 LTLIBINTL=
11357 INCINTL=
11358 fi
11359
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011360
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011361 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11362 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011363 fi
11364 fi
11365
11366 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011367 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011368 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011369 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11370 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011371 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011372 fi
11373
Theodore Ts'o93613952014-07-03 23:44:13 -040011374 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011375 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11376 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11377 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011378 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011379
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011380
Theodore Ts'o93613952014-07-03 23:44:13 -040011381 if test -n "$INTL_MACOSX_LIBS"; then
11382 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11383 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11384 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11385 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11386 fi
11387 fi
11388
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011389 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11390 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011391
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011392$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011393
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011394 else
11395 USE_NLS=no
11396 fi
11397 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011398
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011400$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011402$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011403 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011405$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011406 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011407 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408 gt_source="external libintl"
11409 else
11410 gt_source="libc"
11411 fi
11412 else
11413 gt_source="included intl directory"
11414 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011416$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011417 fi
11418
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011419 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011420
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011421 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011422 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011424$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011426$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011427
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011428 for element in $INCINTL; do
11429 haveit=
11430 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011431
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011432 acl_save_prefix="$prefix"
11433 prefix="$acl_final_prefix"
11434 acl_save_exec_prefix="$exec_prefix"
11435 exec_prefix="$acl_final_exec_prefix"
11436 eval x=\"$x\"
11437 exec_prefix="$acl_save_exec_prefix"
11438 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011439
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011440 if test "X$x" = "X$element"; then
11441 haveit=yes
11442 break
11443 fi
11444 done
11445 if test -z "$haveit"; then
11446 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11447 fi
11448 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011449
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011450 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011451
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011453$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011454
11455
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011456$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011457
11458 fi
11459
11460 POSUB=po
11461 fi
11462
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011463
11464 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011465 BUILD_INCLUDED_LIBINTL=yes
11466 fi
11467
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011468
11469
11470
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011471
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011472 nls_cv_header_intl=
11473 nls_cv_header_libgt=
11474
11475 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011477
11478 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011479
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011480
11481 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011482
11483
Theodore Ts'o93613952014-07-03 23:44:13 -040011484 INTLOBJS=
11485 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011486 INTLOBJS="\$(GETTOBJS)"
11487 fi
11488
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011489
11490 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491
11492
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011493
11494 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011495
11496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011497
11498
11499
11500
11501
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011503$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11504set x ${MAKE-make}
11505ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011506if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011507 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011508else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011509 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011510SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011512 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011513_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011514# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011515case `${MAKE-make} -f conftest.make 2>/dev/null` in
11516 *@@@%%%=?*=@@@%%%*)
11517 eval ac_cv_prog_make_${ac_make}_set=yes;;
11518 *)
11519 eval ac_cv_prog_make_${ac_make}_set=no;;
11520esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011521rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011522fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011523if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011525$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011526 SET_MAKE=
11527else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011529$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011530 SET_MAKE="MAKE=${MAKE-make}"
11531fi
11532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011534$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011535if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011536 $as_echo_n "(cached) " >&6
11537else
11538 _cv_gnu_make_command='' ;
Theodore Ts'oe703ba42016-09-11 23:11:31 -040011539 if test -n "$FORCE_NATIVE_MAKE" ; then
Theodore Ts'of3bc1562016-09-04 00:16:35 -040011540 MAKES="make"
11541 else
11542 MAKES="make gmake gnumake"
11543 fi
11544 for a in "$MAKE" $MAKES ; do
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011545 if test -z "$a" ; then continue ; fi ;
11546 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11547 _cv_gnu_make_command=$a ;
11548 break;
11549 fi
11550 done ;
11551
11552fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011554$as_echo "$_cv_gnu_make_command" >&6; } ;
11555 if test "x$_cv_gnu_make_command" != "x" ; then
11556 ifGNUmake='' ;
11557 ifNotGNUmake='#' ;
11558 else
11559 ifGNUmake='#' ;
11560 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011562$as_echo "\"Not found\"" >&6; };
11563 fi
11564
11565
11566
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011567# Extract the first word of "ln", so it can be a program name with args.
11568set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011570$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011571if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011572 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011573else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011574 case $LN in
11575 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011576 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11577 ;;
11578 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580for as_dir in $PATH
11581do
11582 IFS=$as_save_IFS
11583 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011584 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011586 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011588 break 2
11589 fi
11590done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011591 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011592IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011593
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011594 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11595 ;;
11596esac
11597fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011599if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011601$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011602else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011604$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011605fi
11606
Theodore Ts'oe1052142006-10-21 21:46:47 -040011607
Ross Burton5abc0412014-07-10 15:39:05 +010011608
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011610$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011611LN_S=$as_ln_s
11612if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011614$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011615else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011617$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011618fi
11619
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011620# Extract the first word of "mv", so it can be a program name with args.
11621set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011623$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011624if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011625 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011626else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011627 case $MV in
11628 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011629 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11630 ;;
11631 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633for as_dir in $PATH
11634do
11635 IFS=$as_save_IFS
11636 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011637 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011639 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011641 break 2
11642 fi
11643done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011644 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011645IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011646
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011647 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11648 ;;
11649esac
11650fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011651MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011652if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011654$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011655else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011657$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011658fi
11659
Theodore Ts'oe1052142006-10-21 21:46:47 -040011660
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011661# Extract the first word of "cp", so it can be a program name with args.
11662set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011664$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011665if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011666 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011667else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668 case $CP in
11669 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011670 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11671 ;;
11672 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $PATH
11675do
11676 IFS=$as_save_IFS
11677 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011678 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011680 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011682 break 2
11683 fi
11684done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011685 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011686IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011688 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11689 ;;
11690esac
11691fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011693if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011695$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011696else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011698$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011699fi
11700
Theodore Ts'oe1052142006-10-21 21:46:47 -040011701
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011702# Extract the first word of "rm", so it can be a program name with args.
11703set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011705$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011706if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011707 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011708else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709 case $RM in
11710 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011711 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11712 ;;
11713 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11715for as_dir in $PATH
11716do
11717 IFS=$as_save_IFS
11718 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011719 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011723 break 2
11724 fi
11725done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011726 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011727IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011729 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11730 ;;
11731esac
11732fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011734if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011736$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011737else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011739$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011740fi
11741
Theodore Ts'oe1052142006-10-21 21:46:47 -040011742
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011743# Extract the first word of "chmod", so it can be a program name with args.
11744set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011746$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011747if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011748 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011749else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011750 case $CHMOD in
11751 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011752 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11753 ;;
11754 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11756for as_dir in $PATH
11757do
11758 IFS=$as_save_IFS
11759 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011760 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011762 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011764 break 2
11765 fi
11766done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011767 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011768IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011769
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011770 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11771 ;;
11772esac
11773fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011774CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011775if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011777$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011778else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011780$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011781fi
11782
Theodore Ts'oe1052142006-10-21 21:46:47 -040011783
Theodore Ts'o32237012005-01-17 19:13:39 -050011784for ac_prog in gawk mawk nawk awk
11785do
11786 # Extract the first word of "$ac_prog", so it can be a program name with args.
11787set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011789$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011790if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011791 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011792else
Theodore Ts'o32237012005-01-17 19:13:39 -050011793 if test -n "$AWK"; then
11794 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11795else
11796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011797for as_dir in $PATH
11798do
11799 IFS=$as_save_IFS
11800 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011801 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011803 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011805 break 2
11806 fi
11807done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011808 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011809IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011810
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011811fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011812fi
11813AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011814if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011816$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011817else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011819$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011820fi
11821
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822
Theodore Ts'o32237012005-01-17 19:13:39 -050011823 test -n "$AWK" && break
11824done
11825
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011827$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011828if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011829 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011830else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011831 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11832 then ac_cv_path_EGREP="$GREP -E"
11833 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011834 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011835 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011836 # Loop through the user's path and test for each of PROGNAME-LIST
11837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11839do
11840 IFS=$as_save_IFS
11841 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011842 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011843 for ac_exec_ext in '' $ac_executable_extensions; do
11844 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011845 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011846# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011847 # Check for GNU $ac_path_EGREP
11848case `"$ac_path_EGREP" --version 2>&1` in
11849*GNU*)
11850 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11851*)
11852 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011853 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854 while :
11855 do
11856 cat "conftest.in" "conftest.in" >"conftest.tmp"
11857 mv "conftest.tmp" "conftest.in"
11858 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011859 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011860 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11861 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011862 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11864 # Best one so far, save it but keep looking for a better one
11865 ac_cv_path_EGREP="$ac_path_EGREP"
11866 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011867 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011868 # 10*(2^10) chars as input seems more than enough
11869 test $ac_count -gt 10 && break
11870 done
11871 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11872esac
11873
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011874 $ac_path_EGREP_found && break 3
11875 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011876 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011877 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011878IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011879 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011880 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011881 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011882else
11883 ac_cv_path_EGREP=$EGREP
11884fi
11885
Theodore Ts'oe1052142006-10-21 21:46:47 -040011886 fi
11887fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011889$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011890 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011891
11892
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011893# Extract the first word of "sed", so it can be a program name with args.
11894set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011896$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011897if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011898 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011899else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900 case $SED in
11901 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011902 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11903 ;;
11904 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906for as_dir in $PATH
11907do
11908 IFS=$as_save_IFS
11909 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011910 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011912 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011914 break 2
11915 fi
11916done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011917 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011918IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011920 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11921 ;;
11922esac
11923fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011925if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011927$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011928else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011930$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011931fi
11932
Theodore Ts'oe1052142006-10-21 21:46:47 -040011933
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011934# Extract the first word of "perl", so it can be a program name with args.
11935set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011937$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011938if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011939 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011940else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011941 case $PERL in
11942 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011943 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11944 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011945 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11947for as_dir in $PATH
11948do
11949 IFS=$as_save_IFS
11950 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011951 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011953 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011955 break 2
11956 fi
11957done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011958 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011959IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011961 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11962 ;;
11963esac
11964fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011966if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011968$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011969else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011971$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011972fi
11973
Theodore Ts'oe1052142006-10-21 21:46:47 -040011974
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011975# Extract the first word of "ldconfig", so it can be a program name with args.
11976set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011978$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011979if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011980 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011981else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982 case $LDCONFIG in
11983 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011984 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11985 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011986 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988for as_dir in $PATH
11989do
11990 IFS=$as_save_IFS
11991 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011992 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011994 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011996 break 2
11997 fi
11998done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011999 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012000IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012001
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012002 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12003 ;;
12004esac
12005fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012007if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012009$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012010else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012012$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000012013fi
12014
Theodore Ts'oe1052142006-10-21 21:46:47 -040012015
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012016if test -n "$ac_tool_prefix"; then
12017 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012018set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012020$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012021if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012022 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012023else
12024 if test -n "$AR"; then
12025 ac_cv_prog_AR="$AR" # Let the user override the test.
12026else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012027as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12028for as_dir in $PATH
12029do
12030 IFS=$as_save_IFS
12031 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012032 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012036 break 2
12037 fi
12038done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012039 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012040IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012041
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012042fi
12043fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012044AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012045if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012047$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012048else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012050$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012051fi
12052
Theodore Ts'oe1052142006-10-21 21:46:47 -040012053
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012054fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012055if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012056 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012057 # Extract the first word of "ar", so it can be a program name with args.
12058set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012060$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012061if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012062 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012063else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064 if test -n "$ac_ct_AR"; then
12065 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012066else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12068for as_dir in $PATH
12069do
12070 IFS=$as_save_IFS
12071 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012072 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012074 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012076 break 2
12077 fi
12078done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012079 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012081
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012082fi
12083fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012084ac_ct_AR=$ac_cv_prog_ac_ct_AR
12085if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012087$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012088else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012090$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012091fi
12092
Theodore Ts'oe1052142006-10-21 21:46:47 -040012093 if test "x$ac_ct_AR" = x; then
12094 AR="ar"
12095 else
12096 case $cross_compiling:$ac_tool_warned in
12097yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012098{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012099$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012100ac_tool_warned=yes ;;
12101esac
12102 AR=$ac_ct_AR
12103 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012104else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012105 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012106fi
12107
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012108if test -n "$ac_tool_prefix"; then
12109 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012110set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012112$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012113if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012114 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012115else
12116 if test -n "$RANLIB"; then
12117 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12118else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12120for as_dir in $PATH
12121do
12122 IFS=$as_save_IFS
12123 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012124 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012126 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012128 break 2
12129 fi
12130done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012131 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012132IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012133
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012134fi
12135fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012136RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012137if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012139$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012140else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012142$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012143fi
12144
Theodore Ts'oe1052142006-10-21 21:46:47 -040012145
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012146fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012147if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012148 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012149 # Extract the first word of "ranlib", so it can be a program name with args.
12150set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012152$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012153if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012154 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012156 if test -n "$ac_ct_RANLIB"; then
12157 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012158else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012159as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160for as_dir in $PATH
12161do
12162 IFS=$as_save_IFS
12163 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012164 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012166 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012167 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012168 break 2
12169 fi
12170done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012171 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012172IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012173
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012174fi
12175fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012176ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12177if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012179$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012180else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012182$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183fi
12184
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185 if test "x$ac_ct_RANLIB" = x; then
12186 RANLIB=":"
12187 else
12188 case $cross_compiling:$ac_tool_warned in
12189yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012192ac_tool_warned=yes ;;
12193esac
12194 RANLIB=$ac_ct_RANLIB
12195 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012196else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012197 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012198fi
12199
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200if test -n "$ac_tool_prefix"; then
12201 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012202set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012204$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012205if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012206 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012207else
12208 if test -n "$STRIP"; then
12209 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12210else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012211as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12212for as_dir in $PATH
12213do
12214 IFS=$as_save_IFS
12215 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012216 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012220 break 2
12221 fi
12222done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012223 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012224IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012225
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012226fi
12227fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012228STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012229if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012231$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012232else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012234$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012235fi
12236
Theodore Ts'oe1052142006-10-21 21:46:47 -040012237
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012238fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012239if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012240 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012241 # Extract the first word of "strip", so it can be a program name with args.
12242set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012244$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012245if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012246 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012247else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012248 if test -n "$ac_ct_STRIP"; then
12249 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12252for as_dir in $PATH
12253do
12254 IFS=$as_save_IFS
12255 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012256 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012258 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012260 break 2
12261 fi
12262done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012263 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012264IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012265
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012266fi
12267fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012268ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12269if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012271$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012272else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012274$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012275fi
12276
Theodore Ts'oe1052142006-10-21 21:46:47 -040012277 if test "x$ac_ct_STRIP" = x; then
12278 STRIP=":"
12279 else
12280 case $cross_compiling:$ac_tool_warned in
12281yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012282{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012283$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012284ac_tool_warned=yes ;;
12285esac
12286 STRIP=$ac_ct_STRIP
12287 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012289 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012290fi
12291
Manish Katiyar7321d942008-04-14 17:20:03 +053012292# Extract the first word of "makeinfo", so it can be a program name with args.
12293set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012295$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012296if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012297 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012298else
12299 if test -n "$MAKEINFO"; then
12300 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12301else
12302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303for as_dir in $PATH
12304do
12305 IFS=$as_save_IFS
12306 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012307 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012309 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012311 break 2
12312 fi
12313done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012314 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012315IFS=$as_save_IFS
12316
12317fi
12318fi
12319MAKEINFO=$ac_cv_prog_MAKEINFO
12320if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012322$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012323else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012325$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012326fi
12327
12328
12329if test "_$MAKEINFO" = "_"; then
Theodore Ts'oca1de982016-09-11 23:30:25 -040012330 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
Manish Katiyar7321d942008-04-14 17:20:03 +053012331else
12332 case "$MAKEINFO" in
12333 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012335*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012336$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012337*** Makeinfo is missing. Info documentation will not be built." >&2;}
12338 ;;
12339 *)
12340 ;;
12341 esac
12342fi
12343
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012344
Theodore Ts'o6c133521999-07-03 20:37:03 +000012345# See if we need a separate native compiler.
12346if test $cross_compiling = no; then
12347 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012348
Theodore Ts'o6c133521999-07-03 20:37:03 +000012349else
12350 for ac_prog in gcc cc
12351do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012352 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012353set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012355$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012356if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012357 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012358else
12359 if test -n "$BUILD_CC"; then
12360 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12361else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012364do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012365 IFS=$as_save_IFS
12366 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012367 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012369 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012371 break 2
12372 fi
12373done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012374 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012375IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012377fi
12378fi
12379BUILD_CC=$ac_cv_prog_BUILD_CC
12380if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012382$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012383else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012385$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012386fi
12387
Theodore Ts'oe1052142006-10-21 21:46:47 -040012388
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012389 test -n "$BUILD_CC" && break
12390done
12391
12392fi
Theodore Ts'o3829c162017-12-12 23:45:02 -050012393for 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/fsmap.h linux/major.h linux/loop.h linux/types.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 sys/xattr.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012394do :
12395 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12396ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012397if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012398 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012399#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400_ACEOF
12401
12402fi
12403
12404done
12405
Matthias Andreeec3a69b2017-08-29 01:02:36 -040012406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12407$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12408DD=
12409for i in dd gdd ; do
12410 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12411 DD=$i
12412 break
12413 fi
12414done
12415if test -n "$DD" ; then
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12417$as_echo "$DD" >&6; }
12418else
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12420$as_echo "not found, using dd" >&6; }
12421 DD=dd
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12423$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12424fi
12425
12426
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012427for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012428do :
12429 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012430#if HAVE_SYS_TYPES_H
12431#include <sys/types.h>
12432#endif
12433#if HAVE_SYS_SOCKET
12434#include <sys/socket.h>
12435#endif
12436
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012437"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012438if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012439 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012440#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012441_ACEOF
12442
12443fi
12444
12445done
12446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012447for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012448do :
12449 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012450if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012451 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012452#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012453_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012454
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012455ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012456if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012457
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012458$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012459
12460fi
12461
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012462fi
12463done
12464
12465
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012466ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12467"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012468if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012469
12470$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012471
12472fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012473
Theodore Ts'o28739272014-01-03 00:26:43 -050012474ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12475if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12476
12477cat >>confdefs.h <<_ACEOF
12478#define HAVE_STRUCT_STAT_ST_ATIM 1
12479_ACEOF
12480
12481
12482fi
12483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012484ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12485"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012486if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012487
12488$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012489
Theodore Ts'offf45482003-04-13 00:44:19 -040012490fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012491
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012492ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12493"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012494if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012495
12496$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012497
12498fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012499
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012500ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012501 #define _LARGEFILE64_SOURCE
12502 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012503"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012504if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012505
12506$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012507
12508fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012509
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012510# The cast to long int works around a bug in the HP C Compiler
12511# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12512# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12513# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012515$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012516if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012517 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012518else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012519 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 -050012520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012522 if test "$ac_cv_type_short" = yes; then
12523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012524$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012525as_fn_error 77 "cannot compute sizeof (short)
12526See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012527 else
12528 ac_cv_sizeof_short=0
12529 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012530fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012531
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012534$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012535
12536
12537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012538cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012539#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012540_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012541
12542
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012543# The cast to long int works around a bug in the HP C Compiler
12544# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12545# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12546# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012548$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012549if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012550 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012551else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012552 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 -050012553
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012555 if test "$ac_cv_type_int" = yes; then
12556 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012557$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012558as_fn_error 77 "cannot compute sizeof (int)
12559See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012560 else
12561 ac_cv_sizeof_int=0
12562 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012563fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012565fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012567$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012568
12569
12570
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012571cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012572#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012573_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012574
12575
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012576# The cast to long int works around a bug in the HP C Compiler
12577# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12578# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12579# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012581$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012582if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012583 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012584else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012585 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 -050012586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012587else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012588 if test "$ac_cv_type_long" = yes; then
12589 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012590$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012591as_fn_error 77 "cannot compute sizeof (long)
12592See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012593 else
12594 ac_cv_sizeof_long=0
12595 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012600$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012601
12602
12603
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012604cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012605#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012606_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012607
12608
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012609# The cast to long int works around a bug in the HP C Compiler
12610# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12611# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12612# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012614$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012615if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012616 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012617else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012618 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 -050012619
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012621 if test "$ac_cv_type_long_long" = yes; then
12622 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012623$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012624as_fn_error 77 "cannot compute sizeof (long long)
12625See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012626 else
12627 ac_cv_sizeof_long_long=0
12628 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012629fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012631fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012633$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012634
12635
12636
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012638#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012639_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012640
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012641
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012642# The cast to long int works around a bug in the HP C Compiler
12643# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12644# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12645# This bug is HP SR number 8606223364.
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12647$as_echo_n "checking size of off_t... " >&6; }
12648if ${ac_cv_sizeof_off_t+:} false; then :
12649 $as_echo_n "(cached) " >&6
12650else
12651 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12652
12653else
12654 if test "$ac_cv_type_off_t" = yes; then
12655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12656$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12657as_fn_error 77 "cannot compute sizeof (off_t)
12658See \`config.log' for more details" "$LINENO" 5; }
12659 else
12660 ac_cv_sizeof_off_t=0
12661 fi
12662fi
12663
12664fi
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12666$as_echo "$ac_cv_sizeof_off_t" >&6; }
12667
12668
12669
12670cat >>confdefs.h <<_ACEOF
12671#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12672_ACEOF
12673
12674
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012675# The cast to long int works around a bug in the HP C Compiler
12676# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12677# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12678# This bug is HP SR number 8606223364.
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12680$as_echo_n "checking size of time_t... " >&6; }
12681if ${ac_cv_sizeof_time_t+:} false; then :
12682 $as_echo_n "(cached) " >&6
12683else
12684 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12685
12686else
12687 if test "$ac_cv_type_time_t" = yes; then
12688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12689$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12690as_fn_error 77 "cannot compute sizeof (time_t)
12691See \`config.log' for more details" "$LINENO" 5; }
12692 else
12693 ac_cv_sizeof_time_t=0
12694 fi
12695fi
12696
12697fi
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12699$as_echo "$ac_cv_sizeof_time_t" >&6; }
12700
12701
12702
12703cat >>confdefs.h <<_ACEOF
12704#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12705_ACEOF
12706
12707
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012708SIZEOF_SHORT=$ac_cv_sizeof_short
12709SIZEOF_INT=$ac_cv_sizeof_int
12710SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012711SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012712SIZEOF_OFF_T=$ac_cv_sizeof_off_t
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012713SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12714
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012715
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012716
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012717
12718
12719
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012721$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012722if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012723 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012724else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012725 ac_cv_c_bigendian=unknown
12726 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012728/* end confdefs.h. */
12729#ifndef __APPLE_CC__
12730 not a universal capable compiler
12731 #endif
12732 typedef int dummy;
12733
12734_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012735if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012736
12737 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012738 # there are at least two -arch flags with different values.
12739 ac_arch=
12740 ac_prev=
12741 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12742 if test -n "$ac_prev"; then
12743 case $ac_word in
12744 i?86 | x86_64 | ppc | ppc64)
12745 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12746 ac_arch=$ac_word
12747 else
12748 ac_cv_c_bigendian=universal
12749 break
12750 fi
12751 ;;
12752 esac
12753 ac_prev=
12754 elif test "x$ac_word" = "x-arch"; then
12755 ac_prev=arch
12756 fi
12757 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012758fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 if test $ac_cv_c_bigendian = unknown; then
12761 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012763/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012764#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012765 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012767int
12768main ()
12769{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012770#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12771 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12772 && LITTLE_ENDIAN)
12773 bogus endian macros
12774 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012775
12776 ;
12777 return 0;
12778}
12779_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012780if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012781 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012783/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012784#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012785 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012786
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012787int
12788main ()
12789{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012790#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012791 not big endian
12792 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012793
12794 ;
12795 return 0;
12796}
12797_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012798if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012799 ac_cv_c_bigendian=yes
12800else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012801 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012802fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012804fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 fi
12807 if test $ac_cv_c_bigendian = unknown; then
12808 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012810/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012811#include <limits.h>
12812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012813int
12814main ()
12815{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012816#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12817 bogus endian macros
12818 #endif
12819
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012820 ;
12821 return 0;
12822}
12823_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012824if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012825 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012827/* end confdefs.h. */
12828#include <limits.h>
12829
12830int
12831main ()
12832{
12833#ifndef _BIG_ENDIAN
12834 not big endian
12835 #endif
12836
12837 ;
12838 return 0;
12839}
12840_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012841if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012842 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012843else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012844 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012845fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012846rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012847fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012848rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12849 fi
12850 if test $ac_cv_c_bigendian = unknown; then
12851 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012852 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012853 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012855/* end confdefs.h. */
12856short int ascii_mm[] =
12857 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12858 short int ascii_ii[] =
12859 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12860 int use_ascii (int i) {
12861 return ascii_mm[i] + ascii_ii[i];
12862 }
12863 short int ebcdic_ii[] =
12864 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12865 short int ebcdic_mm[] =
12866 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12867 int use_ebcdic (int i) {
12868 return ebcdic_mm[i] + ebcdic_ii[i];
12869 }
12870 extern int foo;
12871
12872int
12873main ()
12874{
12875return use_ascii (foo) == use_ebcdic (foo);
12876 ;
12877 return 0;
12878}
12879_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012880if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012881 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12882 ac_cv_c_bigendian=yes
12883 fi
12884 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12885 if test "$ac_cv_c_bigendian" = unknown; then
12886 ac_cv_c_bigendian=no
12887 else
12888 # finding both strings is unlikely to happen, but who knows?
12889 ac_cv_c_bigendian=unknown
12890 fi
12891 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012892fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012893rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012896/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012897$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012898int
12899main ()
12900{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012901
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012902 /* Are we little or big endian? From Harbison&Steele. */
12903 union
12904 {
12905 long int l;
12906 char c[sizeof (long int)];
12907 } u;
12908 u.l = 1;
12909 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012910
12911 ;
12912 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012913}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012914_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012915if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012916 ac_cv_c_bigendian=no
12917else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012918 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012919fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12921 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012922fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012923
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012924 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012925fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012927$as_echo "$ac_cv_c_bigendian" >&6; }
12928 case $ac_cv_c_bigendian in #(
12929 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012930 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012931;; #(
12932 no)
12933 ;; #(
12934 universal)
12935
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012936$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012937
12938 ;; #(
12939 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012940 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012941 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012942 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012943
Chen Qi91f04682014-05-05 21:08:42 -040012944if test $cross_compiling = no; then
12945 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12946else
12947 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12948fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012949ASM_TYPES_HEADER=./asm_types.h
12950
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012951echo "/* These defines are needed for the public ext2fs.h header file */" \
12952 > public_config.h
12953if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12954 uniq tmp_config.$$ >> public_config.h
12955else
12956 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12957fi
12958if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12959 uniq tmp_config.$$ >> public_config.h
12960else
12961 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12962fi
12963rm -f tmp_config.$$
12964PUBLIC_CONFIG_HEADER=./public_config.h
12965
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012966for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012967do :
12968 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012969if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012970 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012971#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012972_ACEOF
12973
12974fi
12975
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012976done
12977
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012978ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012979if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980
12981cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012982#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012983_ACEOF
12984
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012986fi
12987
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012988{ $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 +010012989$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012990if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012991 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012992else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012994/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012995#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012996int
12997main ()
12998{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012999struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013000 ;
13001 return 0;
13002}
13003_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013004if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013005 e2fsprogs_cv_struct_st_flags=yes
13006else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013007 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013008fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010fi
13011
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013013$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013014if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013016$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013017 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013018 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013019else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013021/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013022#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013023int
13024main ()
13025{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013026struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013027 ;
13028 return 0;
13029}
13030_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013031if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013032 e2fsprogs_cv_struct_st_flags_immut=yes
13033else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013034 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013035fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037fi
13038
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013040$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013041 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013042
13043$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013044
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013045 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013046fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013047ac_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 -050013048 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013049"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013050if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013051
13052cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013053#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013054_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013055
13056fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013057
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013058if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013060$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013061if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013062 $as_echo_n "(cached) " >&6
13063else
13064 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013065cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013066/* end confdefs.h. */
13067
13068/* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13071#ifdef __cplusplus
13072extern "C"
13073#endif
13074char blkid_probe_all ();
13075int
13076main ()
13077{
13078return blkid_probe_all ();
13079 ;
13080 return 0;
13081}
13082_ACEOF
13083for ac_lib in '' blkid; do
13084 if test -z "$ac_lib"; then
13085 ac_res="none required"
13086 else
13087 ac_res=-l$ac_lib
13088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13089 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013090 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013091 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013092fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013093rm -f core conftest.err conftest.$ac_objext \
13094 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013095 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013096 break
13097fi
13098done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013099if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013100
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013101else
13102 ac_cv_search_blkid_probe_all=no
13103fi
13104rm conftest.$ac_ext
13105LIBS=$ac_func_search_save_LIBS
13106fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013108$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13109ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013110if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13112
13113fi
13114
13115fi
Theodore Ts'o32179ce2016-06-07 00:14:35 -040013116if test -n "$DLOPEN_LIB" ; then
13117 ac_cv_func_dlopen=yes
13118fi
Shuichi Ihara32b88022018-05-01 22:26:06 -060013119for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname 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 -050013120do :
13121 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13122ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013123if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013124 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013125#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013126_ACEOF
13127
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013128fi
13129done
13130
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013131SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013133$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013134if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013135 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013137 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013138LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013140/* end confdefs.h. */
13141
Theodore Ts'oe1052142006-10-21 21:46:47 -040013142/* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013145#ifdef __cplusplus
13146extern "C"
13147#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013148char socket ();
13149int
13150main ()
13151{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013152return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013153 ;
13154 return 0;
13155}
13156_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013157if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013158 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013159else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013160 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013161fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013162rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013164LIBS=$ac_check_lib_save_LIBS
13165fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013167$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013168if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013169 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013170fi
13171
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013172
Darrick J. Wongb291c112014-09-13 15:12:46 -070013173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13174$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13175if ${ac_cv_lib_magic_magic_file+:} false; then :
13176 $as_echo_n "(cached) " >&6
13177else
13178 ac_check_lib_save_LIBS=$LIBS
13179LIBS="-lmagic $LIBS"
13180cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181/* end confdefs.h. */
13182
13183/* Override any GCC internal prototype to avoid an error.
13184 Use char because int might match the return type of a GCC
13185 builtin and then its argument prototype would still apply. */
13186#ifdef __cplusplus
13187extern "C"
13188#endif
13189char magic_file ();
13190int
13191main ()
13192{
13193return magic_file ();
13194 ;
13195 return 0;
13196}
13197_ACEOF
13198if ac_fn_c_try_link "$LINENO"; then :
13199 ac_cv_lib_magic_magic_file=yes
13200else
13201 ac_cv_lib_magic_magic_file=no
13202fi
13203rm -f core conftest.err conftest.$ac_objext \
13204 conftest$ac_exeext conftest.$ac_ext
13205LIBS=$ac_check_lib_save_LIBS
13206fi
13207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13208$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13209if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13210 MAGIC_LIB=-lmagic
13211for ac_header in magic.h
13212do :
13213 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13214if test "x$ac_cv_header_magic_h" = xyes; then :
13215 cat >>confdefs.h <<_ACEOF
13216#define HAVE_MAGIC_H 1
13217_ACEOF
13218
13219fi
13220
13221done
13222
13223fi
13224
Theodore Ts'o32179ce2016-06-07 00:14:35 -040013225if test "$ac_cv_func_dlopen" = yes ; then
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013226 MAGIC_LIB=$DLOPEN_LIB
13227fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013228
Theodore Ts'oc94da042016-06-21 23:16:39 -040013229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13230$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13231if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13232 $as_echo_n "(cached) " >&6
13233else
13234 ac_check_lib_save_LIBS=$LIBS
13235LIBS="-lrt $LIBS"
13236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h. */
13238
13239/* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13242#ifdef __cplusplus
13243extern "C"
13244#endif
13245char clock_gettime ();
13246int
13247main ()
13248{
13249return clock_gettime ();
13250 ;
13251 return 0;
13252}
13253_ACEOF
13254if ac_fn_c_try_link "$LINENO"; then :
13255 ac_cv_lib_rt_clock_gettime=yes
13256else
13257 ac_cv_lib_rt_clock_gettime=no
13258fi
13259rm -f core conftest.err conftest.$ac_objext \
13260 conftest$ac_exeext conftest.$ac_ext
13261LIBS=$ac_check_lib_save_LIBS
13262fi
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13264$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13265if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13266 CLOCK_GETTIME_LIB=-lrt
13267fi
13268
13269
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013270FUSE_CMT=
13271FUSE_LIB=
13272# Check whether --enable-fuse2fs was given.
13273if test "${enable_fuse2fs+set}" = set; then :
13274 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13275then
13276 FUSE_CMT="#"
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13278$as_echo "Disabling fuse2fs" >&6; }
13279else
13280 for ac_header in pthread.h fuse.h
13281do :
13282 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13283ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13284#define FUSE_USE_VERSION 29
13285"
13286if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13287 cat >>confdefs.h <<_ACEOF
13288#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13289_ACEOF
13290
13291else
13292 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13293$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13294as_fn_error $? "Cannot find fuse2fs headers.
13295See \`config.log' for more details" "$LINENO" 5; }
13296fi
13297
13298done
13299
13300
13301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13302/* end confdefs.h. */
13303#define FUSE_USE_VERSION 29
13304#ifdef __linux__
13305#include <linux/fs.h>
13306#include <linux/falloc.h>
13307#include <linux/xattr.h>
13308#endif
13309
13310int
13311main ()
13312{
13313
13314 ;
13315 return 0;
13316}
13317_ACEOF
13318if ac_fn_c_try_cpp "$LINENO"; then :
13319
13320else
13321 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13322$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13323as_fn_error $? "Cannot find fuse2fs Linux headers.
13324See \`config.log' for more details" "$LINENO" 5; }
13325fi
13326rm -f conftest.err conftest.i conftest.$ac_ext
13327
13328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13329$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13330if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13331 $as_echo_n "(cached) " >&6
13332else
13333 ac_check_lib_save_LIBS=$LIBS
13334LIBS="-losxfuse $LIBS"
13335cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336/* end confdefs.h. */
13337
13338/* Override any GCC internal prototype to avoid an error.
13339 Use char because int might match the return type of a GCC
13340 builtin and then its argument prototype would still apply. */
13341#ifdef __cplusplus
13342extern "C"
13343#endif
13344char fuse_main ();
13345int
13346main ()
13347{
13348return fuse_main ();
13349 ;
13350 return 0;
13351}
13352_ACEOF
13353if ac_fn_c_try_link "$LINENO"; then :
13354 ac_cv_lib_osxfuse_fuse_main=yes
13355else
13356 ac_cv_lib_osxfuse_fuse_main=no
13357fi
13358rm -f core conftest.err conftest.$ac_objext \
13359 conftest$ac_exeext conftest.$ac_ext
13360LIBS=$ac_check_lib_save_LIBS
13361fi
13362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13363$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13364if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13365 FUSE_LIB=-losxfuse
13366else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13368$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13369if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13370 $as_echo_n "(cached) " >&6
13371else
13372 ac_check_lib_save_LIBS=$LIBS
13373LIBS="-lfuse $LIBS"
13374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13375/* end confdefs.h. */
13376
13377/* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13380#ifdef __cplusplus
13381extern "C"
13382#endif
13383char fuse_main ();
13384int
13385main ()
13386{
13387return fuse_main ();
13388 ;
13389 return 0;
13390}
13391_ACEOF
13392if ac_fn_c_try_link "$LINENO"; then :
13393 ac_cv_lib_fuse_fuse_main=yes
13394else
13395 ac_cv_lib_fuse_fuse_main=no
13396fi
13397rm -f core conftest.err conftest.$ac_objext \
13398 conftest$ac_exeext conftest.$ac_ext
13399LIBS=$ac_check_lib_save_LIBS
13400fi
13401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13402$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13403if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13404 FUSE_LIB=-lfuse
13405else
13406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13408as_fn_error $? "Cannot find fuse library.
13409See \`config.log' for more details" "$LINENO" 5; }
13410fi
13411
13412fi
13413
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13415$as_echo "Enabling fuse2fs" >&6; }
13416fi
13417
13418else
13419 for ac_header in pthread.h fuse.h
13420do :
13421 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13422ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13423#define FUSE_USE_VERSION 29
13424#ifdef __linux__
13425# include <linux/fs.h>
13426# include <linux/falloc.h>
13427# include <linux/xattr.h>
13428#endif
13429"
13430if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13431 cat >>confdefs.h <<_ACEOF
13432#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13433_ACEOF
13434
13435else
13436 FUSE_CMT="#"
13437fi
13438
13439done
13440
13441if test -z "$FUSE_CMT"
13442then
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13444$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13445if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13446 $as_echo_n "(cached) " >&6
13447else
13448 ac_check_lib_save_LIBS=$LIBS
13449LIBS="-losxfuse $LIBS"
13450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451/* end confdefs.h. */
13452
13453/* Override any GCC internal prototype to avoid an error.
13454 Use char because int might match the return type of a GCC
13455 builtin and then its argument prototype would still apply. */
13456#ifdef __cplusplus
13457extern "C"
13458#endif
13459char fuse_main ();
13460int
13461main ()
13462{
13463return fuse_main ();
13464 ;
13465 return 0;
13466}
13467_ACEOF
13468if ac_fn_c_try_link "$LINENO"; then :
13469 ac_cv_lib_osxfuse_fuse_main=yes
13470else
13471 ac_cv_lib_osxfuse_fuse_main=no
13472fi
13473rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13475LIBS=$ac_check_lib_save_LIBS
13476fi
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13478$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13479if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13480 FUSE_LIB=-losxfuse
13481else
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13483$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13484if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13485 $as_echo_n "(cached) " >&6
13486else
13487 ac_check_lib_save_LIBS=$LIBS
13488LIBS="-lfuse $LIBS"
13489cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13490/* end confdefs.h. */
13491
13492/* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13495#ifdef __cplusplus
13496extern "C"
13497#endif
13498char fuse_main ();
13499int
13500main ()
13501{
13502return fuse_main ();
13503 ;
13504 return 0;
13505}
13506_ACEOF
13507if ac_fn_c_try_link "$LINENO"; then :
13508 ac_cv_lib_fuse_fuse_main=yes
13509else
13510 ac_cv_lib_fuse_fuse_main=no
13511fi
13512rm -f core conftest.err conftest.$ac_objext \
13513 conftest$ac_exeext conftest.$ac_ext
13514LIBS=$ac_check_lib_save_LIBS
13515fi
13516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13517$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13518if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13519 FUSE_LIB=-lfuse
13520else
13521 FUSE_CMT="#"
13522fi
13523
13524fi
13525
13526fi
13527if test -z "$FUSE_CMT"
13528then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13530$as_echo "Enabling fuse2fs by default." >&6; }
13531fi
13532
13533fi
13534
13535
13536
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013538$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013539if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013540 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013543/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013544#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013545
13546_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013547if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013548 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013549 ac_cv_have_optreset=yes
13550else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013551 ac_cv_have_optreset=no
13552fi
13553rm -f conftest*
13554
13555fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013557$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013558if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013559
13560$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013561
13562fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013563
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013564SEM_INIT_LIB=''
Theodore Ts'ocfb8e0b2017-07-27 19:43:00 -040013565echo GL_THREADS_API: ${gl_threads_api}
13566if test "${gl_threads_api}" != none
13567then
13568 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013569if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013570
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013571else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013573$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013574if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013575 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013576else
13577 ac_check_lib_save_LIBS=$LIBS
13578LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013579cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013580/* end confdefs.h. */
13581
13582/* Override any GCC internal prototype to avoid an error.
13583 Use char because int might match the return type of a GCC
13584 builtin and then its argument prototype would still apply. */
13585#ifdef __cplusplus
13586extern "C"
13587#endif
13588char sem_init ();
13589int
13590main ()
13591{
13592return sem_init ();
13593 ;
13594 return 0;
13595}
13596_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013597if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013598 ac_cv_lib_pthread_sem_init=yes
13599else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013600 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013601fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013602rm -f core conftest.err conftest.$ac_objext \
13603 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013604LIBS=$ac_check_lib_save_LIBS
13605fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013607$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013608if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013609 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013610
13611 SEM_INIT_LIB=-lpthread
13612else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013614$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013615if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013616 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013617else
13618 ac_check_lib_save_LIBS=$LIBS
13619LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013621/* end confdefs.h. */
13622
13623/* Override any GCC internal prototype to avoid an error.
13624 Use char because int might match the return type of a GCC
13625 builtin and then its argument prototype would still apply. */
13626#ifdef __cplusplus
13627extern "C"
13628#endif
13629char sem_init ();
13630int
13631main ()
13632{
13633return sem_init ();
13634 ;
13635 return 0;
13636}
13637_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013638if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013639 ac_cv_lib_rt_sem_init=yes
13640else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013641 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013642fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013643rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013645LIBS=$ac_check_lib_save_LIBS
13646fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013648$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013649if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013650 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013651
13652 SEM_INIT_LIB=-lrt
13653else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013655$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013656if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013657 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013658else
13659 ac_check_lib_save_LIBS=$LIBS
13660LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013661cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013662/* end confdefs.h. */
13663
13664/* Override any GCC internal prototype to avoid an error.
13665 Use char because int might match the return type of a GCC
13666 builtin and then its argument prototype would still apply. */
13667#ifdef __cplusplus
13668extern "C"
13669#endif
13670char sem_init ();
13671int
13672main ()
13673{
13674return sem_init ();
13675 ;
13676 return 0;
13677}
13678_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013679if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013680 ac_cv_lib_posix4_sem_init=yes
13681else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013682 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013683fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013684rm -f core conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013686LIBS=$ac_check_lib_save_LIBS
13687fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013689$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013690if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013691 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013692
13693 SEM_INIT_LIB=-lposix4
13694fi
13695
13696fi
13697
13698fi
13699
13700fi
Theodore Ts'ocfb8e0b2017-07-27 19:43:00 -040013701fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013702
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013704$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013705if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013706 UNI_DIFF_OPTS=-u
13707else
13708 UNI_DIFF_OPTS=-c
13709fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013711$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013712
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013713case "$host_os" in
13714linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013715
13716$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013717
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013718 ;;
13719esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013720LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013721CYGWIN_CMT="#"
13722UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013723case "$host_os" in
13724linux*)
13725 LINUX_CMT=
13726 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013727cygwin)
13728 CYGWIN_CMT=
13729 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013730 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013731esac
13732
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013733
13734
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013735case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013736linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013737 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13738 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013739 { $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 +010013740$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013741 fi
13742 ;;
13743esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013744case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013745linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013746 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013747 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013748 { $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 +010013749$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013750 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013752$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013753 mandir=/usr/share/man
13754 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013755 fi
13756;;
13757esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013758if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013759 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013760 root_prefix="$ac_default_prefix"
13761 else
13762 root_prefix="$prefix"
13763 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013764 root_bindir=$bindir
13765 root_sbindir=$sbindir
13766 root_libdir=$libdir
13767 root_sysconfdir=$sysconfdir
13768else
13769 root_bindir='${root_prefix}/bin'
13770 root_sbindir='${root_prefix}/sbin'
13771 root_libdir='${root_prefix}/lib'
13772 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013773fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013774if test "$bindir" != '${exec_prefix}/bin'; then
13775 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013777$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013778fi
13779if test "$sbindir" != '${exec_prefix}/sbin'; then
13780 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013782$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013783fi
13784if test "$libdir" != '${exec_prefix}/lib'; then
13785 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013787$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013788fi
13789if test "$sysconfdir" != '${prefix}/etc'; then
13790 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013792$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013793fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013794
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013795
13796
13797
13798
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013799
13800# Check whether --with-multiarch was given.
13801if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013802 withval=$with_multiarch; if test "$withval" = "lib64"; then
13803 libdir=/usr/lib64
13804 root_libdir=/lib64
13805else
13806 libdir=$libdir/$withval
13807 root_libdir=$root_libdir/$withval
13808fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013809
13810fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13812$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013813if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013814 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013815else
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013816 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013818/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013819#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013820int
13821main ()
13822{
Theodore Ts'oae851481997-04-29 18:13:24 +000013823fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013824 ;
13825 return 0;
13826}
13827_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013828if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013829 ac_cv_e2fsprogs_use_static=yes
13830else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013831 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013832fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013833rm -f core conftest.err conftest.$ac_objext \
13834 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013835LDFLAGS=$SAVE_LDFLAGS
13836fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013837
Theodore Ts'odefde781999-01-04 07:39:19 +000013838case "$host_os" in
13839solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013840 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013841;;
13842esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013844$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'oae851481997-04-29 18:13:24 +000013845if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013846 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
Theodore Ts'oae851481997-04-29 18:13:24 +000013847fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013848
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013849case "$host_os" in
13850darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013852$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013853
13854$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013855
13856 ;;
13857esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013858if test "$cross_compiling" = yes ; then
13859 DO_TEST_SUITE=
13860else
13861 DO_TEST_SUITE=check
13862fi
13863
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013864INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13865if test -n "$CPPFLAGS" ; then
13866 INCLUDES="$INCLUDES $CPPFLAGS"
13867fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013868if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013869 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013870fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013871if test -n "$WITH_DIET_LIBC" ; then
13872 INCLUDES="$INCLUDES -D_REENTRANT"
13873fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013874
Theodore Ts'odd947da2005-11-09 18:37:07 -040013875if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013876 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013877 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013878fi
13879
13880
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013881CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13882CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13883LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13884
13885
13886
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013887test -d lib || mkdir lib
13888test -d include || mkdir include
13889test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013890test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013891if test -z "$UUID_CMT" ; then
13892 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13893 lib/uuid/uuid_types.h"
13894fi
13895if test -z "$BLKID_CMT" ; then
13896 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13897 lib/blkid/blkid_types.h"
13898fi
Theodore Ts'oe5f0f3e2018-08-18 10:42:44 -040013899for i in MCONFIG Makefile \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013900 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013901 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13902 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013903 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013904 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 -050013905 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013906 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013907 resize/Makefile doc/Makefile intl/Makefile \
13908 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013909 if test -d `dirname ${srcdir}/$i` ; then
13910 outlist="$outlist $i"
13911 fi
13912done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013913ac_config_files="$ac_config_files $outlist"
13914
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013915cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013916# This file is a shell script that caches the results of configure
13917# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013918# scripts and configure runs, see configure's option --config-cache.
13919# It is not useful on other systems. If it contains results you don't
13920# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013921#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013922# config.status only pays attention to the cache file if you give it
13923# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013924#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013925# `ac_cv_env_foo' variables (set or unset) will be overridden when
13926# loading this file, other *unset* `ac_cv_foo' will be assigned the
13927# following values.
13928
13929_ACEOF
13930
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013931# The following way of writing the cache mishandles newlines in values,
13932# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013933# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013934# Ultrix sh set writes to stderr and can't be redirected directly,
13935# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936(
13937 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13938 eval ac_val=\$$ac_var
13939 case $ac_val in #(
13940 *${as_nl}*)
13941 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013942 *_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 +010013943$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013944 esac
13945 case $ac_var in #(
13946 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013947 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013948 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013949 esac ;;
13950 esac
13951 done
13952
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013953 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013954 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13955 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013956 # `set' does not quote correctly, so add quotes: double-quote
13957 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013958 sed -n \
13959 "s/'/'\\\\''/g;
13960 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013961 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013962 *)
13963 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013964 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013965 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013966 esac |
13967 sort
13968) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013969 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013970 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013971 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013972 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013973 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13974 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013975 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13976 :end' >>confcache
13977if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13978 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013979 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013980 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013981$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013982 if test ! -f "$cache_file" || test -h "$cache_file"; then
13983 cat confcache >"$cache_file"
13984 else
13985 case $cache_file in #(
13986 */* | ?:*)
13987 mv -f confcache "$cache_file"$$ &&
13988 mv -f "$cache_file"$$ "$cache_file" ;; #(
13989 *)
13990 mv -f confcache "$cache_file" ;;
13991 esac
13992 fi
13993 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013994 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013995 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013996$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013997 fi
13998fi
13999rm -f confcache
14000
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014001test "x$prefix" = xNONE && prefix=$ac_default_prefix
14002# Let make expand exec_prefix.
14003test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14004
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014005DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014007ac_libobjs=
14008ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014009U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014010for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14011 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014012 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014013 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014014 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14015 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014016 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14017 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014018done
14019LIBOBJS=$ac_libobjs
14020
14021LTLIBOBJS=$ac_ltlibobjs
14022
14023
14024
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014025
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014026: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014027ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014028ac_clean_files_save=$ac_clean_files
14029ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014030{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014031$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014032as_write_fail=0
14033cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014034#! $SHELL
14035# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014036# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014037# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014038# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014040debug=false
14041ac_cs_recheck=false
14042ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014043
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014044SHELL=\${CONFIG_SHELL-$SHELL}
14045export SHELL
14046_ASEOF
14047cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14048## -------------------- ##
14049## M4sh Initialization. ##
14050## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014051
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014052# Be more Bourne compatible
14053DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014054if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014055 emulate sh
14056 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014057 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014058 # is contrary to our usage. Disable this feature.
14059 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014060 setopt NO_GLOB_SUBST
14061else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014062 case `(set -o) 2>/dev/null` in #(
14063 *posix*) :
14064 set -o posix ;; #(
14065 *) :
14066 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014067esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014068fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014069
14070
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014071as_nl='
14072'
14073export as_nl
14074# Printing a long string crashes Solaris 7 /usr/bin/printf.
14075as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14076as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14077as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014078# Prefer a ksh shell builtin over an external printf program on Solaris,
14079# but without wasting forks for bash or zsh.
14080if test -z "$BASH_VERSION$ZSH_VERSION" \
14081 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14082 as_echo='print -r --'
14083 as_echo_n='print -rn --'
14084elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014085 as_echo='printf %s\n'
14086 as_echo_n='printf %s'
14087else
14088 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14089 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14090 as_echo_n='/usr/ucb/echo -n'
14091 else
14092 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14093 as_echo_n_body='eval
14094 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014095 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014096 *"$as_nl"*)
14097 expr "X$arg" : "X\\(.*\\)$as_nl";
14098 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14099 esac;
14100 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14101 '
14102 export as_echo_n_body
14103 as_echo_n='sh -c $as_echo_n_body as_echo'
14104 fi
14105 export as_echo_body
14106 as_echo='sh -c $as_echo_body as_echo'
14107fi
14108
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014109# The user is always right.
14110if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014111 PATH_SEPARATOR=:
14112 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14113 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14114 PATH_SEPARATOR=';'
14115 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014116fi
14117
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118
14119# IFS
14120# We need space, tab and new line, in precisely that order. Quoting is
14121# there to prevent editors from complaining about space-tab.
14122# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14123# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014124IFS=" "" $as_nl"
14125
14126# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014127as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014128case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014129 *[\\/]* ) as_myself=$0 ;;
14130 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014131for as_dir in $PATH
14132do
14133 IFS=$as_save_IFS
14134 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014135 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14136 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014137IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014138
Theodore Ts'oe1052142006-10-21 21:46:47 -040014139 ;;
14140esac
14141# We did not find ourselves, most probably we were run as `sh COMMAND'
14142# in which case we are not to be found in the path.
14143if test "x$as_myself" = x; then
14144 as_myself=$0
14145fi
14146if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014147 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014148 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014149fi
14150
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014151# Unset variables that we do not need and which cause bugs (e.g. in
14152# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14153# suppresses any "Segmentation fault" message there. '((' could
14154# trigger a bug in pdksh 5.2.14.
14155for as_var in BASH_ENV ENV MAIL MAILPATH
14156do eval test x\${$as_var+set} = xset \
14157 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040014158done
14159PS1='$ '
14160PS2='> '
14161PS4='+ '
14162
14163# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014164LC_ALL=C
14165export LC_ALL
14166LANGUAGE=C
14167export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040014168
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014169# CDPATH.
14170(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14171
14172
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014173# as_fn_error STATUS ERROR [LINENO LOG_FD]
14174# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014175# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14176# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014177# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014178as_fn_error ()
14179{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014180 as_status=$1; test $as_status -eq 0 && as_status=1
14181 if test "$4"; then
14182 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14183 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014184 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014185 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014186 as_fn_exit $as_status
14187} # as_fn_error
14188
14189
14190# as_fn_set_status STATUS
14191# -----------------------
14192# Set $? to STATUS, without forking.
14193as_fn_set_status ()
14194{
14195 return $1
14196} # as_fn_set_status
14197
14198# as_fn_exit STATUS
14199# -----------------
14200# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14201as_fn_exit ()
14202{
14203 set +e
14204 as_fn_set_status $1
14205 exit $1
14206} # as_fn_exit
14207
14208# as_fn_unset VAR
14209# ---------------
14210# Portably unset VAR.
14211as_fn_unset ()
14212{
14213 { eval $1=; unset $1;}
14214}
14215as_unset=as_fn_unset
14216# as_fn_append VAR VALUE
14217# ----------------------
14218# Append the text in VALUE to the end of the definition contained in VAR. Take
14219# advantage of any shell optimizations that allow amortized linear growth over
14220# repeated appends, instead of the typical quadratic growth present in naive
14221# implementations.
14222if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14223 eval 'as_fn_append ()
14224 {
14225 eval $1+=\$2
14226 }'
14227else
14228 as_fn_append ()
14229 {
14230 eval $1=\$$1\$2
14231 }
14232fi # as_fn_append
14233
14234# as_fn_arith ARG...
14235# ------------------
14236# Perform arithmetic evaluation on the ARGs, and store the result in the
14237# global $as_val. Take advantage of shells that can avoid forks. The arguments
14238# must be portable across $(()) and expr.
14239if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14240 eval 'as_fn_arith ()
14241 {
14242 as_val=$(( $* ))
14243 }'
14244else
14245 as_fn_arith ()
14246 {
14247 as_val=`expr "$@" || test $? -eq 1`
14248 }
14249fi # as_fn_arith
14250
14251
Theodore Ts'oe1052142006-10-21 21:46:47 -040014252if expr a : '\(a\)' >/dev/null 2>&1 &&
14253 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14254 as_expr=expr
14255else
14256 as_expr=false
14257fi
14258
14259if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14260 as_basename=basename
14261else
14262 as_basename=false
14263fi
14264
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014265if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14266 as_dirname=dirname
14267else
14268 as_dirname=false
14269fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014270
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271as_me=`$as_basename -- "$0" ||
14272$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14273 X"$0" : 'X\(//\)$' \| \
14274 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014275$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014276 sed '/^.*\/\([^/][^/]*\)\/*$/{
14277 s//\1/
14278 q
14279 }
14280 /^X\/\(\/\/\)$/{
14281 s//\1/
14282 q
14283 }
14284 /^X\/\(\/\).*/{
14285 s//\1/
14286 q
14287 }
14288 s/.*/./; q'`
14289
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014290# Avoid depending upon Character Ranges.
14291as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14292as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14293as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14294as_cr_digits='0123456789'
14295as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014296
14297ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014298case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014299-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014300 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014301 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014302 xy) ECHO_C='\c';;
14303 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14304 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014305 esac;;
14306*)
14307 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014308esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014309
14310rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014311if test -d conf$$.dir; then
14312 rm -f conf$$.dir/conf$$.file
14313else
14314 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014315 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014317if (echo >conf$$.file) 2>/dev/null; then
14318 if ln -s conf$$.file conf$$ 2>/dev/null; then
14319 as_ln_s='ln -s'
14320 # ... but there are two gotchas:
14321 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14322 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014323 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014324 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014325 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014326 elif ln conf$$.file conf$$ 2>/dev/null; then
14327 as_ln_s=ln
14328 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014329 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014330 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014331else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014332 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014333fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014334rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14335rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014336
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014337
14338# as_fn_mkdir_p
14339# -------------
14340# Create "$as_dir" as a directory, including parents if necessary.
14341as_fn_mkdir_p ()
14342{
14343
14344 case $as_dir in #(
14345 -*) as_dir=./$as_dir;;
14346 esac
14347 test -d "$as_dir" || eval $as_mkdir_p || {
14348 as_dirs=
14349 while :; do
14350 case $as_dir in #(
14351 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14352 *) as_qdir=$as_dir;;
14353 esac
14354 as_dirs="'$as_qdir' $as_dirs"
14355 as_dir=`$as_dirname -- "$as_dir" ||
14356$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14357 X"$as_dir" : 'X\(//\)[^/]' \| \
14358 X"$as_dir" : 'X\(//\)$' \| \
14359 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14360$as_echo X"$as_dir" |
14361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14362 s//\1/
14363 q
14364 }
14365 /^X\(\/\/\)[^/].*/{
14366 s//\1/
14367 q
14368 }
14369 /^X\(\/\/\)$/{
14370 s//\1/
14371 q
14372 }
14373 /^X\(\/\).*/{
14374 s//\1/
14375 q
14376 }
14377 s/.*/./; q'`
14378 test -d "$as_dir" && break
14379 done
14380 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014381 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014382
14383
14384} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014386 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014387else
14388 test -d ./-p && rmdir ./-p
14389 as_mkdir_p=false
14390fi
14391
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014392
14393# as_fn_executable_p FILE
14394# -----------------------
14395# Test if FILE is an executable regular file.
14396as_fn_executable_p ()
14397{
14398 test -f "$1" && test -x "$1"
14399} # as_fn_executable_p
14400as_test_x='test -x'
14401as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014402
14403# Sed expression to map a string onto a valid CPP name.
14404as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14405
14406# Sed expression to map a string onto a valid variable name.
14407as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14408
14409
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014411## ----------------------------------- ##
14412## Main body of $CONFIG_STATUS script. ##
14413## ----------------------------------- ##
14414_ASEOF
14415test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014416
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14418# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014419# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014420# values after options handling.
14421ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014423generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014424
14425 CONFIG_FILES = $CONFIG_FILES
14426 CONFIG_HEADERS = $CONFIG_HEADERS
14427 CONFIG_LINKS = $CONFIG_LINKS
14428 CONFIG_COMMANDS = $CONFIG_COMMANDS
14429 $ $0 $@
14430
Theodore Ts'oe1052142006-10-21 21:46:47 -040014431on `(hostname || uname -n) 2>/dev/null | sed 1q`
14432"
14433
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014434_ACEOF
14435
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014436case $ac_config_files in *"
14437"*) set x $ac_config_files; shift; ac_config_files=$*;;
14438esac
14439
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014440case $ac_config_headers in *"
14441"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14442esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014443
14444
14445cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014446# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014447config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014448config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014449config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450
Theodore Ts'oe1052142006-10-21 21:46:47 -040014451_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014453cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014454ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014455\`$as_me' instantiates files and other configuration actions
14456from templates according to the current configuration. Unless the files
14457and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014458
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014459Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460
14461 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014462 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014463 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014464 -q, --quiet, --silent
14465 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014466 -d, --debug don't remove temporary files
14467 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014468 --file=FILE[:TEMPLATE]
14469 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014470 --header=FILE[:TEMPLATE]
14471 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014472
14473Configuration files:
14474$config_files
14475
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014476Configuration headers:
14477$config_headers
14478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014479Configuration commands:
14480$config_commands
14481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014482Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014483
Theodore Ts'oe1052142006-10-21 21:46:47 -040014484_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014485cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014486ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014487ac_cs_version="\\
14488config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014489configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014490 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014491
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014492Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014493This config.status script is free software; the Free Software Foundation
14494gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014495
14496ac_pwd='$ac_pwd'
14497srcdir='$srcdir'
14498INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014499MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014500AWK='$AWK'
14501test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014502_ACEOF
14503
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14505# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014506ac_need_defaults=:
14507while test $# != 0
14508do
14509 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014510 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014511 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14512 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014513 ac_shift=:
14514 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014515 --*=)
14516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14517 ac_optarg=
14518 ac_shift=:
14519 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014520 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014521 ac_option=$1
14522 ac_optarg=$2
14523 ac_shift=shift
14524 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014525 esac
14526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014527 case $ac_option in
14528 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14530 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014532 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014533 --config | --confi | --conf | --con | --co | --c )
14534 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014535 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014536 debug=: ;;
14537 --file | --fil | --fi | --f )
14538 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014539 case $ac_optarg in
14540 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014541 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014542 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014543 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014544 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014545 --header | --heade | --head | --hea )
14546 $ac_shift
14547 case $ac_optarg in
14548 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14549 esac
14550 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14551 ac_need_defaults=false;;
14552 --he | --h)
14553 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014554 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014555Try \`$0 --help' for more information.";;
14556 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014557 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014558 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14559 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14560 ac_cs_silent=: ;;
14561
14562 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014563 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014564Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014565
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014566 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014567 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014568
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014569 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014570 shift
14571done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014573ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014575if $ac_cs_silent; then
14576 exec 6>/dev/null
14577 ac_configure_extra_args="$ac_configure_extra_args --silent"
14578fi
14579
14580_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014581cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014582if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014583 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014584 shift
14585 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14586 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014587 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014588 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014589fi
14590
14591_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014593exec 5>>config.log
14594{
14595 echo
14596 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14597## Running $as_me. ##
14598_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014599 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014600} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014601
Theodore Ts'oe1052142006-10-21 21:46:47 -040014602_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014604#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014605# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014606#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014607# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014608 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014609 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014610 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014611 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14612 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014613
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014615_ACEOF
14616
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014617cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014618
14619# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014620for ac_config_target in $ac_config_targets
14621do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014622 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014623 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014624 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014625 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14626
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014627 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014628 esac
14629done
14630
Theodore Ts'oe1052142006-10-21 21:46:47 -040014631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014632# If the user did not use the arguments to specify the items to instantiate,
14633# then the envvar interface is used. Set only those that are not.
14634# We use the long form for the default assignment because of an extremely
14635# bizarre bug on SunOS 4.1.3.
14636if $ac_need_defaults; then
14637 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014638 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014639 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14640fi
14641
14642# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014643# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014644# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014645# Hook for its removal unless debugging.
14646# Note that there is a small window in which the directory will not be cleaned:
14647# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014648$debug ||
14649{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014650 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014651 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014652 : "${ac_tmp:=$tmp}"
14653 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014654' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014655 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014656}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014657# Create a (secure) tmp directory for tmp files.
14658
14659{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014660 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014661 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014662} ||
14663{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014664 tmp=./conf$$-$RANDOM
14665 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014666} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14667ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014668
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014669# Set up the scripts for CONFIG_FILES section.
14670# No need to generate them if there are no CONFIG_FILES.
14671# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014672if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014673
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014674if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14675 ac_cs_awk_getline=:
14676 ac_cs_awk_pipe_init=
14677 ac_cs_awk_read_file='
14678 while ((getline aline < (F[key])) > 0)
14679 print(aline)
14680 close(F[key])'
14681 ac_cs_awk_pipe_fini=
14682else
14683 ac_cs_awk_getline=false
14684 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14685 ac_cs_awk_read_file='
14686 print "|#_!!_#|"
14687 print "cat " F[key] " &&"
14688 '$ac_cs_awk_pipe_init
14689 # The final `:' finishes the AND list.
14690 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14691fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014692ac_cr=`echo X | tr X '\015'`
14693# On cygwin, bash can eat \r inside `` if the user requested igncr.
14694# But we know of no other shell where ac_cr would be empty at this
14695# point, so we can use a bashism as a fallback.
14696if test "x$ac_cr" = x; then
14697 eval ac_cr=\$\'\\r\'
14698fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014699ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14700if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014701 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014702else
14703 ac_cs_awk_cr=$ac_cr
14704fi
14705
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014706echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014707_ACEOF
14708
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014709# Create commands to substitute file output variables.
14710{
14711 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014712 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014713 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14714 echo "_ACAWK" &&
14715 echo "_ACEOF"
14716} >conf$$files.sh &&
14717. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014719rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014720
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014721{
14722 echo "cat >conf$$subs.awk <<_ACEOF" &&
14723 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14724 echo "_ACEOF"
14725} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014726 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14727ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014728ac_delim='%!_!# '
14729for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014730 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014732
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014733 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14734 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014735 break
14736 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014737 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014738 else
14739 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014740 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014741done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014742rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014743
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014744cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014745cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014746_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014747sed -n '
14748h
14749s/^/S["/; s/!.*/"]=/
14750p
14751g
14752s/^[^!]*!//
14753:repl
14754t repl
14755s/'"$ac_delim"'$//
14756t delim
14757:nl
14758h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014759s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014760t more1
14761s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14762p
14763n
14764b repl
14765:more1
14766s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14767p
14768g
14769s/.\{148\}//
14770t nl
14771:delim
14772h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014773s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014774t more2
14775s/["\\]/\\&/g; s/^/"/; s/$/"/
14776p
14777b
14778:more2
14779s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14780p
14781g
14782s/.\{148\}//
14783t delim
14784' <conf$$subs.awk | sed '
14785/^[^""]/{
14786 N
14787 s/\n//
14788}
14789' >>$CONFIG_STATUS || ac_write_fail=1
14790rm -f conf$$subs.awk
14791cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14792_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014793cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014794 for (key in S) S_is_set[key] = 1
14795 FS = ""
14796 \$ac_cs_awk_pipe_init
14797}
14798{
14799 line = $ 0
14800 nfields = split(line, field, "@")
14801 substed = 0
14802 len = length(field[1])
14803 for (i = 2; i < nfields; i++) {
14804 key = field[i]
14805 keylen = length(key)
14806 if (S_is_set[key]) {
14807 value = S[key]
14808 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14809 len += length(value) + length(field[++i])
14810 substed = 1
14811 } else
14812 len += 1 + keylen
14813 }
14814 if (nfields == 3 && !substed) {
14815 key = field[2]
14816 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14817 \$ac_cs_awk_read_file
14818 next
14819 }
14820 }
14821 print line
14822}
14823\$ac_cs_awk_pipe_fini
14824_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014825_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014826cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14827if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14828 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14829else
14830 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014831fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14832 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014833_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014834
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014835# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14836# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014837# trailing colons and then remove the whole line if VPATH becomes empty
14838# (actually we leave an empty line to preserve line numbers).
14839if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014840 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14841h
14842s///
14843s/^/:/
14844s/[ ]*$/:/
14845s/:\$(srcdir):/:/g
14846s/:\${srcdir}:/:/g
14847s/:@srcdir@:/:/g
14848s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014849s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014850x
14851s/\(=[ ]*\).*/\1/
14852G
14853s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014854s/^[^=]*=[ ]*$//
14855}'
14856fi
14857
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014858cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014859fi # test -n "$CONFIG_FILES"
14860
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014861# Set up the scripts for CONFIG_HEADERS section.
14862# No need to generate them if there are no CONFIG_HEADERS.
14863# This happens for instance with `./config.status Makefile'.
14864if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014865cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014866BEGIN {
14867_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014868
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014869# Transform confdefs.h into an awk script `defines.awk', embedded as
14870# here-document in config.status, that substitutes the proper values into
14871# config.h.in to produce config.h.
14872
14873# Create a delimiter string that does not exist in confdefs.h, to ease
14874# handling of long lines.
14875ac_delim='%!_!# '
14876for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014877 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14878 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014879 break
14880 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014881 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014882 else
14883 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14884 fi
14885done
14886
14887# For the awk script, D is an array of macro values keyed by name,
14888# likewise P contains macro parameters if any. Preserve backslash
14889# newline sequences.
14890
14891ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14892sed -n '
14893s/.\{148\}/&'"$ac_delim"'/g
14894t rset
14895:rset
14896s/^[ ]*#[ ]*define[ ][ ]*/ /
14897t def
14898d
14899:def
14900s/\\$//
14901t bsnl
14902s/["\\]/\\&/g
14903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14904D["\1"]=" \3"/p
14905s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14906d
14907:bsnl
14908s/["\\]/\\&/g
14909s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14910D["\1"]=" \3\\\\\\n"\\/p
14911t cont
14912s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14913t cont
14914d
14915:cont
14916n
14917s/.\{148\}/&'"$ac_delim"'/g
14918t clear
14919:clear
14920s/\\$//
14921t bsnlc
14922s/["\\]/\\&/g; s/^/"/; s/$/"/p
14923d
14924:bsnlc
14925s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14926b cont
14927' <confdefs.h | sed '
14928s/'"$ac_delim"'/"\\\
14929"/g' >>$CONFIG_STATUS || ac_write_fail=1
14930
14931cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14932 for (key in D) D_is_set[key] = 1
14933 FS = ""
14934}
14935/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14936 line = \$ 0
14937 split(line, arg, " ")
14938 if (arg[1] == "#") {
14939 defundef = arg[2]
14940 mac1 = arg[3]
14941 } else {
14942 defundef = substr(arg[1], 2)
14943 mac1 = arg[2]
14944 }
14945 split(mac1, mac2, "(") #)
14946 macro = mac2[1]
14947 prefix = substr(line, 1, index(line, defundef) - 1)
14948 if (D_is_set[macro]) {
14949 # Preserve the white space surrounding the "#".
14950 print prefix "define", macro P[macro] D[macro]
14951 next
14952 } else {
14953 # Replace #undef with comments. This is necessary, for example,
14954 # in the case of _POSIX_SOURCE, which is predefined and required
14955 # on some systems where configure will not decide to define it.
14956 if (defundef == "undef") {
14957 print "/*", prefix defundef, macro, "*/"
14958 next
14959 }
14960 }
14961}
14962{ print }
14963_ACAWK
14964_ACEOF
14965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014966 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014967fi # test -n "$CONFIG_HEADERS"
14968
14969
14970eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014971shift
14972for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014973do
14974 case $ac_tag in
14975 :[FHLC]) ac_mode=$ac_tag; continue;;
14976 esac
14977 case $ac_mode$ac_tag in
14978 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014979 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014980 :[FH]-) ac_tag=-:-;;
14981 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14982 esac
14983 ac_save_IFS=$IFS
14984 IFS=:
14985 set x $ac_tag
14986 IFS=$ac_save_IFS
14987 shift
14988 ac_file=$1
14989 shift
14990
14991 case $ac_mode in
14992 :L) ac_source=$1;;
14993 :[FH])
14994 ac_file_inputs=
14995 for ac_f
14996 do
14997 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014998 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014999 *) # Look for the file first in the build tree, then in the source tree
15000 # (if the path is not absolute). The absolute path cannot be DOS-style,
15001 # because $ac_f cannot contain `:'.
15002 test -f "$ac_f" ||
15003 case $ac_f in
15004 [\\/$]*) false;;
15005 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15006 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015007 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015008 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015009 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015010 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015011 done
15012
15013 # Let's still pretend it is `configure' which instantiates (i.e., don't
15014 # use $as_me), people would be surprised to read:
15015 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015016 configure_input='Generated from '`
15017 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15018 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015019 if test x"$ac_file" != x-; then
15020 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015021 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015022$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015023 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015024 # Neutralize special characters interpreted by sed in replacement strings.
15025 case $configure_input in #(
15026 *\&* | *\|* | *\\* )
15027 ac_sed_conf_input=`$as_echo "$configure_input" |
15028 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15029 *) ac_sed_conf_input=$configure_input;;
15030 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015031
15032 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015033 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15034 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015035 esac
15036 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015037 esac
15038
Theodore Ts'oe1052142006-10-21 21:46:47 -040015039 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015040$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15041 X"$ac_file" : 'X\(//\)[^/]' \| \
15042 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040015043 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015044$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015045 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\(\/\/\)[^/].*/{
15050 s//\1/
15051 q
15052 }
15053 /^X\(\/\/\)$/{
15054 s//\1/
15055 q
15056 }
15057 /^X\(\/\).*/{
15058 s//\1/
15059 q
15060 }
15061 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015062 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015063 ac_builddir=.
15064
Theodore Ts'oe1052142006-10-21 21:46:47 -040015065case "$ac_dir" in
15066.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15067*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015068 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015069 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015070 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015071 case $ac_top_builddir_sub in
15072 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15073 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15074 esac ;;
15075esac
15076ac_abs_top_builddir=$ac_pwd
15077ac_abs_builddir=$ac_pwd$ac_dir_suffix
15078# for backward compatibility:
15079ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015080
15081case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015082 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015083 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015084 ac_top_srcdir=$ac_top_builddir_sub
15085 ac_abs_top_srcdir=$ac_pwd ;;
15086 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015087 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015088 ac_top_srcdir=$srcdir
15089 ac_abs_top_srcdir=$srcdir ;;
15090 *) # Relative name.
15091 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15092 ac_top_srcdir=$ac_top_build_prefix$srcdir
15093 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015094esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015095ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015096
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015097
Theodore Ts'oe1052142006-10-21 21:46:47 -040015098 case $ac_mode in
15099 :F)
15100 #
15101 # CONFIG_FILE
15102 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015103
15104 case $INSTALL in
15105 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015106 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015107 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015108 ac_MKDIR_P=$MKDIR_P
15109 case $MKDIR_P in
15110 [\\/$]* | ?:[\\/]* ) ;;
15111 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15112 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015113_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015114
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015115cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015116# If the template does not know about datarootdir, expand it.
15117# FIXME: This hack should be removed a few years after 2.60.
15118ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015119ac_sed_dataroot='
15120/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015121 p
15122 q
15123}
15124/@datadir@/p
15125/@docdir@/p
15126/@infodir@/p
15127/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015128/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015129case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015130*datarootdir*) ac_datarootdir_seen=yes;;
15131*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015132 { $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 +010015133$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015134_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015136 ac_datarootdir_hack='
15137 s&@datadir@&$datadir&g
15138 s&@docdir@&$docdir&g
15139 s&@infodir@&$infodir&g
15140 s&@localedir@&$localedir&g
15141 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015142 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015143esac
15144_ACEOF
15145
15146# Neutralize VPATH when `$srcdir' = `.'.
15147# Shell code in configure.ac might set extrasub.
15148# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15150ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015151$extrasub
15152_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015153cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015154:t
15155/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015156s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015157s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015158s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015159s&@srcdir@&$ac_srcdir&;t t
15160s&@abs_srcdir@&$ac_abs_srcdir&;t t
15161s&@top_srcdir@&$ac_top_srcdir&;t t
15162s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15163s&@builddir@&$ac_builddir&;t t
15164s&@abs_builddir@&$ac_abs_builddir&;t t
15165s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15166s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040015167s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015168$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015169"
15170eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15171if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015172 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015173else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015174 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15175fi \
15176 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015177
Theodore Ts'oe1052142006-10-21 21:46:47 -040015178test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015179 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15181 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015182 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015183which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015184$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015185which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015186
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015187 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015188 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015189 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15190 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015191 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015192 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015193 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015194 :H)
15195 #
15196 # CONFIG_HEADER
15197 #
15198 if test x"$ac_file" != x-; then
15199 {
15200 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015201 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15202 } >"$ac_tmp/config.h" \
15203 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15204 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015205 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15206$as_echo "$as_me: $ac_file is unchanged" >&6;}
15207 else
15208 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015209 mv "$ac_tmp/config.h" "$ac_file" \
15210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015211 fi
15212 else
15213 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015214 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15215 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015216 fi
15217 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015218
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015219 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015220$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015221 ;;
15222 esac
15223
15224
15225 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015226 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015227 for ac_file in $CONFIG_FILES; do
15228 # Support "outfile[:infile[:infile...]]"
15229 case "$ac_file" in
15230 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015231 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015232 # PO directories have a Makefile.in generated from Makefile.in.in.
15233 case "$ac_file" in */Makefile.in)
15234 # Adjust a relative srcdir.
15235 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015236 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015237 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15238 # In autoconf-2.13 it is called $ac_given_srcdir.
15239 # In autoconf-2.50 it is called $srcdir.
15240 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15241 case "$ac_given_srcdir" in
15242 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15243 /*) top_srcdir="$ac_given_srcdir" ;;
15244 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15245 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015246 # Treat a directory as a PO directory if and only if it has a
15247 # POTFILES.in file. This allows packages to have multiple PO
15248 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015249 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15250 rm -f "$ac_dir/POTFILES"
15251 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015252 gt_tab=`printf '\t'`
15253 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 -050015254 POMAKEFILEDEPS="POTFILES.in"
15255 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015256 # on $ac_dir but don't depend on user-specified configuration
15257 # parameters.
15258 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15259 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015260 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015261 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15262 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015263 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15264 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015265 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015266 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15267 else
15268 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015269 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015270 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015271 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015272 # Compute POFILES
15273 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15274 # Compute UPDATEPOFILES
15275 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15276 # Compute DUMMYPOFILES
15277 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15278 # Compute GMOFILES
15279 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015280 case "$ac_given_srcdir" in
15281 .) srcdirpre= ;;
15282 *) srcdirpre='$(srcdir)/' ;;
15283 esac
15284 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015285 UPDATEPOFILES=
15286 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015287 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015288 for lang in $ALL_LINGUAS; do
15289 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015290 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15291 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015292 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015293 done
15294 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15295 # environment variable.
15296 INST_LINGUAS=
15297 if test -n "$ALL_LINGUAS"; then
15298 for presentlang in $ALL_LINGUAS; do
15299 useit=no
15300 if test "%UNSET%" != "$LINGUAS"; then
15301 desiredlanguages="$LINGUAS"
15302 else
15303 desiredlanguages="$ALL_LINGUAS"
15304 fi
15305 for desiredlang in $desiredlanguages; do
15306 # Use the presentlang catalog if desiredlang is
15307 # a. equal to presentlang, or
15308 # b. a variant of presentlang (because in this case,
15309 # presentlang can be used as a fallback for messages
15310 # which are not translated in the desiredlang catalog).
15311 case "$desiredlang" in
15312 "$presentlang"*) useit=yes;;
15313 esac
15314 done
15315 if test $useit = yes; then
15316 INST_LINGUAS="$INST_LINGUAS $presentlang"
15317 fi
15318 done
15319 fi
15320 CATALOGS=
15321 if test -n "$INST_LINGUAS"; then
15322 for lang in $INST_LINGUAS; do
15323 CATALOGS="$CATALOGS $lang.gmo"
15324 done
15325 fi
15326 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015327 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 -040015328 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15329 if test -f "$f"; then
15330 case "$f" in
15331 *.orig | *.bak | *~) ;;
15332 *) cat "$f" >> "$ac_dir/Makefile" ;;
15333 esac
15334 fi
15335 done
15336 fi
15337 ;;
15338 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015339 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015340
Theodore Ts'oe1052142006-10-21 21:46:47 -040015341 esac
15342done # for ac_tag
15343
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015344
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015345as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015346_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015347ac_clean_files=$ac_clean_files_save
15348
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015349test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015350 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015352
15353# configure is writing to config.log, and then calls config.status.
15354# config.status does its own redirection, appending to config.log.
15355# Unfortunately, on DOS this fails, as config.log is still kept open
15356# by configure, so config.status won't be able to write to it; its
15357# output is simply discarded. So we exec the FD to /dev/null,
15358# effectively closing config.log, so it can be properly (re)opened and
15359# appended to by config.status. When coming back to configure, we
15360# need to make the FD available again.
15361if test "$no_create" != yes; then
15362 ac_cs_success=:
15363 ac_config_status_args=
15364 test "$silent" = yes &&
15365 ac_config_status_args="$ac_config_status_args --quiet"
15366 exec 5>/dev/null
15367 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15368 exec 5>>config.log
15369 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15370 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015371 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015372fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015373if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015375$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15376fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015377
Theodore Ts'oee683a12005-02-05 15:53:56 -050015378if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi