]> sourceware.org Git - lvm2.git/blame - configure
dev-type: detect mixed dos partition with gpt's PMBR
[lvm2.git] / configure
CommitLineData
795ca3e5 1#! /bin/sh
795ca3e5 2# Guess values for system-dependent variables and create Makefiles.
635df748 3# Generated by GNU Autoconf 2.72.
f11781c5 4#
795ca3e5 5#
635df748 6# Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
6b2e4ec5 7# Inc.
f11781c5
AK
8#
9#
795ca3e5
AK
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
f11781c5
AK
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
ad6254c5 15
25fbec5b
AK
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
6b2e4ec5
ZK
18if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19then :
ad6254c5
AK
20 emulate sh
21 NULLCMD=:
ec6a6fbe 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
7a197a62 25 setopt NO_GLOB_SUBST
635df748
ZK
26else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
f11781c5
AK
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
635df748 32esac ;;
25fbec5b 33esac
7a197a62 34fi
25fbec5b
AK
35
36
6b2e4ec5
ZK
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
ec6a6fbe
AK
45as_nl='
46'
47export as_nl
6b2e4ec5
ZK
48IFS=" "" $as_nl"
49
50PS1='$ '
51PS2='> '
52PS4='+ '
53
54# Ensure predictable behavior from utilities with locale-dependent output.
55LC_ALL=C
56export LC_ALL
57LANGUAGE=C
58export LANGUAGE
59
60# We cannot yet rely on "unset" to work, but we need these variables
61# to be unset--not just set to an empty or harmless value--now, to
62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63# also avoids known problems related to "unset" and subshell syntax
64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68done
69
70# Ensure that fds 0, 1, and 2 are open.
71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
ec6a6fbe
AK
74
75# The user is always right.
6b2e4ec5 76if ${PATH_SEPARATOR+false} :; then
ec6a6fbe
AK
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
ad6254c5
AK
82fi
83
ad6254c5 84
7a197a62 85# Find who we are. Look in the path if we contain no directory separator.
4d0c3ed0 86as_myself=
f11781c5 87case $0 in #((
7a197a62
AK
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90for as_dir in $PATH
91do
92 IFS=$as_save_IFS
6b2e4ec5
ZK
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
f11781c5 99 done
7a197a62
AK
100IFS=$as_save_IFS
101
102 ;;
103esac
635df748 104# We did not find ourselves, most probably we were run as 'sh COMMAND'
7a197a62
AK
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
6b2e4ec5 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 111 exit 1
7a197a62
AK
112fi
113
f11781c5 114
4d0c3ed0
AK
115# Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120# neutralization value for shells without unset; and this also
121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
635df748 134# out after a failed 'exec'.
6b2e4ec5
ZK
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
4d0c3ed0
AK
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
f11781c5 140if test "x$CONFIG_SHELL" = x; then
635df748 141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6b2e4ec5 142then :
f11781c5
AK
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
635df748
ZK
149else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
f11781c5
AK
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
635df748 155esac ;;
f11781c5
AK
156esac
157fi
158"
159 as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
6b2e4ec5
ZK
170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
f11781c5 172
635df748
ZK
173else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175esac
f11781c5 176fi
4d0c3ed0 177test x\$exitcode = x0 || exit 1
6b2e4ec5
ZK
178blah=\$(echo \$(echo blah))
179test x\"\$blah\" = xblah || exit 1
4d0c3ed0 180test -x / || exit 1"
f11781c5
AK
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185test \$(( 1 + 1 )) = 2 || exit 1"
6b2e4ec5
ZK
186 if (eval "$as_required") 2>/dev/null
187then :
f11781c5 188 as_have_required=yes
635df748
ZK
189else case e in #(
190 e) as_have_required=no ;;
191esac
f11781c5 192fi
6b2e4ec5
ZK
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194then :
f11781c5 195
635df748
ZK
196else case e in #(
197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f11781c5
AK
198as_found=false
199for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200do
201 IFS=$as_save_IFS
6b2e4ec5
ZK
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
f11781c5
AK
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
6b2e4ec5 212 as_shell=$as_dir$as_base
f11781c5 213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
6b2e4ec5
ZK
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215then :
f11781c5 216 CONFIG_SHELL=$as_shell as_have_required=yes
6b2e4ec5
ZK
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218then :
f11781c5
AK
219 break 2
220fi
221fi
222 done;;
223 esac
224 as_found=false
225done
f11781c5 226IFS=$as_save_IFS
6b2e4ec5
ZK
227if $as_found
228then :
229
635df748
ZK
230else case e in #(
231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
6b2e4ec5
ZK
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
635df748
ZK
235fi ;;
236esac
6b2e4ec5 237fi
f11781c5
AK
238
239
6b2e4ec5
ZK
240 if test "x$CONFIG_SHELL" != x
241then :
4d0c3ed0
AK
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244# neutralization value for shells without unset; and this also
245# works around shells that cannot unset nonexistent variables.
246# Preserve -v and -x to the replacement shell.
247BASH_ENV=/dev/null
248ENV=/dev/null
249(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255esac
256exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257# Admittedly, this is quite paranoid, since all the known shells bail
635df748 258# out after a failed 'exec'.
6b2e4ec5 259printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
4d0c3ed0 260exit 255
f11781c5
AK
261fi
262
6b2e4ec5
ZK
263 if test x$as_have_required = xno
264then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
f11781c5 270 else
6b2e4ec5 271 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
f11781c5
AK
272$0: including any error possibly output before this
273$0: message. Then install a modern shell, or manually run
274$0: the script under such a shell if you do have one."
275 fi
276 exit 1
635df748
ZK
277fi ;;
278esac
f11781c5
AK
279fi
280fi
281SHELL=${CONFIG_SHELL-/bin/sh}
282export SHELL
283# Unset more variables known to interfere with behavior of common tools.
284CLICOLOR_FORCE= GREP_OPTIONS=
285unset CLICOLOR_FORCE GREP_OPTIONS
286
287## --------------------- ##
288## M4sh Shell Functions. ##
289## --------------------- ##
290# as_fn_unset VAR
291# ---------------
292# Portably unset VAR.
293as_fn_unset ()
294{
295 { eval $1=; unset $1;}
296}
297as_unset=as_fn_unset
298
6b2e4ec5 299
f11781c5
AK
300# as_fn_set_status STATUS
301# -----------------------
302# Set $? to STATUS, without forking.
303as_fn_set_status ()
304{
305 return $1
306} # as_fn_set_status
307
308# as_fn_exit STATUS
309# -----------------
310# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311as_fn_exit ()
312{
313 set +e
314 as_fn_set_status $1
315 exit $1
316} # as_fn_exit
317
318# as_fn_mkdir_p
319# -------------
320# Create "$as_dir" as a directory, including parents if necessary.
321as_fn_mkdir_p ()
322{
323
324 case $as_dir in #(
325 -*) as_dir=./$as_dir;;
326 esac
327 test -d "$as_dir" || eval $as_mkdir_p || {
328 as_dirs=
329 while :; do
330 case $as_dir in #(
6b2e4ec5 331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
f11781c5
AK
332 *) as_qdir=$as_dir;;
333 esac
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6b2e4ec5 340printf "%s\n" X"$as_dir" |
f11781c5
AK
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)[^/].*/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\).*/{
354 s//\1/
355 q
356 }
357 s/.*/./; q'`
358 test -d "$as_dir" && break
359 done
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364} # as_fn_mkdir_p
4d0c3ed0
AK
365
366# as_fn_executable_p FILE
367# -----------------------
368# Test if FILE is an executable regular file.
369as_fn_executable_p ()
370{
371 test -f "$1" && test -x "$1"
372} # as_fn_executable_p
f11781c5
AK
373# as_fn_append VAR VALUE
374# ----------------------
375# Append the text in VALUE to the end of the definition contained in VAR. Take
376# advantage of any shell optimizations that allow amortized linear growth over
377# repeated appends, instead of the typical quadratic growth present in naive
378# implementations.
6b2e4ec5
ZK
379if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
380then :
f11781c5
AK
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
635df748
ZK
385else case e in #(
386 e) as_fn_append ()
f11781c5
AK
387 {
388 eval $1=\$$1\$2
635df748
ZK
389 } ;;
390esac
f11781c5
AK
391fi # as_fn_append
392
393# as_fn_arith ARG...
394# ------------------
395# Perform arithmetic evaluation on the ARGs, and store the result in the
396# global $as_val. Take advantage of shells that can avoid forks. The arguments
397# must be portable across $(()) and expr.
6b2e4ec5
ZK
398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
399then :
f11781c5
AK
400 eval 'as_fn_arith ()
401 {
402 as_val=$(( $* ))
403 }'
635df748
ZK
404else case e in #(
405 e) as_fn_arith ()
f11781c5
AK
406 {
407 as_val=`expr "$@" || test $? -eq 1`
635df748
ZK
408 } ;;
409esac
f11781c5
AK
410fi # as_fn_arith
411
412
413# as_fn_error STATUS ERROR [LINENO LOG_FD]
414# ----------------------------------------
415# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417# script with STATUS, using 1 if that was 0.
418as_fn_error ()
419{
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5 423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
f11781c5 424 fi
6b2e4ec5 425 printf "%s\n" "$as_me: error: $2" >&2
f11781c5
AK
426 as_fn_exit $as_status
427} # as_fn_error
428
7a197a62
AK
429if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
431 as_expr=expr
432else
433 as_expr=false
434fi
435
7a197a62 436if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
437 as_basename=basename
438else
439 as_basename=false
440fi
441
f11781c5
AK
442if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444else
445 as_dirname=false
446fi
ad6254c5 447
7a197a62 448as_me=`$as_basename -- "$0" ||
ad6254c5
AK
449$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
7a197a62 451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6b2e4ec5 452printf "%s\n" X/"$0" |
7a197a62
AK
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
ad6254c5 466
f11781c5
AK
467# Avoid depending upon Character Ranges.
468as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471as_cr_digits='0123456789'
472as_cr_alnum=$as_cr_Letters$as_cr_digits
ad6254c5 473
ad6254c5 474
f11781c5
AK
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
635df748
ZK
485 t clear
486 :clear
f11781c5
AK
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
6b2e4ec5 498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
ad6254c5 499
4d0c3ed0
AK
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
f11781c5
AK
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
7a197a62 510}
ad6254c5 511
6b2e4ec5
ZK
512
513# Determine whether it's possible to make 'echo' print without a newline.
514# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
515# for compatibility with existing Makefiles.
f11781c5
AK
516ECHO_C= ECHO_N= ECHO_T=
517case `echo -n x` in #(((((
518-n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525*)
526 ECHO_N='-n';;
527esac
ad6254c5 528
6b2e4ec5
ZK
529# For backward compatibility with old third-party macros, we provide
530# the shell variables $as_echo and $as_echo_n. New code should use
531# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
532as_echo='printf %s\n'
533as_echo_n='printf %s'
534
f11781c5
AK
535rm -f conf$$ conf$$.exe conf$$.file
536if test -d conf$$.dir; then
537 rm -f conf$$.dir/conf$$.file
538else
539 rm -f conf$$.dir
540 mkdir conf$$.dir 2>/dev/null
7a197a62 541fi
f11781c5
AK
542if (echo >conf$$.file) 2>/dev/null; then
543 if ln -s conf$$.file conf$$ 2>/dev/null; then
544 as_ln_s='ln -s'
545 # ... but there are two gotchas:
635df748
ZK
546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
548 # In both cases, we have to default to 'cp -pR'.
f11781c5 549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4d0c3ed0 550 as_ln_s='cp -pR'
f11781c5
AK
551 elif ln conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s=ln
553 else
4d0c3ed0 554 as_ln_s='cp -pR'
f11781c5 555 fi
7a197a62 556else
4d0c3ed0 557 as_ln_s='cp -pR'
7a197a62 558fi
f11781c5
AK
559rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
560rmdir conf$$.dir 2>/dev/null
7a197a62 561
f11781c5
AK
562if mkdir -p . 2>/dev/null; then
563 as_mkdir_p='mkdir -p "$as_dir"'
564else
565 test -d ./-p && rmdir ./-p
566 as_mkdir_p=false
7a197a62
AK
567fi
568
4d0c3ed0
AK
569as_test_x='test -x'
570as_executable_p=as_fn_executable_p
7a197a62 571
f11781c5 572# Sed expression to map a string onto a valid CPP name.
635df748
ZK
573as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
7a197a62 575
f11781c5 576# Sed expression to map a string onto a valid variable name.
635df748
ZK
577as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578as_tr_sh="eval sed '$as_sed_sh'" # deprecated
7a197a62
AK
579
580
f11781c5
AK
581test -n "$DJDIR" || exec 7<&0 </dev/null
582exec 6>&1
ad6254c5
AK
583
584# Name of the host.
f11781c5 585# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
ad6254c5
AK
586# so uname gets run too.
587ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588
ad6254c5
AK
589#
590# Initializations.
591#
795ca3e5 592ac_default_prefix=/usr/local
7a197a62 593ac_clean_files=
ad6254c5 594ac_config_libobj_dir=.
7a197a62 595LIBOBJS=
ad6254c5
AK
596cross_compiling=no
597subdirs=
598MFLAGS=
599MAKEFLAGS=
ad6254c5 600
ad6254c5 601# Identity of this package.
6b2e4ec5
ZK
602PACKAGE_NAME=''
603PACKAGE_TARNAME=''
604PACKAGE_VERSION=''
605PACKAGE_STRING=''
606PACKAGE_BUGREPORT=''
607PACKAGE_URL=''
ad6254c5
AK
608
609ac_unique_file="lib/device/dev-cache.h"
610# Factoring default headers for most tests.
611ac_includes_default="\
6b2e4ec5
ZK
612#include <stddef.h>
613#ifdef HAVE_STDIO_H
614# include <stdio.h>
ad6254c5 615#endif
6b2e4ec5 616#ifdef HAVE_STDLIB_H
ad6254c5 617# include <stdlib.h>
ad6254c5 618#endif
25fbec5b 619#ifdef HAVE_STRING_H
ad6254c5
AK
620# include <string.h>
621#endif
25fbec5b 622#ifdef HAVE_INTTYPES_H
ad6254c5 623# include <inttypes.h>
ad6254c5 624#endif
25fbec5b 625#ifdef HAVE_STDINT_H
7a197a62
AK
626# include <stdint.h>
627#endif
6b2e4ec5
ZK
628#ifdef HAVE_STRINGS_H
629# include <strings.h>
630#endif
631#ifdef HAVE_SYS_TYPES_H
632# include <sys/types.h>
633#endif
634#ifdef HAVE_SYS_STAT_H
635# include <sys/stat.h>
636#endif
25fbec5b 637#ifdef HAVE_UNISTD_H
ad6254c5
AK
638# include <unistd.h>
639#endif"
640
6b2e4ec5
ZK
641ac_header_c_list=
642ac_func_c_list=
795ca3e5 643ac_default_prefix=/usr
ec6a6fbe 644ac_subst_vars='LTLIBOBJS
68f2de6d 645usrsbindir
ec6a6fbe 646usrlibdir
a5f46f6a 647udev_prefix
86ac529b
ZK
648udevdir
649tmpfilesdir
ec6a6fbe 650tmpdir
1453ccd5 651modulesdir
ec6a6fbe 652missingkernel
86ac529b 653kernelvsn
ec6a6fbe
AK
654kerneldir
655interface
23b059e7 656WRITE_INSTALL
679116a9 657WRITECACHE
4a90b0c4
ZK
658VDO_LIB
659VDO_INCLUDE
660VDO
acb6c062 661VALGRIND_POOL
3f59969c 662USRSBINDIR
d62448cb 663USE_TRACKING
0878503f 664UDEV_SYNC
86ac529b
ZK
665UDEV_STATIC_LIBS
666UDEV_RULE_EXEC_DETECTION
a5f46f6a 667UDEV_RULES
f7f0854e 668UDEV_PC
86ac529b 669UDEV_HAS_BUILTIN_BLKID
3ba4a195 670THIN
2bc0525e 671TESTSUITE_DATA
86ac529b 672SYSCONFDIR
ec6a6fbe 673STATIC_LINK
86ac529b 674STATIC_LDFLAGS
ec6a6fbe
AK
675STATICDIR
676SNAPSHOTS
86ac529b 677SILENT_RULES
8b8b8ac1 678SHARED_LINK
86ac529b 679SELINUX_STATIC_LIBS
f7f0854e 680SELINUX_PC
3f59969c 681SBINDIR
92b53a80 682RT_LIBS
5987562c 683PYTHON3DIR
5987562c 684PYTHON3
86ac529b 685PYTHON2DIR
0d22b581 686PYTHON2
f30875db 687PTHREAD_LIBS
ec6a6fbe 688PKGCONFIG
5da35d87 689ODIRECT
606d0858 690OCFDIR
37ddf259 691OCF
86ac529b 692M_LIBS
ec6a6fbe 693MIRRORS
1b59f5a9 694MANGLING
86ac529b
ZK
695LVRESIZE_FS_HELPER_PATH
696LVM_VERSION
ec6a6fbe
AK
697LVM_RELEASE_DATE
698LVM_RELEASE
d2c11605 699LVM_PATH
ec6a6fbe
AK
700LVM_PATCHLEVEL
701LVM_MINOR
702LVM_MAJOR
bf456146 703LVM_LIBAPI
86ac529b
ZK
704LVMPOLLD_PIDFILE
705LVMLOCKD_PIDFILE
706LVMIMPORTVDO_PATH
707LVMIMPORTVDO
0627716f 708LVM2CMD_LIB
ec6a6fbe
AK
709LIB_SUFFIX
710LDDEPS
711JOBS
ec6a6fbe 712INTL
679116a9 713INTEGRITY
9ed518f1 714FSADM_PATH
ec6a6fbe 715FSADM
bf09a320 716ELDFLAGS
ec6a6fbe 717DM_LIB_PATCHLEVEL
86ac529b 718DMEVENTD_PIDFILE
d1e8046f 719DMEVENTD_PATH
19a2c6e0 720DL_LIBS
ec6a6fbe 721DEVMAPPER
725136b5 722DEFAULT_USE_LVMPOLLD
86ac529b 723DEFAULT_USE_LVMLOCKD
17baeb65 724DEFAULT_USE_DEVICES_FILE
20e336f2 725DEFAULT_USE_BLKID_WIPING
3f59969c 726DEFAULT_SYS_LOCK_DIR
e6e64748
ZK
727DEFAULT_SYS_DIR
728DEFAULT_SPARSE_SEGTYPE
b1f08e51 729DEFAULT_RUN_DIR
e6e64748
ZK
730DEFAULT_RAID10_SEGTYPE
731DEFAULT_PROFILE_SUBDIR
569dd5d0 732DEFAULT_PROC_DIR
2b09def6 733DEFAULT_PID_DIR
e6e64748 734DEFAULT_MIRROR_SEGTYPE
3399ae32 735DEFAULT_LOCK_DIR
cd9b2b32 736DEFAULT_EVENT_ACTIVATION
3da18a06 737DEFAULT_DMEVENTD_EXIT_ON_PATH
e6e64748 738DEFAULT_DM_RUN_DIR
3399ae32
AK
739DEFAULT_CACHE_SUBDIR
740DEFAULT_BACKUP_SUBDIR
741DEFAULT_ARCHIVE_SUBDIR
ec6a6fbe
AK
742DEBUG
743COPTIMISE_FLAG
e2997b73 744CONFDIR
86ac529b 745CMIRRORD_PIDFILE
ec6a6fbe 746CMDLIB
ec6a6fbe
AK
747CLDWHOLEARCHIVE
748CLDNOWHOLEARCHIVE
749CLDFLAGS
a0d64554 750CACHE
86ac529b
ZK
751BUILD_LVMPOLLD
752BUILD_LVMLOCKD
753BUILD_LVMDBUSD
754BUILD_LOCKDSANLOCK
07cd341b 755BUILD_LOCKDIDM
07d41de7 756BUILD_LOCKDDLM_CONTROL
c923dee8 757BUILD_LOCKDDLM
86ac529b 758BUILD_DMFILEMAPD
ec6a6fbe 759BUILD_DMEVENTD
66fd4529 760BUILD_CMIRRORD
86ac529b 761BLKID_STATIC_LIBS
9bfc0be4 762BLKID_PC
86ac529b 763BLKDEACTIVATE
b73e1cd4
ZK
764READLINE_LIBS
765READLINE_CFLAGS
86ac529b
ZK
766AIO_LIBS
767AIO_CFLAGS
ec6a6fbe 768MODPROBE_CMD
b681b774
ZK
769systemdutildir
770systemdsystemunitdir
ec6a6fbe 771MSGFMT
65534242
ZK
772EDITLINE_LIBS
773EDITLINE_CFLAGS
86ac529b
ZK
774SELINUX_LIBS
775SELINUX_CFLAGS
5987562c 776PYTHON3_CONFIG
5987562c
AK
777pkgpyexecdir
778pyexecdir
779pkgpythondir
780pythondir
5987562c
AK
781PYTHON_EXEC_PREFIX
782PYTHON_PREFIX
6b2e4ec5 783PYTHON_PLATFORM
5987562c 784PYTHON_VERSION
ee3cfa41 785PYTHON
0627716f
ZK
786LIBSYSTEMD_LIBS
787LIBSYSTEMD_CFLAGS
d93275eb
PR
788UDEV_LIBS
789UDEV_CFLAGS
5ac4b662
MC
790BLKID_LIBS
791BLKID_CFLAGS
21edfc4a 792SYSTEMD_RUN_CMD
a861f042
ZK
793LIBSEAGATEILM_LIBS
794LIBSEAGATEILM_CFLAGS
795LIBDLMCONTROL_LIBS
796LIBDLMCONTROL_CFLAGS
797LIBDLM_LIBS
798LIBDLM_CFLAGS
799LIBSANLOCKCLIENT_LIBS
800LIBSANLOCKCLIENT_CFLAGS
ee3cfa41
AK
801VALGRIND_LIBS
802VALGRIND_CFLAGS
fd4728e1 803GENPNG
ec6a6fbe
AK
804GENHTML
805LCOV
0982c5c7 806HAVE_WSYNCNAND
7943a131 807HAVE_WCLOBBERED
d95751cb 808HAVE_WJUMP
e2997b73
AK
809CPG_LIBS
810CPG_CFLAGS
f11781c5
AK
811PKG_CONFIG_LIBDIR
812PKG_CONFIG_PATH
e2997b73 813PKG_CONFIG
4a90b0c4 814VDO_FORMAT_CMD
39cb8aa3
ZK
815CACHE_RESTORE_CMD
816CACHE_REPAIR_CMD
817CACHE_DUMP_CMD
818CACHE_CHECK_CMD
b3539907 819THIN_RESTORE_CMD
22fc8098
ZK
820THIN_REPAIR_CMD
821THIN_DUMP_CMD
f61cacad 822THIN_CHECK_CMD
6c6bcc00
PR
823HAVE_FULL_RELRO
824HAVE_PIE
ec6a6fbe 825POW_LIB
ec6a6fbe 826ALLOCA
9ed518f1 827LIBOBJS
6118b0fb
ZK
828SORT
829WC
5987562c 830CHMOD
ec6a6fbe
AK
831CSCOPE_CMD
832CFLOW_CMD
37cd8f96 833AR
ae916f77 834READELF
ec6a6fbe
AK
835RANLIB
836MKDIR_P
837SET_MAKE
635df748
ZK
838EGREP
839GREP
ec6a6fbe
AK
840LN_S
841INSTALL_DATA
842INSTALL_SCRIPT
843INSTALL_PROGRAM
acb6c062
PR
844ac_ct_CXX
845CXXFLAGS
846CXX
ec6a6fbe
AK
847OBJEXT
848EXEEXT
849ac_ct_CC
850CPPFLAGS
851LDFLAGS
852CFLAGS
853CC
854AWK
855SED
856target_os
857target_vendor
858target_cpu
859target
860host_os
861host_vendor
862host_cpu
863host
864build_os
865build_vendor
866build_cpu
867build
868target_alias
869host_alias
870build_alias
871LIBS
872ECHO_T
873ECHO_N
874ECHO_C
875DEFS
876mandir
877localedir
878libdir
879psdir
880pdfdir
881dvidir
882htmldir
883infodir
884docdir
885oldincludedir
886includedir
09933553 887runstatedir
ec6a6fbe
AK
888localstatedir
889sharedstatedir
890sysconfdir
891datadir
892datarootdir
893libexecdir
894sbindir
895bindir
896program_transform_name
897prefix
898exec_prefix
f11781c5 899PACKAGE_URL
ec6a6fbe
AK
900PACKAGE_BUGREPORT
901PACKAGE_STRING
902PACKAGE_VERSION
903PACKAGE_TARNAME
904PACKAGE_NAME
905PATH_SEPARATOR
906SHELL'
ad6254c5 907ac_subst_files=''
ec6a6fbe
AK
908ac_user_opts='
909enable_option_checking
d62448cb 910enable_dependency_tracking
fa58fc32 911enable_silent_rules
ec6a6fbe 912enable_static_link
8b8b8ac1
ZK
913enable_shared
914with_blkid
915with_systemd
916with_udev
ec6a6fbe
AK
917with_user
918with_group
919with_device_uid
920with_device_gid
921with_device_mode
d0df875d 922with_device_nodes_on
b73e1cd4 923with_default_use_devices_file
c64d7cd3 924with_default_name_mangling
cd9b2b32 925with_default_event_activation
ec6a6fbe
AK
926with_snapshots
927with_mirrors
e6e64748 928with_default_mirror_segtype
f80e7bb6 929with_default_raid10_segtype
e6e64748 930with_default_sparse_segtype
3ba4a195 931with_thin
f61cacad 932with_thin_check
22fc8098
ZK
933with_thin_dump
934with_thin_repair
b3539907 935with_thin_restore
4d0c3ed0 936enable_thin_check_needs_check
90bbed32 937with_cache
39cb8aa3
ZK
938with_cache_check
939with_cache_dump
940with_cache_repair
941with_cache_restore
0ac20a8f 942enable_cache_check_needs_check
4a90b0c4
ZK
943with_vdo
944with_vdo_format
3a557dcf 945with_writecache
d9e8895a 946with_integrity
ec6a6fbe 947enable_readline
65534242 948enable_editline
ec6a6fbe 949enable_realtime
37ddf259 950enable_ocf
606d0858 951with_ocfdir
5723db01
PR
952with_default_pid_dir
953with_default_dm_run_dir
954with_default_run_dir
66fd4529
AK
955enable_cmirrord
956with_cmirrord_pidfile
ec6a6fbe
AK
957enable_debug
958with_optimisation
1cedbaf1 959with_symvers
ec6a6fbe 960enable_profiling
d1e8046f 961enable_valgrind_pool
ec6a6fbe 962enable_devmapper
c923dee8 963enable_lvmpolld
658d524d
AK
964enable_lvmlockd_sanlock
965enable_lvmlockd_dlm
07d41de7 966enable_lvmlockd_dlmcontrol
7a8b7b4a 967enable_lvmlockd_idm
c923dee8
AK
968enable_use_lvmlockd
969with_lvmlockd_pidfile
725136b5 970enable_use_lvmpolld
e587b067 971with_lvmpolld_pidfile
b73e1cd4 972enable_systemd_journal
5ac4b662 973enable_app_machineid
21edfc4a 974with_systemd_run
9bfc0be4 975enable_blkid_wiping
a5f46f6a
AK
976enable_udev_sync
977enable_udev_rules
5723db01 978enable_udev_rule_exec_detection
95eaa683 979enable_units_compat
ec6a6fbe
AK
980enable_ioctl
981enable_o_direct
5987562c 982enable_dbus_service
0627716f 983enable_notify_dbus
6b2e4ec5
ZK
984with_python_sys_prefix
985with_python_prefix
986with_python_exec_prefix
ec6a6fbe 987enable_pkgconfig
23b059e7 988enable_write_install
ec6a6fbe 989enable_fsadm
12ba43cc 990enable_lvmimportvdo
a70d6b35 991enable_blkdeactivate
ec6a6fbe 992enable_dmeventd
0627716f 993enable_cmdlib
a7cf55c6 994enable_dmfilemapd
ec6a6fbe 995enable_selinux
ae96a43f 996enable_blkzeroout
ec6a6fbe
AK
997enable_nls
998with_localedir
999with_confdir
1000with_staticdir
1001with_usrlibdir
1002with_usrsbindir
a2d33cdf 1003with_libexecdir
a5f46f6a 1004with_udev_prefix
78ce7acc 1005with_udevdir
e587cb6a 1006with_systemdsystemunitdir
4417a8bd 1007with_tmpfilesdir
1453ccd5 1008with_modulesdir
ec6a6fbe
AK
1009with_dmeventd_pidfile
1010with_dmeventd_path
3da18a06 1011with_dmeventd_exit_on_path
3399ae32 1012with_default_system_dir
f89a8b81 1013with_default_profile_subdir
3399ae32
AK
1014with_default_archive_subdir
1015with_default_backup_subdir
1016with_default_cache_subdir
1017with_default_locking_dir
ec6a6fbe
AK
1018with_interface
1019'
7a197a62
AK
1020 ac_precious_vars='build_alias
1021host_alias
1022target_alias
1023CC
1024CFLAGS
1025LDFLAGS
25fbec5b 1026LIBS
7a197a62 1027CPPFLAGS
acb6c062
PR
1028CXX
1029CXXFLAGS
1030CCC
e2997b73 1031PKG_CONFIG
f11781c5
AK
1032PKG_CONFIG_PATH
1033PKG_CONFIG_LIBDIR
e2997b73 1034CPG_CFLAGS
a946372e 1035CPG_LIBS
ee3cfa41
AK
1036VALGRIND_CFLAGS
1037VALGRIND_LIBS
a861f042
ZK
1038LIBSANLOCKCLIENT_CFLAGS
1039LIBSANLOCKCLIENT_LIBS
1040LIBDLM_CFLAGS
1041LIBDLM_LIBS
1042LIBDLMCONTROL_CFLAGS
1043LIBDLMCONTROL_LIBS
1044LIBSEAGATEILM_CFLAGS
1045LIBSEAGATEILM_LIBS
c60bac46
ZK
1046BLKID_CFLAGS
1047BLKID_LIBS
d93275eb 1048UDEV_CFLAGS
5987562c 1049UDEV_LIBS
0627716f
ZK
1050LIBSYSTEMD_CFLAGS
1051LIBSYSTEMD_LIBS
65534242 1052PYTHON
86ac529b
ZK
1053SELINUX_CFLAGS
1054SELINUX_LIBS
65534242 1055EDITLINE_CFLAGS
b73e1cd4 1056EDITLINE_LIBS
b681b774
ZK
1057systemdsystemunitdir
1058systemdutildir
86ac529b
ZK
1059AIO_CFLAGS
1060AIO_LIBS
b73e1cd4
ZK
1061READLINE_CFLAGS
1062READLINE_LIBS'
7a197a62 1063
795ca3e5
AK
1064
1065# Initialize some variables set by options.
ad6254c5
AK
1066ac_init_help=
1067ac_init_version=false
ec6a6fbe
AK
1068ac_unrecognized_opts=
1069ac_unrecognized_sep=
795ca3e5
AK
1070# The variables have the same names as the options, with
1071# dashes changed to underlines.
ad6254c5 1072cache_file=/dev/null
795ca3e5 1073exec_prefix=NONE
795ca3e5 1074no_create=
795ca3e5
AK
1075no_recursion=
1076prefix=NONE
1077program_prefix=NONE
1078program_suffix=NONE
1079program_transform_name=s,x,x,
1080silent=
1081site=
1082srcdir=
795ca3e5
AK
1083verbose=
1084x_includes=NONE
1085x_libraries=NONE
ad6254c5
AK
1086
1087# Installation directory options.
1088# These are left unexpanded so users can "make install exec_prefix=/foo"
1089# and all the variables that are supposed to be based on exec_prefix
1090# by default will actually change.
1091# Use braces instead of parens because sh, perl, etc. also accept them.
7a197a62 1092# (The list follows the same order as the GNU Coding Standards.)
795ca3e5
AK
1093bindir='${exec_prefix}/bin'
1094sbindir='${exec_prefix}/sbin'
1095libexecdir='${exec_prefix}/libexec'
7a197a62
AK
1096datarootdir='${prefix}/share'
1097datadir='${datarootdir}'
795ca3e5
AK
1098sysconfdir='${prefix}/etc'
1099sharedstatedir='${prefix}/com'
1100localstatedir='${prefix}/var'
09933553 1101runstatedir='${localstatedir}/run'
795ca3e5
AK
1102includedir='${prefix}/include'
1103oldincludedir='/usr/include'
7a197a62
AK
1104docdir='${datarootdir}/doc/${PACKAGE}'
1105infodir='${datarootdir}/info'
1106htmldir='${docdir}'
1107dvidir='${docdir}'
1108pdfdir='${docdir}'
1109psdir='${docdir}'
1110libdir='${exec_prefix}/lib'
1111localedir='${datarootdir}/locale'
1112mandir='${datarootdir}/man'
795ca3e5 1113
795ca3e5 1114ac_prev=
7a197a62 1115ac_dashdash=
795ca3e5
AK
1116for ac_option
1117do
795ca3e5
AK
1118 # If the previous option needs an argument, assign it.
1119 if test -n "$ac_prev"; then
7a197a62 1120 eval $ac_prev=\$ac_option
795ca3e5
AK
1121 ac_prev=
1122 continue
1123 fi
1124
7a197a62 1125 case $ac_option in
4d0c3ed0
AK
1126 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1127 *=) ac_optarg= ;;
1128 *) ac_optarg=yes ;;
7a197a62 1129 esac
795ca3e5 1130
7a197a62
AK
1131 case $ac_dashdash$ac_option in
1132 --)
1133 ac_dashdash=yes ;;
795ca3e5
AK
1134
1135 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1136 ac_prev=bindir ;;
1137 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
ad6254c5 1138 bindir=$ac_optarg ;;
795ca3e5
AK
1139
1140 -build | --build | --buil | --bui | --bu)
ad6254c5 1141 ac_prev=build_alias ;;
795ca3e5 1142 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
ad6254c5 1143 build_alias=$ac_optarg ;;
795ca3e5
AK
1144
1145 -cache-file | --cache-file | --cache-fil | --cache-fi \
1146 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1147 ac_prev=cache_file ;;
1148 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1149 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
ad6254c5
AK
1150 cache_file=$ac_optarg ;;
1151
1152 --config-cache | -C)
1153 cache_file=config.cache ;;
795ca3e5 1154
7a197a62 1155 -datadir | --datadir | --datadi | --datad)
795ca3e5 1156 ac_prev=datadir ;;
7a197a62 1157 -datadir=* | --datadir=* | --datadi=* | --datad=*)
ad6254c5 1158 datadir=$ac_optarg ;;
795ca3e5 1159
7a197a62
AK
1160 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1161 | --dataroo | --dataro | --datar)
1162 ac_prev=datarootdir ;;
1163 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1164 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1165 datarootdir=$ac_optarg ;;
1166
795ca3e5 1167 -disable-* | --disable-*)
ec6a6fbe 1168 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
795ca3e5 1169 # Reject names that are not valid shell variable names.
ec6a6fbe 1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
635df748 1171 as_fn_error $? "invalid feature name: '$ac_useropt'"
ec6a6fbe 1172 ac_useropt_orig=$ac_useropt
6b2e4ec5 1173 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
ec6a6fbe
AK
1174 case $ac_user_opts in
1175 *"
1176"enable_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval enable_$ac_useropt=no ;;
7a197a62
AK
1182
1183 -docdir | --docdir | --docdi | --doc | --do)
1184 ac_prev=docdir ;;
1185 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1186 docdir=$ac_optarg ;;
1187
1188 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1189 ac_prev=dvidir ;;
1190 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1191 dvidir=$ac_optarg ;;
795ca3e5
AK
1192
1193 -enable-* | --enable-*)
ec6a6fbe 1194 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
795ca3e5 1195 # Reject names that are not valid shell variable names.
ec6a6fbe 1196 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
635df748 1197 as_fn_error $? "invalid feature name: '$ac_useropt'"
ec6a6fbe 1198 ac_useropt_orig=$ac_useropt
6b2e4ec5 1199 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
ec6a6fbe
AK
1200 case $ac_user_opts in
1201 *"
1202"enable_$ac_useropt"
1203"*) ;;
1204 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1205 ac_unrecognized_sep=', ';;
1206 esac
1207 eval enable_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1208
1209 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1210 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1211 | --exec | --exe | --ex)
1212 ac_prev=exec_prefix ;;
1213 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1214 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1215 | --exec=* | --exe=* | --ex=*)
ad6254c5 1216 exec_prefix=$ac_optarg ;;
795ca3e5
AK
1217
1218 -gas | --gas | --ga | --g)
1219 # Obsolete; use --with-gas.
1220 with_gas=yes ;;
1221
ad6254c5
AK
1222 -help | --help | --hel | --he | -h)
1223 ac_init_help=long ;;
1224 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1225 ac_init_help=recursive ;;
1226 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1227 ac_init_help=short ;;
795ca3e5
AK
1228
1229 -host | --host | --hos | --ho)
ad6254c5 1230 ac_prev=host_alias ;;
795ca3e5 1231 -host=* | --host=* | --hos=* | --ho=*)
ad6254c5 1232 host_alias=$ac_optarg ;;
795ca3e5 1233
7a197a62
AK
1234 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1235 ac_prev=htmldir ;;
1236 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1237 | --ht=*)
1238 htmldir=$ac_optarg ;;
1239
795ca3e5
AK
1240 -includedir | --includedir | --includedi | --included | --include \
1241 | --includ | --inclu | --incl | --inc)
1242 ac_prev=includedir ;;
1243 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1244 | --includ=* | --inclu=* | --incl=* | --inc=*)
ad6254c5 1245 includedir=$ac_optarg ;;
795ca3e5
AK
1246
1247 -infodir | --infodir | --infodi | --infod | --info | --inf)
1248 ac_prev=infodir ;;
1249 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
ad6254c5 1250 infodir=$ac_optarg ;;
795ca3e5
AK
1251
1252 -libdir | --libdir | --libdi | --libd)
1253 ac_prev=libdir ;;
1254 -libdir=* | --libdir=* | --libdi=* | --libd=*)
ad6254c5 1255 libdir=$ac_optarg ;;
795ca3e5
AK
1256
1257 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1258 | --libexe | --libex | --libe)
1259 ac_prev=libexecdir ;;
1260 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1261 | --libexe=* | --libex=* | --libe=*)
ad6254c5 1262 libexecdir=$ac_optarg ;;
795ca3e5 1263
7a197a62
AK
1264 -localedir | --localedir | --localedi | --localed | --locale)
1265 ac_prev=localedir ;;
1266 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1267 localedir=$ac_optarg ;;
1268
795ca3e5 1269 -localstatedir | --localstatedir | --localstatedi | --localstated \
7a197a62 1270 | --localstate | --localstat | --localsta | --localst | --locals)
795ca3e5
AK
1271 ac_prev=localstatedir ;;
1272 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
7a197a62 1273 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
ad6254c5 1274 localstatedir=$ac_optarg ;;
795ca3e5
AK
1275
1276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1277 ac_prev=mandir ;;
1278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
ad6254c5 1279 mandir=$ac_optarg ;;
795ca3e5
AK
1280
1281 -nfp | --nfp | --nf)
1282 # Obsolete; use --without-fp.
1283 with_fp=no ;;
1284
1285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
ad6254c5 1286 | --no-cr | --no-c | -n)
795ca3e5
AK
1287 no_create=yes ;;
1288
1289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1291 no_recursion=yes ;;
1292
1293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1295 | --oldin | --oldi | --old | --ol | --o)
1296 ac_prev=oldincludedir ;;
1297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
ad6254c5 1300 oldincludedir=$ac_optarg ;;
795ca3e5
AK
1301
1302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1303 ac_prev=prefix ;;
1304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
ad6254c5 1305 prefix=$ac_optarg ;;
795ca3e5
AK
1306
1307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1308 | --program-pre | --program-pr | --program-p)
1309 ac_prev=program_prefix ;;
1310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
ad6254c5 1312 program_prefix=$ac_optarg ;;
795ca3e5
AK
1313
1314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1315 | --program-suf | --program-su | --program-s)
1316 ac_prev=program_suffix ;;
1317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
ad6254c5 1319 program_suffix=$ac_optarg ;;
795ca3e5
AK
1320
1321 -program-transform-name | --program-transform-name \
1322 | --program-transform-nam | --program-transform-na \
1323 | --program-transform-n | --program-transform- \
1324 | --program-transform | --program-transfor \
1325 | --program-transfo | --program-transf \
1326 | --program-trans | --program-tran \
1327 | --progr-tra | --program-tr | --program-t)
1328 ac_prev=program_transform_name ;;
1329 -program-transform-name=* | --program-transform-name=* \
1330 | --program-transform-nam=* | --program-transform-na=* \
1331 | --program-transform-n=* | --program-transform-=* \
1332 | --program-transform=* | --program-transfor=* \
1333 | --program-transfo=* | --program-transf=* \
1334 | --program-trans=* | --program-tran=* \
1335 | --progr-tra=* | --program-tr=* | --program-t=*)
ad6254c5 1336 program_transform_name=$ac_optarg ;;
795ca3e5 1337
7a197a62
AK
1338 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1339 ac_prev=pdfdir ;;
1340 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1341 pdfdir=$ac_optarg ;;
1342
1343 -psdir | --psdir | --psdi | --psd | --ps)
1344 ac_prev=psdir ;;
1345 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1346 psdir=$ac_optarg ;;
1347
795ca3e5
AK
1348 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1349 | -silent | --silent | --silen | --sile | --sil)
1350 silent=yes ;;
1351
09933553
ZK
1352 -runstatedir | --runstatedir | --runstatedi | --runstated \
1353 | --runstate | --runstat | --runsta | --runst | --runs \
1354 | --run | --ru | --r)
1355 ac_prev=runstatedir ;;
1356 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1357 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1358 | --run=* | --ru=* | --r=*)
1359 runstatedir=$ac_optarg ;;
1360
795ca3e5
AK
1361 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1362 ac_prev=sbindir ;;
1363 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1364 | --sbi=* | --sb=*)
ad6254c5 1365 sbindir=$ac_optarg ;;
795ca3e5
AK
1366
1367 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1368 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1369 | --sharedst | --shareds | --shared | --share | --shar \
1370 | --sha | --sh)
1371 ac_prev=sharedstatedir ;;
1372 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1373 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1374 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1375 | --sha=* | --sh=*)
ad6254c5 1376 sharedstatedir=$ac_optarg ;;
795ca3e5
AK
1377
1378 -site | --site | --sit)
1379 ac_prev=site ;;
1380 -site=* | --site=* | --sit=*)
ad6254c5 1381 site=$ac_optarg ;;
795ca3e5
AK
1382
1383 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1384 ac_prev=srcdir ;;
1385 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
ad6254c5 1386 srcdir=$ac_optarg ;;
795ca3e5
AK
1387
1388 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1389 | --syscon | --sysco | --sysc | --sys | --sy)
1390 ac_prev=sysconfdir ;;
1391 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1392 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
ad6254c5 1393 sysconfdir=$ac_optarg ;;
795ca3e5
AK
1394
1395 -target | --target | --targe | --targ | --tar | --ta | --t)
ad6254c5 1396 ac_prev=target_alias ;;
795ca3e5 1397 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
ad6254c5 1398 target_alias=$ac_optarg ;;
795ca3e5
AK
1399
1400 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1401 verbose=yes ;;
1402
ad6254c5
AK
1403 -version | --version | --versio | --versi | --vers | -V)
1404 ac_init_version=: ;;
795ca3e5
AK
1405
1406 -with-* | --with-*)
ec6a6fbe 1407 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
795ca3e5 1408 # Reject names that are not valid shell variable names.
ec6a6fbe 1409 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
635df748 1410 as_fn_error $? "invalid package name: '$ac_useropt'"
ec6a6fbe 1411 ac_useropt_orig=$ac_useropt
6b2e4ec5 1412 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
ec6a6fbe
AK
1413 case $ac_user_opts in
1414 *"
1415"with_$ac_useropt"
1416"*) ;;
1417 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1418 ac_unrecognized_sep=', ';;
1419 esac
1420 eval with_$ac_useropt=\$ac_optarg ;;
795ca3e5
AK
1421
1422 -without-* | --without-*)
ec6a6fbe 1423 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
795ca3e5 1424 # Reject names that are not valid shell variable names.
ec6a6fbe 1425 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
635df748 1426 as_fn_error $? "invalid package name: '$ac_useropt'"
ec6a6fbe 1427 ac_useropt_orig=$ac_useropt
6b2e4ec5 1428 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
ec6a6fbe
AK
1429 case $ac_user_opts in
1430 *"
1431"with_$ac_useropt"
1432"*) ;;
1433 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1434 ac_unrecognized_sep=', ';;
1435 esac
1436 eval with_$ac_useropt=no ;;
795ca3e5
AK
1437
1438 --x)
1439 # Obsolete; use --with-x.
1440 with_x=yes ;;
1441
1442 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1443 | --x-incl | --x-inc | --x-in | --x-i)
1444 ac_prev=x_includes ;;
1445 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1446 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
ad6254c5 1447 x_includes=$ac_optarg ;;
795ca3e5
AK
1448
1449 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1450 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1451 ac_prev=x_libraries ;;
1452 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1453 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
ad6254c5 1454 x_libraries=$ac_optarg ;;
795ca3e5 1455
635df748
ZK
1456 -*) as_fn_error $? "unrecognized option: '$ac_option'
1457Try '$0 --help' for more information"
795ca3e5
AK
1458 ;;
1459
ad6254c5
AK
1460 *=*)
1461 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1462 # Reject names that are not valid shell variable names.
f11781c5
AK
1463 case $ac_envvar in #(
1464 '' | [0-9]* | *[!_$as_cr_alnum]* )
635df748 1465 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
f11781c5 1466 esac
7a197a62 1467 eval $ac_envvar=\$ac_optarg
ad6254c5
AK
1468 export $ac_envvar ;;
1469
795ca3e5 1470 *)
ad6254c5 1471 # FIXME: should be removed in autoconf 3.0.
6b2e4ec5 1472 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
ad6254c5 1473 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
6b2e4ec5 1474 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
4d0c3ed0 1475 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
795ca3e5
AK
1476 ;;
1477
1478 esac
1479done
1480
1481if test -n "$ac_prev"; then
ad6254c5 1482 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
f11781c5 1483 as_fn_error $? "missing argument to $ac_option"
795ca3e5 1484fi
795ca3e5 1485
ec6a6fbe
AK
1486if test -n "$ac_unrecognized_opts"; then
1487 case $enable_option_checking in
1488 no) ;;
f11781c5 1489 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
6b2e4ec5 1490 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
ec6a6fbe
AK
1491 esac
1492fi
1493
1494# Check all directory arguments for consistency.
7a197a62
AK
1495for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1496 datadir sysconfdir sharedstatedir localstatedir includedir \
1497 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
09933553 1498 libdir localedir mandir runstatedir
795ca3e5 1499do
7a197a62 1500 eval ac_val=\$$ac_var
ec6a6fbe
AK
1501 # Remove trailing slashes.
1502 case $ac_val in
1503 */ )
1504 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1505 eval $ac_var=\$ac_val;;
1506 esac
1507 # Be sure to have absolute directory names.
ad6254c5 1508 case $ac_val in
7a197a62
AK
1509 [\\/$]* | ?:[\\/]* ) continue;;
1510 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
795ca3e5 1511 esac
f11781c5 1512 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
795ca3e5
AK
1513done
1514
635df748 1515# There might be people who depend on the old broken behavior: '$host'
ad6254c5
AK
1516# used to hold the argument of --host etc.
1517# FIXME: To remove some day.
1518build=$build_alias
1519host=$host_alias
1520target=$target_alias
1521
1522# FIXME: To remove some day.
1523if test "x$host_alias" != x; then
1524 if test "x$build_alias" = x; then
1525 cross_compiling=maybe
ad6254c5
AK
1526 elif test "x$build_alias" != "x$host_alias"; then
1527 cross_compiling=yes
1528 fi
1529fi
8106cdd5 1530
ad6254c5
AK
1531ac_tool_prefix=
1532test -n "$host_alias" && ac_tool_prefix=$host_alias-
1533
1534test "$silent" = yes && exec 6>/dev/null
795ca3e5 1535
795ca3e5 1536
7a197a62
AK
1537ac_pwd=`pwd` && test -n "$ac_pwd" &&
1538ac_ls_di=`ls -di .` &&
1539ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
f11781c5 1540 as_fn_error $? "working directory cannot be determined"
7a197a62 1541test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
f11781c5 1542 as_fn_error $? "pwd does not report name of working directory"
7a197a62
AK
1543
1544
795ca3e5
AK
1545# Find the source files, if location was not specified.
1546if test -z "$srcdir"; then
1547 ac_srcdir_defaulted=yes
7a197a62 1548 # Try the directory containing this script, then the parent directory.
ec6a6fbe
AK
1549 ac_confdir=`$as_dirname -- "$as_myself" ||
1550$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1551 X"$as_myself" : 'X\(//\)[^/]' \| \
1552 X"$as_myself" : 'X\(//\)$' \| \
1553 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
6b2e4ec5 1554printf "%s\n" X"$as_myself" |
7a197a62
AK
1555 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1556 s//\1/
1557 q
1558 }
1559 /^X\(\/\/\)[^/].*/{
1560 s//\1/
1561 q
1562 }
1563 /^X\(\/\/\)$/{
1564 s//\1/
1565 q
1566 }
1567 /^X\(\/\).*/{
1568 s//\1/
1569 q
1570 }
1571 s/.*/./; q'`
795ca3e5 1572 srcdir=$ac_confdir
7a197a62 1573 if test ! -r "$srcdir/$ac_unique_file"; then
795ca3e5
AK
1574 srcdir=..
1575 fi
1576else
1577 ac_srcdir_defaulted=no
1578fi
7a197a62
AK
1579if test ! -r "$srcdir/$ac_unique_file"; then
1580 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
f11781c5 1581 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
795ca3e5 1582fi
635df748 1583ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
7a197a62 1584ac_abs_confdir=`(
f11781c5 1585 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
7a197a62
AK
1586 pwd)`
1587# When building in place, set srcdir=.
1588if test "$ac_abs_confdir" = "$ac_pwd"; then
1589 srcdir=.
1590fi
1591# Remove unnecessary trailing slashes from srcdir.
1592# Double slashes in file names in object file debugging info
1593# mess up M-x gdb in Emacs.
1594case $srcdir in
1595*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1596esac
1597for ac_var in $ac_precious_vars; do
1598 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1599 eval ac_env_${ac_var}_value=\$${ac_var}
1600 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1601 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1602done
ad6254c5
AK
1603
1604#
1605# Report the --help message.
1606#
1607if test "$ac_init_help" = "long"; then
1608 # Omit some internal or obsolete options to make the list less imposing.
1609 # This message is too long to be a string in the A/UX 3.1 sh.
1610 cat <<_ACEOF
635df748 1611'configure' configures this package to adapt to many kinds of systems.
ad6254c5
AK
1612
1613Usage: $0 [OPTION]... [VAR=VALUE]...
1614
1615To assign environment variables (e.g., CC, CFLAGS...), specify them as
1616VAR=VALUE. See below for descriptions of some of the useful variables.
1617
1618Defaults for the options are specified in brackets.
1619
1620Configuration:
1621 -h, --help display this help and exit
1622 --help=short display options specific to this package
1623 --help=recursive display the short help of all the included packages
1624 -V, --version display version information and exit
635df748 1625 -q, --quiet, --silent do not print 'checking ...' messages
ad6254c5 1626 --cache-file=FILE cache test results in FILE [disabled]
635df748 1627 -C, --config-cache alias for '--cache-file=config.cache'
ad6254c5 1628 -n, --no-create do not create output files
635df748 1629 --srcdir=DIR find the sources in DIR [configure dir or '..']
ad6254c5 1630
ad6254c5
AK
1631Installation directories:
1632 --prefix=PREFIX install architecture-independent files in PREFIX
ec6a6fbe 1633 [$ac_default_prefix]
ad6254c5 1634 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
ec6a6fbe 1635 [PREFIX]
ad6254c5 1636
635df748
ZK
1637By default, 'make install' will install all the files in
1638'$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
1639an installation prefix other than '$ac_default_prefix' using '--prefix',
1640for instance '--prefix=\$HOME'.
ad6254c5
AK
1641
1642For better control, use the options below.
1643
1644Fine tuning of the installation directories:
ec6a6fbe
AK
1645 --bindir=DIR user executables [EPREFIX/bin]
1646 --sbindir=DIR system admin executables [EPREFIX/sbin]
1647 --libexecdir=DIR program executables [EPREFIX/libexec]
1648 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1649 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1650 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
09933553 1651 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
ec6a6fbe
AK
1652 --libdir=DIR object code libraries [EPREFIX/lib]
1653 --includedir=DIR C header files [PREFIX/include]
1654 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1655 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1656 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1657 --infodir=DIR info documentation [DATAROOTDIR/info]
1658 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1659 --mandir=DIR man documentation [DATAROOTDIR/man]
1660 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1661 --htmldir=DIR html documentation [DOCDIR]
1662 --dvidir=DIR dvi documentation [DOCDIR]
1663 --pdfdir=DIR pdf documentation [DOCDIR]
1664 --psdir=DIR ps documentation [DOCDIR]
ad6254c5
AK
1665_ACEOF
1666
1667 cat <<\_ACEOF
1668
1669System types:
1670 --build=BUILD configure for building on BUILD [guessed]
1671 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1672 --target=TARGET configure for building compilers for TARGET [HOST]
1673_ACEOF
1674fi
1675
1676if test -n "$ac_init_help"; then
1677
1678 cat <<\_ACEOF
1679
1680Optional Features:
ec6a6fbe 1681 --disable-option-checking ignore unrecognized --enable/--with options
ad6254c5
AK
1682 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1683 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
d62448cb
ZK
1684 --disable-dependency-tracking
1685 speeds up one-time build.
fa58fc32 1686 --disable-silent-rules disable silent building
71082be4
ZK
1687 --enable-static_link use this to link the tools to their libraries
1688 statically (default is dynamic linking
8b8b8ac1 1689 --disable-shared disable dynamic linking
4d0c3ed0
AK
1690 --disable-thin_check_needs_check
1691 required if thin_check version is < 0.3.0
0ac20a8f
ZK
1692 --disable-cache_check_needs_check
1693 required if cache_check version is < 0.5
71082be4 1694 --disable-readline disable readline support
65534242 1695 --enable-editline enable editline support
3e333e9b 1696 --disable-realtime disable realtime clock support
37ddf259
AK
1697 --enable-ocf enable Open Cluster Framework (OCF) compliant
1698 resource agents
71082be4
ZK
1699 --enable-cmirrord enable the cluster mirror log daemon
1700 --enable-debug enable debugging
1701 --enable-profiling gather gcov profiling data
d1e8046f 1702 --enable-valgrind-pool enable valgrind awareness of pools
71082be4 1703 --disable-devmapper disable LVM2 device-mapper interaction
e587b067 1704 --enable-lvmpolld enable the LVM Polling Daemon
658d524d
AK
1705 --enable-lvmlockd-sanlock
1706 enable the LVM lock daemon using sanlock
1707 --enable-lvmlockd-dlm enable the LVM lock daemon using dlm
07d41de7
MC
1708 --enable-lvmlockd-dlmcontrol
1709 enable lvmlockd remote refresh using libdlmcontrol
7a8b7b4a 1710 --enable-lvmlockd-idm enable the LVM lock daemon using idm
fe70b03d 1711 --disable-use-lvmlockd disable usage of LVM lock daemon
c923dee8 1712 --disable-use-lvmpolld disable usage of LVM Poll Daemon
b73e1cd4
ZK
1713 --disable-systemd-journal
1714 disable LVM systemd journaling
1715 --disable-app-machineid disable LVM system ID using app-specific machine-id
75628f34
PR
1716 --disable-blkid_wiping disable libblkid detection of signatures when wiping
1717 and use native code instead
96123b90
ZK
1718 --enable-udev_sync enable synchronization with udev processing
1719 --enable-udev_rules install rule files needed for udev synchronization
5723db01
PR
1720 --enable-udev-rule-exec-detection
1721 enable executable path detection in udev rules
71082be4
ZK
1722 --enable-units-compat enable output compatibility with old versions that
1723 that do not use KiB-style unit suffixes
ad77fb50 1724 --disable-ioctl disable ioctl calls to device-mapper in the kernel
71082be4 1725 --disable-o_direct disable O_DIRECT
5987562c 1726 --enable-dbus-service install D-Bus support
0627716f 1727 --enable-notify-dbus enable LVM notification using dbus
71082be4
ZK
1728 --enable-pkgconfig install pkgconfig support
1729 --enable-write_install install user writable files
1730 --disable-fsadm disable fsadm
12ba43cc 1731 --disable-lvmimportvdo disable lvm_import_vdo
a70d6b35 1732 --disable-blkdeactivate disable blkdeactivate
71082be4 1733 --enable-dmeventd enable the device-mapper event daemon
0627716f 1734 --enable-cmdlib build shared command library
a7cf55c6 1735 --enable-dmfilemapd enable the dmstats filemap daemon
71082be4 1736 --disable-selinux disable selinux support
ae96a43f 1737 --disable-blkzeroout do not use BLKZEROOUT for device zeroing
71082be4 1738 --enable-nls enable Native Language Support
ad6254c5
AK
1739
1740Optional Packages:
1741 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1742 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
8b8b8ac1
ZK
1743 --without-blkid do not build with blkid library
1744 --without-systemd do not build with systemd library
1745 --without-udev do not build with udev library
e6e64748
ZK
1746 --with-user=USER set the owner of installed files [USER=]
1747 --with-group=GROUP set the group owner of installed files [GROUP=]
1748 --with-device-uid=UID set the owner used for new device nodes [UID=0]
1749 --with-device-gid=GID set the group used for new device nodes [GID=0]
1750 --with-device-mode=MODE set the mode used for new device nodes [MODE=0600]
d0df875d 1751 --with-device-nodes-on=ON
e6e64748 1752 create nodes on resume or create [ON=resume]
cd9b2b32
ZK
1753 --with-default-use-devices-file=ON
1754 default lvm.conf devices/use_devicesfile = [ON=0]
c64d7cd3 1755 --with-default-name-mangling=MANGLING
e6e64748 1756 default name mangling: auto/none/hex [auto]
cd9b2b32
ZK
1757 --with-default-event-activation=ON
1758 default lvm.conf global/event_activation = [ON=1]
744afec6
ZK
1759 --with-snapshots=TYPE snapshot support: internal/none [internal]
1760 --with-mirrors=TYPE mirror support: internal/none [internal]
e6e64748
ZK
1761 --with-default-mirror-segtype=TYPE
1762 default mirror segtype: raid1/mirror [raid1]
1763 --with-default-raid10-segtype=TYPE
1764 default mirror segtype: raid10/mirror [raid10]
e6e64748
ZK
1765 --with-default-sparse-segtype=TYPE
1766 default sparse segtype: thin/snapshot [thin]
744afec6 1767 --with-thin=TYPE thin provisioning support: internal/none [internal]
e6e64748
ZK
1768 --with-thin-check=PATH thin_check tool: [autodetect]
1769 --with-thin-dump=PATH thin_dump tool: [autodetect]
1770 --with-thin-repair=PATH thin_repair tool: [autodetect]
b3539907 1771 --with-thin-restore=PATH
e6e64748 1772 thin_restore tool: [autodetect]
744afec6 1773 --with-cache=TYPE cache support: internal/none [internal]
e6e64748
ZK
1774 --with-cache-check=PATH cache_check tool: [autodetect]
1775 --with-cache-dump=PATH cache_dump tool: [autodetect]
39cb8aa3 1776 --with-cache-repair=PATH
e6e64748 1777 cache_repair tool: [autodetect]
39cb8aa3 1778 --with-cache-restore=PATH
e6e64748 1779 cache_restore tool: [autodetect]
4a90b0c4
ZK
1780 --with-vdo=TYPE vdo support: internal/none [internal]
1781 --with-vdo-format=PATH vdoformat tool: [autodetect]
3ed11170
ZK
1782 --with-writecache=TYPE writecache support: internal/none [internal]
1783 --with-integrity=TYPE integrity support: internal/none [internal]
e6e64748
ZK
1784 --with-ocfdir=DIR install OCF files in
1785 [PREFIX/lib/ocf/resource.d/lvm2]
5723db01 1786 --with-default-pid-dir=PID_DIR
3ed11170 1787 default directory to keep PID files in [autodetect]
5723db01 1788 --with-default-dm-run-dir=DM_RUN_DIR
3ed11170 1789 default DM run directory [autodetect]
5723db01 1790 --with-default-run-dir=RUN_DIR
3ed11170 1791 default LVM run directory [autodetect_run_dir/lvm]
71082be4 1792 --with-cmirrord-pidfile=PATH
e6e64748
ZK
1793 cmirrord pidfile [PID_DIR/cmirrord.pid]
1794 --with-optimisation=OPT C optimisation flag [OPT=-O2]
1cedbaf1
ZK
1795 --with-symvers=STYLE use symbol versioning of the shared library
1796 [default=gnu]
c923dee8
AK
1797 --with-lvmlockd-pidfile=PATH
1798 lvmlockd pidfile [PID_DIR/lvmlockd.pid]
e587b067
OK
1799 --with-lvmpolld-pidfile=PATH
1800 lvmpolld pidfile [PID_DIR/lvmpolld.pid]
21edfc4a 1801 --with-systemd-run=PATH systemd-run tool: [autodetect]
6b2e4ec5
ZK
1802 --with-python-sys-prefix
1803 use Python's sys.prefix and sys.exec_prefix values
1804 --with-python_prefix override the default PYTHON_PREFIX
1805 --with-python_exec_prefix
1806 override the default PYTHON_EXEC_PREFIX
dc49e1cd 1807 --with-localedir=DIR locale-dependent data [DATAROOTDIR/locale]
e6e64748
ZK
1808 --with-confdir=DIR configuration files in DIR [/etc]
1809 --with-staticdir=DIR static binaries in DIR [EPREFIX/sbin]
1810 --with-usrlibdir=DIR usrlib in DIR [PREFIX/lib]
1811 --with-usrsbindir=DIR usrsbin executables in DIR [PREFIX/sbin]
a2d33cdf 1812 --with-libexecdir=DIR libexec executables in DIR [PREFIX/libexec]
71082be4 1813 --with-udev-prefix=UPREFIX
e6e64748
ZK
1814 install udev rule files in UPREFIX [EPREFIX]
1815 --with-udevdir=DIR udev rules in DIR [UPREFIX/lib/udev/rules.d]
e587cb6a
PR
1816 --with-systemdsystemunitdir=DIR
1817 systemd service files in DIR
4417a8bd
PR
1818 --with-tmpfilesdir=DIR install configuration files for management of
1819 volatile files and directories in DIR
e6e64748 1820 [PREFIX/lib/tmpfiles.d]
1453ccd5
ZK
1821 --with-modulesdir=DIR Dir to look for file `uname -r`/modules.builtin
1822 [/lib/modules]
71082be4 1823 --with-dmeventd-pidfile=PATH
e6e64748 1824 dmeventd pidfile [PID_DIR/dmeventd.pid]
71082be4 1825 --with-dmeventd-path=PATH
e6e64748 1826 dmeventd path [EPREFIX/sbin/dmeventd]
3da18a06
ZK
1827 --with-dmeventd-exit-on-path=PATH
1828 Default path to exit-on file in dmeventd
1829 [/run/nologin]
71082be4 1830 --with-default-system-dir=DIR
e6e64748 1831 default LVM system directory [/etc/lvm]
f89a8b81 1832 --with-default-profile-subdir=SUBDIR
e6e64748 1833 default configuration profile subdir [profile]
71082be4 1834 --with-default-archive-subdir=SUBDIR
e6e64748 1835 default metadata archive subdir [archive]
71082be4 1836 --with-default-backup-subdir=SUBDIR
e6e64748 1837 default metadata backup subdir [backup]
71082be4 1838 --with-default-cache-subdir=SUBDIR
e6e64748 1839 default metadata cache subdir [cache]
71082be4 1840 --with-default-locking-dir=DIR
600d7ca1 1841 default locking directory [autodetect_lock_dir/lvm]
e6e64748 1842 --with-interface=IFACE choose kernel interface (ioctl) [ioctl]
ad6254c5
AK
1843
1844Some influential environment variables:
1845 CC C compiler command
1846 CFLAGS C compiler flags
1847 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1848 nonstandard directory <lib dir>
25fbec5b 1849 LIBS libraries to pass to the linker, e.g. -l<library>
f11781c5 1850 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
7a197a62 1851 you have headers in a nonstandard directory <include dir>
acb6c062
PR
1852 CXX C++ compiler command
1853 CXXFLAGS C++ compiler flags
e2997b73 1854 PKG_CONFIG path to pkg-config utility
f11781c5
AK
1855 PKG_CONFIG_PATH
1856 directories to add to pkg-config's search path
1857 PKG_CONFIG_LIBDIR
1858 path overriding pkg-config's built-in search path
e2997b73
AK
1859 CPG_CFLAGS C compiler flags for CPG, overriding pkg-config
1860 CPG_LIBS linker flags for CPG, overriding pkg-config
ee3cfa41
AK
1861 VALGRIND_CFLAGS
1862 C compiler flags for VALGRIND, overriding pkg-config
1863 VALGRIND_LIBS
1864 linker flags for VALGRIND, overriding pkg-config
a861f042
ZK
1865 LIBSANLOCKCLIENT_CFLAGS
1866 C compiler flags for LIBSANLOCKCLIENT, overriding pkg-config
1867 LIBSANLOCKCLIENT_LIBS
1868 linker flags for LIBSANLOCKCLIENT, overriding pkg-config
1869 LIBDLM_CFLAGS
1870 C compiler flags for LIBDLM, overriding pkg-config
1871 LIBDLM_LIBS linker flags for LIBDLM, overriding pkg-config
1872 LIBDLMCONTROL_CFLAGS
1873 C compiler flags for LIBDLMCONTROL, overriding pkg-config
1874 LIBDLMCONTROL_LIBS
1875 linker flags for LIBDLMCONTROL, overriding pkg-config
1876 LIBSEAGATEILM_CFLAGS
1877 C compiler flags for LIBSEAGATEILM, overriding pkg-config
1878 LIBSEAGATEILM_LIBS
1879 linker flags for LIBSEAGATEILM, overriding pkg-config
c60bac46
ZK
1880 BLKID_CFLAGS
1881 C compiler flags for BLKID, overriding pkg-config
1882 BLKID_LIBS linker flags for BLKID, overriding pkg-config
d93275eb
PR
1883 UDEV_CFLAGS C compiler flags for UDEV, overriding pkg-config
1884 UDEV_LIBS linker flags for UDEV, overriding pkg-config
0627716f
ZK
1885 LIBSYSTEMD_CFLAGS
1886 C compiler flags for LIBSYSTEMD, overriding pkg-config
1887 LIBSYSTEMD_LIBS
1888 linker flags for LIBSYSTEMD, overriding pkg-config
5987562c 1889 PYTHON the Python interpreter
86ac529b
ZK
1890 SELINUX_CFLAGS
1891 C compiler flags for SELINUX, overriding pkg-config
1892 SELINUX_LIBS
1893 linker flags for SELINUX, overriding pkg-config
65534242
ZK
1894 EDITLINE_CFLAGS
1895 C compiler flags for EDITLINE, overriding pkg-config
1896 EDITLINE_LIBS
1897 linker flags for EDITLINE, overriding pkg-config
b681b774
ZK
1898 systemdsystemunitdir
1899 value of systemdsystemunitdir for systemd, overriding pkg-config
1900 systemdutildir
1901 value of systemdutildir for systemd, overriding pkg-config
86ac529b
ZK
1902 AIO_CFLAGS C compiler flags for AIO
1903 AIO_LIBS linker flags for AIO
b73e1cd4
ZK
1904 READLINE_CFLAGS
1905 C compiler flags for readline
1906 READLINE_LIBS
1907 linker flags for readline
ad6254c5 1908
635df748 1909Use these variables to override the choices made by 'configure' or to help
ad6254c5
AK
1910it to find libraries and programs with nonstandard names/locations.
1911
f11781c5 1912Report bugs to the package provider.
ad6254c5 1913_ACEOF
7a197a62 1914ac_status=$?
ad6254c5
AK
1915fi
1916
1917if test "$ac_init_help" = "recursive"; then
1918 # If there are subdirs, report their specific --help.
ad6254c5 1919 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
ec6a6fbe
AK
1920 test -d "$ac_dir" ||
1921 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1922 continue
ad6254c5
AK
1923 ac_builddir=.
1924
7a197a62
AK
1925case "$ac_dir" in
1926.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1927*)
6b2e4ec5 1928 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 1929 # A ".." for each directory in $ac_dir_suffix.
6b2e4ec5 1930 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
1931 case $ac_top_builddir_sub in
1932 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1933 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1934 esac ;;
1935esac
1936ac_abs_top_builddir=$ac_pwd
1937ac_abs_builddir=$ac_pwd$ac_dir_suffix
1938# for backward compatibility:
1939ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
1940
1941case $srcdir in
7a197a62 1942 .) # We are building in place.
ad6254c5 1943 ac_srcdir=.
7a197a62
AK
1944 ac_top_srcdir=$ac_top_builddir_sub
1945 ac_abs_top_srcdir=$ac_pwd ;;
1946 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 1947 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
1948 ac_top_srcdir=$srcdir
1949 ac_abs_top_srcdir=$srcdir ;;
1950 *) # Relative name.
1951 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1952 ac_top_srcdir=$ac_top_build_prefix$srcdir
1953 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8a2fc586 1954esac
7a197a62
AK
1955ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1956
1957 cd "$ac_dir" || { ac_status=$?; continue; }
6b2e4ec5
ZK
1958 # Check for configure.gnu first; this name is used for a wrapper for
1959 # Metaconfig's "Configure" on case-insensitive file systems.
7a197a62
AK
1960 if test -f "$ac_srcdir/configure.gnu"; then
1961 echo &&
1962 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1963 elif test -f "$ac_srcdir/configure"; then
1964 echo &&
1965 $SHELL "$ac_srcdir/configure" --help=recursive
ad6254c5 1966 else
6b2e4ec5 1967 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
7a197a62
AK
1968 fi || ac_status=$?
1969 cd "$ac_pwd" || { ac_status=$?; break; }
ad6254c5
AK
1970 done
1971fi
1972
7a197a62 1973test -n "$ac_init_help" && exit $ac_status
ad6254c5
AK
1974if $ac_init_version; then
1975 cat <<\_ACEOF
7a197a62 1976configure
635df748 1977generated by GNU Autoconf 2.72
ad6254c5 1978
635df748 1979Copyright (C) 2023 Free Software Foundation, Inc.
ad6254c5
AK
1980This configure script is free software; the Free Software Foundation
1981gives unlimited permission to copy, distribute and modify it.
1982_ACEOF
7a197a62 1983 exit
ad6254c5 1984fi
ad6254c5 1985
f11781c5
AK
1986## ------------------------ ##
1987## Autoconf initialization. ##
1988## ------------------------ ##
ad6254c5 1989
f11781c5
AK
1990# ac_fn_c_try_compile LINENO
1991# --------------------------
1992# Try to compile conftest.$ac_ext, and return whether this succeeded.
1993ac_fn_c_try_compile ()
ad6254c5 1994{
f11781c5 1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5 1996 rm -f conftest.$ac_objext conftest.beam
f11781c5
AK
1997 if { { ac_try="$ac_compile"
1998case "(($ac_try" in
1999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2000 *) ac_try_echo=$ac_try;;
2001esac
2002eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 2003printf "%s\n" "$ac_try_echo"; } >&5
f11781c5
AK
2004 (eval "$ac_compile") 2>conftest.err
2005 ac_status=$?
2006 if test -s conftest.err; then
2007 grep -v '^ *+' conftest.err >conftest.er1
2008 cat conftest.er1 >&5
2009 mv -f conftest.er1 conftest.err
2010 fi
6b2e4ec5 2011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f11781c5
AK
2012 test $ac_status = 0; } && {
2013 test -z "$ac_c_werror_flag" ||
2014 test ! -s conftest.err
6b2e4ec5
ZK
2015 } && test -s conftest.$ac_objext
2016then :
f11781c5 2017 ac_retval=0
635df748
ZK
2018else case e in #(
2019 e) printf "%s\n" "$as_me: failed program was:" >&5
f11781c5 2020sed 's/^/| /' conftest.$ac_ext >&5
ad6254c5 2021
635df748
ZK
2022 ac_retval=1 ;;
2023esac
f11781c5 2024fi
4d0c3ed0 2025 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f11781c5 2026 as_fn_set_status $ac_retval
ad6254c5 2027
f11781c5 2028} # ac_fn_c_try_compile
ad6254c5 2029
acb6c062
PR
2030# ac_fn_cxx_try_compile LINENO
2031# ----------------------------
2032# Try to compile conftest.$ac_ext, and return whether this succeeded.
2033ac_fn_cxx_try_compile ()
2034{
2035 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5 2036 rm -f conftest.$ac_objext conftest.beam
acb6c062
PR
2037 if { { ac_try="$ac_compile"
2038case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2041esac
2042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 2043printf "%s\n" "$ac_try_echo"; } >&5
acb6c062
PR
2044 (eval "$ac_compile") 2>conftest.err
2045 ac_status=$?
2046 if test -s conftest.err; then
2047 grep -v '^ *+' conftest.err >conftest.er1
2048 cat conftest.er1 >&5
2049 mv -f conftest.er1 conftest.err
2050 fi
6b2e4ec5 2051 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
acb6c062
PR
2052 test $ac_status = 0; } && {
2053 test -z "$ac_cxx_werror_flag" ||
2054 test ! -s conftest.err
6b2e4ec5
ZK
2055 } && test -s conftest.$ac_objext
2056then :
acb6c062 2057 ac_retval=0
635df748
ZK
2058else case e in #(
2059 e) printf "%s\n" "$as_me: failed program was:" >&5
acb6c062
PR
2060sed 's/^/| /' conftest.$ac_ext >&5
2061
635df748 2062 ac_retval=1 ;;
f11781c5 2063esac
f11781c5 2064fi
4d0c3ed0 2065 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f11781c5 2066 as_fn_set_status $ac_retval
ad6254c5 2067
635df748 2068} # ac_fn_cxx_try_compile
d911ec67 2069
f11781c5
AK
2070# ac_fn_c_try_link LINENO
2071# -----------------------
2072# Try to link conftest.$ac_ext, and return whether this succeeded.
2073ac_fn_c_try_link ()
d911ec67 2074{
f11781c5 2075 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5 2076 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
f11781c5 2077 if { { ac_try="$ac_link"
d911ec67
AK
2078case "(($ac_try" in
2079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2080 *) ac_try_echo=$ac_try;;
2081esac
f11781c5 2082eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 2083printf "%s\n" "$ac_try_echo"; } >&5
f11781c5 2084 (eval "$ac_link") 2>conftest.err
d911ec67 2085 ac_status=$?
f11781c5
AK
2086 if test -s conftest.err; then
2087 grep -v '^ *+' conftest.err >conftest.er1
2088 cat conftest.er1 >&5
2089 mv -f conftest.er1 conftest.err
2090 fi
6b2e4ec5 2091 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f11781c5
AK
2092 test $ac_status = 0; } && {
2093 test -z "$ac_c_werror_flag" ||
2094 test ! -s conftest.err
2095 } && test -s conftest$ac_exeext && {
2096 test "$cross_compiling" = yes ||
4d0c3ed0 2097 test -x conftest$ac_exeext
6b2e4ec5
ZK
2098 }
2099then :
f11781c5 2100 ac_retval=0
635df748
ZK
2101else case e in #(
2102 e) printf "%s\n" "$as_me: failed program was:" >&5
d911ec67
AK
2103sed 's/^/| /' conftest.$ac_ext >&5
2104
635df748
ZK
2105 ac_retval=1 ;;
2106esac
d911ec67 2107fi
f11781c5
AK
2108 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2109 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2110 # interfere with the next link command; also delete a directory that is
2111 # left behind by Apple's compiler. We do this before executing the actions.
2112 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
4d0c3ed0 2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f11781c5 2114 as_fn_set_status $ac_retval
d911ec67 2115
f11781c5 2116} # ac_fn_c_try_link
d911ec67 2117
f11781c5
AK
2118# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2119# -------------------------------------------------------
2120# Tests whether HEADER exists and can be compiled using the include files in
2121# INCLUDES, setting the cache variable VAR accordingly.
2122ac_fn_c_check_header_compile ()
2123{
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5
ZK
2125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126printf %s "checking for $2... " >&6; }
2127if eval test \${$3+y}
2128then :
2129 printf %s "(cached) " >&6
635df748
ZK
2130else case e in #(
2131 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2132/* end confdefs.h. */
f11781c5
AK
2133$4
2134#include <$2>
ad6254c5 2135_ACEOF
6b2e4ec5
ZK
2136if ac_fn_c_try_compile "$LINENO"
2137then :
f11781c5 2138 eval "$3=yes"
635df748
ZK
2139else case e in #(
2140 e) eval "$3=no" ;;
2141esac
ad6254c5 2142fi
635df748
ZK
2143rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2144esac
ad6254c5 2145fi
f11781c5 2146eval ac_res=\$$3
6b2e4ec5
ZK
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2148printf "%s\n" "$ac_res" >&6; }
4d0c3ed0 2149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ad6254c5 2150
f11781c5 2151} # ac_fn_c_check_header_compile
ad6254c5 2152
1568ed4d
AK
2153# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2154# -------------------------------------------
2155# Tests whether TYPE exists after having included INCLUDES, setting cache
2156# variable VAR accordingly.
2157ac_fn_c_check_type ()
f11781c5
AK
2158{
2159 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5
ZK
2160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2161printf %s "checking for $2... " >&6; }
2162if eval test \${$3+y}
2163then :
2164 printf %s "(cached) " >&6
635df748
ZK
2165else case e in #(
2166 e) eval "$3=no"
f11781c5
AK
2167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2168/* end confdefs.h. */
1568ed4d 2169$4
f11781c5 2170int
6b2e4ec5 2171main (void)
f11781c5 2172{
1568ed4d
AK
2173if (sizeof ($2))
2174 return 0;
f11781c5
AK
2175 ;
2176 return 0;
2177}
ad6254c5 2178_ACEOF
6b2e4ec5
ZK
2179if ac_fn_c_try_compile "$LINENO"
2180then :
f11781c5 2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2182/* end confdefs.h. */
1568ed4d 2183$4
f11781c5 2184int
6b2e4ec5 2185main (void)
f11781c5 2186{
1568ed4d
AK
2187if (sizeof (($2)))
2188 return 0;
f11781c5
AK
2189 ;
2190 return 0;
2191}
2192_ACEOF
6b2e4ec5
ZK
2193if ac_fn_c_try_compile "$LINENO"
2194then :
1568ed4d 2195
635df748
ZK
2196else case e in #(
2197 e) eval "$3=yes" ;;
2198esac
f11781c5 2199fi
6b2e4ec5 2200rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
f11781c5 2201fi
635df748
ZK
2202rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2203esac
f11781c5 2204fi
1568ed4d 2205eval ac_res=\$$3
6b2e4ec5
ZK
2206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2207printf "%s\n" "$ac_res" >&6; }
4d0c3ed0 2208 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f11781c5 2209
1568ed4d 2210} # ac_fn_c_check_type
795ca3e5 2211
1568ed4d
AK
2212# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2213# ----------------------------------------------------
2214# Tries to find if the field MEMBER exists in type AGGR, after including
2215# INCLUDES, setting cache variable VAR accordingly.
2216ac_fn_c_check_member ()
f11781c5
AK
2217{
2218 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5
ZK
2219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2220printf %s "checking for $2.$3... " >&6; }
2221if eval test \${$4+y}
2222then :
2223 printf %s "(cached) " >&6
635df748
ZK
2224else case e in #(
2225 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5 2226/* end confdefs.h. */
1568ed4d 2227$5
ad6254c5 2228int
6b2e4ec5 2229main (void)
ad6254c5 2230{
1568ed4d
AK
2231static $2 ac_aggr;
2232if (ac_aggr.$3)
2233return 0;
ad6254c5
AK
2234 ;
2235 return 0;
2236}
2237_ACEOF
6b2e4ec5
ZK
2238if ac_fn_c_try_compile "$LINENO"
2239then :
1568ed4d 2240 eval "$4=yes"
635df748
ZK
2241else case e in #(
2242 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5 2243/* end confdefs.h. */
1568ed4d 2244$5
f11781c5 2245int
6b2e4ec5 2246main (void)
f11781c5 2247{
1568ed4d
AK
2248static $2 ac_aggr;
2249if (sizeof ac_aggr.$3)
2250return 0;
f11781c5
AK
2251 ;
2252 return 0;
2253}
2254_ACEOF
6b2e4ec5
ZK
2255if ac_fn_c_try_compile "$LINENO"
2256then :
1568ed4d 2257 eval "$4=yes"
635df748
ZK
2258else case e in #(
2259 e) eval "$4=no" ;;
2260esac
795ca3e5 2261fi
635df748
ZK
2262rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2263esac
f11781c5 2264fi
635df748
ZK
2265rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2266esac
ad6254c5 2267fi
1568ed4d 2268eval ac_res=\$$4
6b2e4ec5
ZK
2269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2270printf "%s\n" "$ac_res" >&6; }
4d0c3ed0 2271 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ad6254c5 2272
1568ed4d 2273} # ac_fn_c_check_member
ad6254c5 2274
f11781c5
AK
2275# ac_fn_c_find_intX_t LINENO BITS VAR
2276# -----------------------------------
2277# Finds a signed integer type with width BITS, setting cache variable VAR
2278# accordingly.
2279ac_fn_c_find_intX_t ()
2280{
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5
ZK
2282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2283printf %s "checking for int$2_t... " >&6; }
2284if eval test \${$3+y}
2285then :
2286 printf %s "(cached) " >&6
635df748
ZK
2287else case e in #(
2288 e) eval "$3=no"
f11781c5
AK
2289 # Order is important - never check a type that is potentially smaller
2290 # than half of the expected target width.
2291 for ac_type in int$2_t 'int' 'long int' \
2292 'long long int' 'short int' 'signed char'; do
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7a197a62
AK
2294/* end confdefs.h. */
2295$ac_includes_default
f11781c5 2296 enum { N = $2 / 2 - 1 };
7a197a62 2297int
6b2e4ec5 2298main (void)
7a197a62 2299{
f11781c5 2300static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
4d0c3ed0
AK
2301test_array [0] = 0;
2302return test_array [0];
7a197a62 2303
f11781c5
AK
2304 ;
2305 return 0;
2306}
2307_ACEOF
6b2e4ec5
ZK
2308if ac_fn_c_try_compile "$LINENO"
2309then :
f11781c5
AK
2310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2311/* end confdefs.h. */
2312$ac_includes_default
2313 enum { N = $2 / 2 - 1 };
2314int
6b2e4ec5 2315main (void)
f11781c5
AK
2316{
2317static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2318 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
4d0c3ed0
AK
2319test_array [0] = 0;
2320return test_array [0];
7a197a62
AK
2321
2322 ;
2323 return 0;
2324}
ad6254c5 2325_ACEOF
6b2e4ec5
ZK
2326if ac_fn_c_try_compile "$LINENO"
2327then :
ad6254c5 2328
635df748
ZK
2329else case e in #(
2330 e) case $ac_type in #(
f11781c5
AK
2331 int$2_t) :
2332 eval "$3=yes" ;; #(
2333 *) :
2334 eval "$3=\$ac_type" ;;
635df748 2335esac ;;
f11781c5 2336esac
ad6254c5 2337fi
6b2e4ec5 2338rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ad6254c5 2339fi
6b2e4ec5
ZK
2340rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2341 if eval test \"x\$"$3"\" = x"no"
2342then :
ad6254c5 2343
635df748
ZK
2344else case e in #(
2345 e) break ;;
2346esac
ad6254c5 2347fi
635df748
ZK
2348 done ;;
2349esac
ad6254c5 2350fi
f11781c5 2351eval ac_res=\$$3
6b2e4ec5
ZK
2352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2353printf "%s\n" "$ac_res" >&6; }
4d0c3ed0 2354 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
f11781c5
AK
2355
2356} # ac_fn_c_find_intX_t
2357
2358# ac_fn_c_find_uintX_t LINENO BITS VAR
2359# ------------------------------------
2360# Finds an unsigned integer type with width BITS, setting cache variable VAR
2361# accordingly.
2362ac_fn_c_find_uintX_t ()
2363{
2364 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5
ZK
2365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2366printf %s "checking for uint$2_t... " >&6; }
2367if eval test \${$3+y}
2368then :
2369 printf %s "(cached) " >&6
635df748
ZK
2370else case e in #(
2371 e) eval "$3=no"
f11781c5
AK
2372 # Order is important - never check a type that is potentially smaller
2373 # than half of the expected target width.
2374 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2375 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 2377/* end confdefs.h. */
7a197a62 2378$ac_includes_default
ad6254c5 2379int
6b2e4ec5 2380main (void)
ad6254c5 2381{
f11781c5 2382static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
4d0c3ed0
AK
2383test_array [0] = 0;
2384return test_array [0];
ad6254c5 2385
f11781c5
AK
2386 ;
2387 return 0;
ad6254c5
AK
2388}
2389_ACEOF
6b2e4ec5
ZK
2390if ac_fn_c_try_compile "$LINENO"
2391then :
f11781c5
AK
2392 case $ac_type in #(
2393 uint$2_t) :
2394 eval "$3=yes" ;; #(
2395 *) :
2396 eval "$3=\$ac_type" ;;
7a197a62 2397esac
ad6254c5 2398fi
6b2e4ec5
ZK
2399rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2400 if eval test \"x\$"$3"\" = x"no"
2401then :
7a197a62 2402
635df748
ZK
2403else case e in #(
2404 e) break ;;
2405esac
ad6254c5 2406fi
635df748
ZK
2407 done ;;
2408esac
ad6254c5 2409fi
f11781c5 2410eval ac_res=\$$3
6b2e4ec5
ZK
2411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2412printf "%s\n" "$ac_res" >&6; }
4d0c3ed0 2413 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
ad6254c5 2414
f11781c5 2415} # ac_fn_c_find_uintX_t
ad6254c5 2416
f11781c5
AK
2417# ac_fn_c_check_func LINENO FUNC VAR
2418# ----------------------------------
2419# Tests whether FUNC exists, setting the cache variable VAR accordingly
2420ac_fn_c_check_func ()
2421{
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5
ZK
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424printf %s "checking for $2... " >&6; }
2425if eval test \${$3+y}
2426then :
2427 printf %s "(cached) " >&6
635df748
ZK
2428else case e in #(
2429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
2430/* end confdefs.h. */
2431/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2433#define $2 innocuous_$2
ad6254c5 2434
f11781c5 2435/* System header to define __stub macros and hopefully few prototypes,
635df748 2436 which can conflict with char $2 (void); below. */
ad6254c5 2437
6b2e4ec5 2438#include <limits.h>
f11781c5
AK
2439#undef $2
2440
2441/* Override any GCC internal prototype to avoid an error.
2442 Use char because int might match the return type of a GCC
2443 builtin and then its argument prototype would still apply. */
2444#ifdef __cplusplus
2445extern "C"
2446#endif
635df748 2447char $2 (void);
f11781c5
AK
2448/* The GNU C library defines this for functions which it implements
2449 to always fail with ENOSYS. Some functions are actually named
2450 something starting with __ and the normal name is an alias. */
2451#if defined __stub_$2 || defined __stub___$2
2452choke me
2453#endif
ad6254c5 2454
ad6254c5 2455int
6b2e4ec5 2456main (void)
ad6254c5 2457{
f11781c5 2458return $2 ();
ad6254c5
AK
2459 ;
2460 return 0;
2461}
2462_ACEOF
6b2e4ec5
ZK
2463if ac_fn_c_try_link "$LINENO"
2464then :
f11781c5 2465 eval "$3=yes"
635df748
ZK
2466else case e in #(
2467 e) eval "$3=no" ;;
2468esac
ad6254c5 2469fi
6b2e4ec5 2470rm -f core conftest.err conftest.$ac_objext conftest.beam \
635df748
ZK
2471 conftest$ac_exeext conftest.$ac_ext ;;
2472esac
ad6254c5 2473fi
f11781c5 2474eval ac_res=\$$3
6b2e4ec5
ZK
2475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476printf "%s\n" "$ac_res" >&6; }
4d0c3ed0 2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
7a197a62 2478
f11781c5 2479} # ac_fn_c_check_func
1568ed4d 2480
6b2e4ec5
ZK
2481# ac_fn_c_try_run LINENO
2482# ----------------------
2483# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2484# executables *can* be run.
2485ac_fn_c_try_run ()
2486{
2487 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2488 if { { ac_try="$ac_link"
2489case "(($ac_try" in
2490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2491 *) ac_try_echo=$ac_try;;
2492esac
2493eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2494printf "%s\n" "$ac_try_echo"; } >&5
2495 (eval "$ac_link") 2>&5
2496 ac_status=$?
2497 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2498 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2499 { { case "(($ac_try" in
2500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2501 *) ac_try_echo=$ac_try;;
2502esac
2503eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2504printf "%s\n" "$ac_try_echo"; } >&5
2505 (eval "$ac_try") 2>&5
2506 ac_status=$?
2507 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; }; }
2509then :
2510 ac_retval=0
635df748
ZK
2511else case e in #(
2512 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
6b2e4ec5
ZK
2513 printf "%s\n" "$as_me: failed program was:" >&5
2514sed 's/^/| /' conftest.$ac_ext >&5
2515
635df748
ZK
2516 ac_retval=$ac_status ;;
2517esac
6b2e4ec5
ZK
2518fi
2519 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2520 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2521 as_fn_set_status $ac_retval
2522
2523} # ac_fn_c_try_run
2524
2525# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2526# ------------------------------------------------------------------
1568ed4d 2527# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
6b2e4ec5
ZK
2528# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2529ac_fn_check_decl ()
1568ed4d
AK
2530{
2531 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2532 as_decl_name=`echo $2|sed 's/ *(.*//'`
6b2e4ec5
ZK
2533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2534printf %s "checking whether $as_decl_name is declared... " >&6; }
2535if eval test \${$3+y}
2536then :
2537 printf %s "(cached) " >&6
635df748
ZK
2538else case e in #(
2539 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
6b2e4ec5
ZK
2540 eval ac_save_FLAGS=\$$6
2541 as_fn_append $6 " $5"
1568ed4d
AK
2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2543/* end confdefs.h. */
2544$4
2545int
6b2e4ec5 2546main (void)
1568ed4d
AK
2547{
2548#ifndef $as_decl_name
2549#ifdef __cplusplus
2550 (void) $as_decl_use;
2551#else
2552 (void) $as_decl_name;
2553#endif
2554#endif
2555
2556 ;
2557 return 0;
2558}
2559_ACEOF
6b2e4ec5
ZK
2560if ac_fn_c_try_compile "$LINENO"
2561then :
1568ed4d 2562 eval "$3=yes"
635df748
ZK
2563else case e in #(
2564 e) eval "$3=no" ;;
2565esac
1568ed4d 2566fi
6b2e4ec5
ZK
2567rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2568 eval $6=\$ac_save_FLAGS
635df748
ZK
2569 ;;
2570esac
1568ed4d
AK
2571fi
2572eval ac_res=\$$3
6b2e4ec5
ZK
2573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2574printf "%s\n" "$ac_res" >&6; }
1568ed4d
AK
2575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2576
6b2e4ec5
ZK
2577} # ac_fn_check_decl
2578ac_configure_args_raw=
2579for ac_arg
2580do
2581 case $ac_arg in
2582 *\'*)
2583 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2584 esac
2585 as_fn_append ac_configure_args_raw " '$ac_arg'"
2586done
2587
2588case $ac_configure_args_raw in
2589 *$as_nl*)
2590 ac_safe_unquote= ;;
2591 *)
2592 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2593 ac_unsafe_a="$ac_unsafe_z#~"
2594 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2595 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2596esac
2597
f11781c5
AK
2598cat >config.log <<_ACEOF
2599This file contains any messages produced by compilers while
2600running configure, to aid debugging if configure makes a mistake.
7a197a62 2601
f11781c5 2602It was created by $as_me, which was
635df748 2603generated by GNU Autoconf 2.72. Invocation command line was
ad6254c5 2604
6b2e4ec5 2605 $ $0$ac_configure_args_raw
ad6254c5 2606
ad6254c5 2607_ACEOF
f11781c5
AK
2608exec 5>>config.log
2609{
2610cat <<_ASUNAME
2611## --------- ##
2612## Platform. ##
2613## --------- ##
ad6254c5 2614
f11781c5
AK
2615hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2616uname -m = `(uname -m) 2>/dev/null || echo unknown`
2617uname -r = `(uname -r) 2>/dev/null || echo unknown`
2618uname -s = `(uname -s) 2>/dev/null || echo unknown`
2619uname -v = `(uname -v) 2>/dev/null || echo unknown`
ad6254c5 2620
f11781c5
AK
2621/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2622/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8a2fc586 2623
f11781c5
AK
2624/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2625/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2626/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2627/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2628/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2629/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2630/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2631
2632_ASUNAME
2633
2634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2635for as_dir in $PATH
2636do
2637 IFS=$as_save_IFS
6b2e4ec5
ZK
2638 case $as_dir in #(((
2639 '') as_dir=./ ;;
2640 */) ;;
2641 *) as_dir=$as_dir/ ;;
2642 esac
2643 printf "%s\n" "PATH: $as_dir"
f11781c5
AK
2644 done
2645IFS=$as_save_IFS
2646
2647} >&5
2648
2649cat >&5 <<_ACEOF
2650
2651
2652## ----------- ##
2653## Core tests. ##
2654## ----------- ##
ad6254c5 2655
ad6254c5 2656_ACEOF
ad6254c5 2657
7a197a62 2658
f11781c5
AK
2659# Keep a trace of the command line.
2660# Strip out --no-create and --no-recursion so they do not pile up.
2661# Strip out --silent because we don't want to record it for future runs.
2662# Also quote any args containing shell meta-characters.
2663# Make two passes to allow for proper duplicate-argument suppression.
2664ac_configure_args=
2665ac_configure_args0=
2666ac_configure_args1=
2667ac_must_keep_next=false
2668for ac_pass in 1 2
2669do
2670 for ac_arg
2671 do
2672 case $ac_arg in
2673 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2674 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2675 | -silent | --silent | --silen | --sile | --sil)
2676 continue ;;
2677 *\'*)
6b2e4ec5 2678 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
f11781c5
AK
2679 esac
2680 case $ac_pass in
2681 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2682 2)
2683 as_fn_append ac_configure_args1 " '$ac_arg'"
2684 if test $ac_must_keep_next = true; then
2685 ac_must_keep_next=false # Got value, back to normal.
2686 else
2687 case $ac_arg in
2688 *=* | --config-cache | -C | -disable-* | --disable-* \
2689 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2690 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2691 | -with-* | --with-* | -without-* | --without-* | --x)
2692 case "$ac_configure_args0 " in
2693 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2694 esac
2695 ;;
2696 -* ) ac_must_keep_next=true ;;
2697 esac
2698 fi
2699 as_fn_append ac_configure_args " '$ac_arg'"
2700 ;;
2701 esac
2702 done
2703done
2704{ ac_configure_args0=; unset ac_configure_args0;}
2705{ ac_configure_args1=; unset ac_configure_args1;}
2706
2707# When interrupted or exit'd, cleanup temporary files, and complete
2708# config.log. We remove comments because anyway the quotes in there
2709# would cause problems or look ugly.
2710# WARNING: Use '\'' to represent an apostrophe within the trap.
2711# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2712trap 'exit_status=$?
6b2e4ec5
ZK
2713 # Sanitize IFS.
2714 IFS=" "" $as_nl"
f11781c5
AK
2715 # Save into config.log some information that might help in debugging.
2716 {
2717 echo
2718
6b2e4ec5 2719 printf "%s\n" "## ---------------- ##
f11781c5
AK
2720## Cache variables. ##
2721## ---------------- ##"
2722 echo
2723 # The following way of writing the cache mishandles newlines in values,
2724(
2725 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2726 eval ac_val=\$$ac_var
2727 case $ac_val in #(
2728 *${as_nl}*)
2729 case $ac_var in #(
6b2e4ec5
ZK
2730 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2731printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
f11781c5
AK
2732 esac
2733 case $ac_var in #(
2734 _ | IFS | as_nl) ;; #(
2735 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2736 *) { eval $ac_var=; unset $ac_var;} ;;
2737 esac ;;
2738 esac
2739 done
2740 (set) 2>&1 |
2741 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2742 *${as_nl}ac_space=\ *)
2743 sed -n \
2744 "s/'\''/'\''\\\\'\'''\''/g;
2745 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2746 ;; #(
2747 *)
2748 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2749 ;;
2750 esac |
2751 sort
2752)
2753 echo
2754
6b2e4ec5 2755 printf "%s\n" "## ----------------- ##
f11781c5
AK
2756## Output variables. ##
2757## ----------------- ##"
2758 echo
2759 for ac_var in $ac_subst_vars
2760 do
2761 eval ac_val=\$$ac_var
2762 case $ac_val in
6b2e4ec5 2763 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
f11781c5 2764 esac
6b2e4ec5 2765 printf "%s\n" "$ac_var='\''$ac_val'\''"
f11781c5
AK
2766 done | sort
2767 echo
2768
2769 if test -n "$ac_subst_files"; then
6b2e4ec5 2770 printf "%s\n" "## ------------------- ##
f11781c5
AK
2771## File substitutions. ##
2772## ------------------- ##"
2773 echo
2774 for ac_var in $ac_subst_files
2775 do
2776 eval ac_val=\$$ac_var
2777 case $ac_val in
6b2e4ec5 2778 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
f11781c5 2779 esac
6b2e4ec5 2780 printf "%s\n" "$ac_var='\''$ac_val'\''"
f11781c5
AK
2781 done | sort
2782 echo
2783 fi
2784
2785 if test -s confdefs.h; then
6b2e4ec5 2786 printf "%s\n" "## ----------- ##
f11781c5
AK
2787## confdefs.h. ##
2788## ----------- ##"
2789 echo
2790 cat confdefs.h
2791 echo
2792 fi
2793 test "$ac_signal" != 0 &&
6b2e4ec5
ZK
2794 printf "%s\n" "$as_me: caught signal $ac_signal"
2795 printf "%s\n" "$as_me: exit $exit_status"
f11781c5
AK
2796 } >&5
2797 rm -f core *.core core.conftest.* &&
2798 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2799 exit $exit_status
2800' 0
2801for ac_signal in 1 2 13 15; do
2802 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2803done
2804ac_signal=0
2805
2806# confdefs.h avoids OS command line length limits that DEFS can exceed.
2807rm -f -r conftest* confdefs.h
7a197a62 2808
6b2e4ec5 2809printf "%s\n" "/* confdefs.h */" > confdefs.h
8a2fc586 2810
f11781c5 2811# Predefined preprocessor variables.
ad6254c5 2812
6b2e4ec5 2813printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
ad6254c5 2814
6b2e4ec5 2815printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
ad6254c5 2816
6b2e4ec5 2817printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
f11781c5 2818
6b2e4ec5 2819printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
ad6254c5 2820
6b2e4ec5 2821printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
7a197a62 2822
6b2e4ec5 2823printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
ad6254c5 2824
7a197a62 2825
f11781c5
AK
2826# Let the site file select an alternate cache file if it wants to.
2827# Prefer an explicitly selected file to automatically selected ones.
f11781c5 2828if test -n "$CONFIG_SITE"; then
6b2e4ec5 2829 ac_site_files="$CONFIG_SITE"
f11781c5 2830elif test "x$prefix" != xNONE; then
6b2e4ec5 2831 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
ad6254c5 2832else
6b2e4ec5 2833 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
ad6254c5 2834fi
6b2e4ec5
ZK
2835
2836for ac_site_file in $ac_site_files
f11781c5 2837do
6b2e4ec5
ZK
2838 case $ac_site_file in #(
2839 */*) :
2840 ;; #(
2841 *) :
2842 ac_site_file=./$ac_site_file ;;
2843esac
2844 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2846printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
f11781c5
AK
2847 sed 's/^/| /' "$ac_site_file" >&5
2848 . "$ac_site_file" \
635df748
ZK
2849 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
2850printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
f11781c5 2851as_fn_error $? "failed to load site script $ac_site_file
635df748 2852See 'config.log' for more details" "$LINENO" 5; }
f11781c5
AK
2853 fi
2854done
ad6254c5 2855
f11781c5
AK
2856if test -r "$cache_file"; then
2857 # Some versions of bash will fail to source /dev/null (special files
2858 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2859 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
6b2e4ec5
ZK
2860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2861printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
f11781c5
AK
2862 case $cache_file in
2863 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2864 *) . "./$cache_file";;
2865 esac
2866 fi
2867else
6b2e4ec5
ZK
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2869printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
f11781c5 2870 >$cache_file
ad6254c5 2871fi
ad6254c5 2872
6b2e4ec5
ZK
2873# Test code for whether the C compiler supports C89 (global declarations)
2874ac_c_conftest_c89_globals='
2875/* Does the compiler advertise C89 conformance?
2876 Do not test the value of __STDC__, because some compilers set it to 0
2877 while being otherwise adequately conformant. */
2878#if !defined __STDC__
2879# error "Compiler does not advertise C89 conformance"
2880#endif
2881
2882#include <stddef.h>
2883#include <stdarg.h>
2884struct stat;
2885/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2886struct buf { int x; };
2887struct buf * (*rcsopen) (struct buf *, struct stat *, int);
635df748 2888static char *e (char **p, int i)
6b2e4ec5
ZK
2889{
2890 return p[i];
2891}
2892static char *f (char * (*g) (char **, int), char **p, ...)
2893{
2894 char *s;
2895 va_list v;
2896 va_start (v,p);
2897 s = g (p, va_arg (v,int));
2898 va_end (v);
2899 return s;
2900}
2901
635df748
ZK
2902/* C89 style stringification. */
2903#define noexpand_stringify(a) #a
2904const char *stringified = noexpand_stringify(arbitrary+token=sequence);
2905
2906/* C89 style token pasting. Exercises some of the corner cases that
2907 e.g. old MSVC gets wrong, but not very hard. */
2908#define noexpand_concat(a,b) a##b
2909#define expand_concat(a,b) noexpand_concat(a,b)
2910extern int vA;
2911extern int vbee;
2912#define aye A
2913#define bee B
2914int *pvA = &expand_concat(v,aye);
2915int *pvbee = &noexpand_concat(v,bee);
2916
6b2e4ec5
ZK
2917/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2918 function prototypes and stuff, but not \xHH hex character constants.
2919 These do not provoke an error unfortunately, instead are silently treated
2920 as an "x". The following induces an error, until -std is added to get
2921 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2922 array size at least. It is necessary to write \x00 == 0 to get something
2923 that is true only with -std. */
2924int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2925
2926/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2927 inside strings and character constants. */
2928#define FOO(x) '\''x'\''
2929int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2930
2931int test (int i, double x);
2932struct s1 {int (*f) (int a);};
2933struct s2 {int (*f) (double a);};
2934int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2935 int, int);'
2936
2937# Test code for whether the C compiler supports C89 (body of main).
2938ac_c_conftest_c89_main='
2939ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2940'
2941
2942# Test code for whether the C compiler supports C99 (global declarations)
2943ac_c_conftest_c99_globals='
635df748 2944/* Does the compiler advertise C99 conformance? */
6b2e4ec5
ZK
2945#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2946# error "Compiler does not advertise C99 conformance"
2947#endif
2948
635df748
ZK
2949// See if C++-style comments work.
2950
6b2e4ec5
ZK
2951#include <stdbool.h>
2952extern int puts (const char *);
2953extern int printf (const char *, ...);
2954extern int dprintf (int, const char *, ...);
2955extern void *malloc (size_t);
635df748 2956extern void free (void *);
6b2e4ec5
ZK
2957
2958// Check varargs macros. These examples are taken from C99 6.10.3.5.
2959// dprintf is used instead of fprintf to avoid needing to declare
2960// FILE and stderr.
2961#define debug(...) dprintf (2, __VA_ARGS__)
2962#define showlist(...) puts (#__VA_ARGS__)
2963#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2964static void
2965test_varargs_macros (void)
2966{
2967 int x = 1234;
2968 int y = 5678;
2969 debug ("Flag");
2970 debug ("X = %d\n", x);
2971 showlist (The first, second, and third items.);
2972 report (x>y, "x is %d but y is %d", x, y);
2973}
2974
2975// Check long long types.
2976#define BIG64 18446744073709551615ull
2977#define BIG32 4294967295ul
2978#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2979#if !BIG_OK
2980 #error "your preprocessor is broken"
2981#endif
2982#if BIG_OK
2983#else
2984 #error "your preprocessor is broken"
2985#endif
2986static long long int bignum = -9223372036854775807LL;
2987static unsigned long long int ubignum = BIG64;
2988
2989struct incomplete_array
2990{
2991 int datasize;
2992 double data[];
2993};
2994
2995struct named_init {
2996 int number;
2997 const wchar_t *name;
2998 double average;
2999};
3000
3001typedef const char *ccp;
3002
3003static inline int
3004test_restrict (ccp restrict text)
3005{
6b2e4ec5
ZK
3006 // Iterate through items via the restricted pointer.
3007 // Also check for declarations in for loops.
3008 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3009 continue;
3010 return 0;
3011}
3012
3013// Check varargs and va_copy.
3014static bool
3015test_varargs (const char *format, ...)
3016{
3017 va_list args;
3018 va_start (args, format);
3019 va_list args_copy;
3020 va_copy (args_copy, args);
3021
3022 const char *str = "";
3023 int number = 0;
3024 float fnumber = 0;
3025
3026 while (*format)
3027 {
3028 switch (*format++)
3029 {
3030 case '\''s'\'': // string
3031 str = va_arg (args_copy, const char *);
3032 break;
3033 case '\''d'\'': // int
3034 number = va_arg (args_copy, int);
3035 break;
3036 case '\''f'\'': // float
3037 fnumber = va_arg (args_copy, double);
3038 break;
3039 default:
3040 break;
3041 }
3042 }
3043 va_end (args_copy);
3044 va_end (args);
3045
3046 return *str && number && fnumber;
3047}
3048'
3049
3050# Test code for whether the C compiler supports C99 (body of main).
3051ac_c_conftest_c99_main='
3052 // Check bool.
3053 _Bool success = false;
3054 success |= (argc != 0);
3055
3056 // Check restrict.
3057 if (test_restrict ("String literal") == 0)
3058 success = true;
3059 char *restrict newvar = "Another string";
3060
3061 // Check varargs.
3062 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3063 test_varargs_macros ();
3064
3065 // Check flexible array members.
3066 struct incomplete_array *ia =
3067 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3068 ia->datasize = 10;
3069 for (int i = 0; i < ia->datasize; ++i)
3070 ia->data[i] = i * 1.234;
635df748
ZK
3071 // Work around memory leak warnings.
3072 free (ia);
6b2e4ec5
ZK
3073
3074 // Check named initializers.
3075 struct named_init ni = {
3076 .number = 34,
3077 .name = L"Test wide string",
3078 .average = 543.34343,
3079 };
3080
3081 ni.number = 58;
3082
3083 int dynamic_array[ni.number];
3084 dynamic_array[0] = argv[0][0];
3085 dynamic_array[ni.number - 1] = 543;
3086
3087 // work around unused variable warnings
3088 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3089 || dynamic_array[ni.number - 1] != 543);
3090'
3091
3092# Test code for whether the C compiler supports C11 (global declarations)
3093ac_c_conftest_c11_globals='
635df748 3094/* Does the compiler advertise C11 conformance? */
6b2e4ec5
ZK
3095#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3096# error "Compiler does not advertise C11 conformance"
3097#endif
3098
3099// Check _Alignas.
3100char _Alignas (double) aligned_as_double;
3101char _Alignas (0) no_special_alignment;
3102extern char aligned_as_int;
3103char _Alignas (0) _Alignas (int) aligned_as_int;
3104
3105// Check _Alignof.
3106enum
3107{
3108 int_alignment = _Alignof (int),
3109 int_array_alignment = _Alignof (int[100]),
3110 char_alignment = _Alignof (char)
3111};
3112_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3113
3114// Check _Noreturn.
3115int _Noreturn does_not_return (void) { for (;;) continue; }
3116
3117// Check _Static_assert.
3118struct test_static_assert
3119{
3120 int x;
3121 _Static_assert (sizeof (int) <= sizeof (long int),
3122 "_Static_assert does not work in struct");
3123 long int y;
3124};
3125
3126// Check UTF-8 literals.
3127#define u8 syntax error!
3128char const utf8_literal[] = u8"happens to be ASCII" "another string";
3129
3130// Check duplicate typedefs.
3131typedef long *long_ptr;
3132typedef long int *long_ptr;
3133typedef long_ptr long_ptr;
3134
3135// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3136struct anonymous
3137{
3138 union {
3139 struct { int i; int j; };
3140 struct { int k; long int l; } w;
3141 };
3142 int m;
3143} v1;
3144'
3145
3146# Test code for whether the C compiler supports C11 (body of main).
3147ac_c_conftest_c11_main='
3148 _Static_assert ((offsetof (struct anonymous, i)
3149 == offsetof (struct anonymous, w.k)),
3150 "Anonymous union alignment botch");
3151 v1.i = 2;
3152 v1.w.k = 5;
3153 ok |= v1.i != 5;
3154'
3155
3156# Test code for whether the C compiler supports C11 (complete).
3157ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3158${ac_c_conftest_c99_globals}
3159${ac_c_conftest_c11_globals}
3160
3161int
3162main (int argc, char **argv)
3163{
3164 int ok = 0;
3165 ${ac_c_conftest_c89_main}
3166 ${ac_c_conftest_c99_main}
3167 ${ac_c_conftest_c11_main}
3168 return ok;
3169}
3170"
3171
3172# Test code for whether the C compiler supports C99 (complete).
3173ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3174${ac_c_conftest_c99_globals}
3175
3176int
3177main (int argc, char **argv)
3178{
3179 int ok = 0;
3180 ${ac_c_conftest_c89_main}
3181 ${ac_c_conftest_c99_main}
3182 return ok;
3183}
3184"
3185
3186# Test code for whether the C compiler supports C89 (complete).
3187ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3188
3189int
3190main (int argc, char **argv)
3191{
3192 int ok = 0;
3193 ${ac_c_conftest_c89_main}
3194 return ok;
3195}
3196"
3197
3198# Test code for whether the C++ compiler supports C++98 (global declarations)
3199ac_cxx_conftest_cxx98_globals='
3200// Does the compiler advertise C++98 conformance?
3201#if !defined __cplusplus || __cplusplus < 199711L
3202# error "Compiler does not advertise C++98 conformance"
3203#endif
3204
3205// These inclusions are to reject old compilers that
3206// lack the unsuffixed header files.
3207#include <cstdlib>
3208#include <exception>
3209
3210// <cassert> and <cstring> are *not* freestanding headers in C++98.
3211extern void assert (int);
3212namespace std {
3213 extern int strcmp (const char *, const char *);
3214}
3215
3216// Namespaces, exceptions, and templates were all added after "C++ 2.0".
3217using std::exception;
3218using std::strcmp;
3219
3220namespace {
3221
3222void test_exception_syntax()
3223{
3224 try {
3225 throw "test";
3226 } catch (const char *s) {
3227 // Extra parentheses suppress a warning when building autoconf itself,
3228 // due to lint rules shared with more typical C programs.
3229 assert (!(strcmp) (s, "test"));
3230 }
3231}
3232
3233template <typename T> struct test_template
3234{
3235 T const val;
3236 explicit test_template(T t) : val(t) {}
3237 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3238};
3239
3240} // anonymous namespace
3241'
3242
3243# Test code for whether the C++ compiler supports C++98 (body of main)
3244ac_cxx_conftest_cxx98_main='
3245 assert (argc);
3246 assert (! argv[0]);
3247{
3248 test_exception_syntax ();
3249 test_template<double> tt (2.0);
3250 assert (tt.add (4) == 6.0);
3251 assert (true && !false);
3252}
3253'
3254
3255# Test code for whether the C++ compiler supports C++11 (global declarations)
3256ac_cxx_conftest_cxx11_globals='
3257// Does the compiler advertise C++ 2011 conformance?
3258#if !defined __cplusplus || __cplusplus < 201103L
3259# error "Compiler does not advertise C++11 conformance"
3260#endif
3261
3262namespace cxx11test
3263{
3264 constexpr int get_val() { return 20; }
3265
3266 struct testinit
3267 {
3268 int i;
3269 double d;
3270 };
3271
3272 class delegate
3273 {
3274 public:
3275 delegate(int n) : n(n) {}
3276 delegate(): delegate(2354) {}
3277
3278 virtual int getval() { return this->n; };
3279 protected:
3280 int n;
3281 };
3282
3283 class overridden : public delegate
3284 {
3285 public:
3286 overridden(int n): delegate(n) {}
3287 virtual int getval() override final { return this->n * 2; }
3288 };
3289
3290 class nocopy
3291 {
3292 public:
3293 nocopy(int i): i(i) {}
3294 nocopy() = default;
3295 nocopy(const nocopy&) = delete;
3296 nocopy & operator=(const nocopy&) = delete;
3297 private:
3298 int i;
3299 };
3300
3301 // for testing lambda expressions
3302 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3303 {
3304 return f(v);
3305 }
3306
3307 // for testing variadic templates and trailing return types
3308 template <typename V> auto sum(V first) -> V
3309 {
3310 return first;
3311 }
3312 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3313 {
3314 return first + sum(rest...);
3315 }
3316}
3317'
3318
3319# Test code for whether the C++ compiler supports C++11 (body of main)
3320ac_cxx_conftest_cxx11_main='
3321{
3322 // Test auto and decltype
3323 auto a1 = 6538;
3324 auto a2 = 48573953.4;
3325 auto a3 = "String literal";
3326
3327 int total = 0;
3328 for (auto i = a3; *i; ++i) { total += *i; }
3329
3330 decltype(a2) a4 = 34895.034;
3331}
3332{
3333 // Test constexpr
3334 short sa[cxx11test::get_val()] = { 0 };
3335}
3336{
3337 // Test initializer lists
3338 cxx11test::testinit il = { 4323, 435234.23544 };
3339}
3340{
3341 // Test range-based for
3342 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3343 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3344 for (auto &x : array) { x += 23; }
3345}
3346{
3347 // Test lambda expressions
3348 using cxx11test::eval;
3349 assert (eval ([](int x) { return x*2; }, 21) == 42);
3350 double d = 2.0;
3351 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3352 assert (d == 5.0);
3353 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3354 assert (d == 5.0);
3355}
3356{
3357 // Test use of variadic templates
3358 using cxx11test::sum;
3359 auto a = sum(1);
3360 auto b = sum(1, 2);
3361 auto c = sum(1.0, 2.0, 3.0);
3362}
3363{
3364 // Test constructor delegation
3365 cxx11test::delegate d1;
3366 cxx11test::delegate d2();
3367 cxx11test::delegate d3(45);
3368}
3369{
3370 // Test override and final
3371 cxx11test::overridden o1(55464);
3372}
3373{
3374 // Test nullptr
3375 char *c = nullptr;
3376}
3377{
3378 // Test template brackets
3379 test_template<::test_template<int>> v(test_template<int>(12));
3380}
3381{
3382 // Unicode literals
3383 char const *utf8 = u8"UTF-8 string \u2500";
3384 char16_t const *utf16 = u"UTF-8 string \u2500";
3385 char32_t const *utf32 = U"UTF-32 string \u2500";
3386}
3387'
3388
3389# Test code for whether the C compiler supports C++11 (complete).
3390ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3391${ac_cxx_conftest_cxx11_globals}
3392
3393int
3394main (int argc, char **argv)
3395{
3396 int ok = 0;
3397 ${ac_cxx_conftest_cxx98_main}
3398 ${ac_cxx_conftest_cxx11_main}
3399 return ok;
3400}
3401"
3402
3403# Test code for whether the C compiler supports C++98 (complete).
3404ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3405int
3406main (int argc, char **argv)
3407{
3408 int ok = 0;
3409 ${ac_cxx_conftest_cxx98_main}
3410 return ok;
3411}
3412"
3413
3414as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3415as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3416as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3417as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3418as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3419as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3420as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3421as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3422as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
6b2e4ec5
ZK
3423as_fn_append ac_header_c_list " vfork.h vfork_h HAVE_VFORK_H"
3424as_fn_append ac_func_c_list " fork HAVE_FORK"
3425as_fn_append ac_func_c_list " vfork HAVE_VFORK"
5aa8683e 3426as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
6b2e4ec5
ZK
3427as_fn_append ac_func_c_list " alarm HAVE_ALARM"
3428as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3429as_fn_append ac_func_c_list " getpagesize HAVE_GETPAGESIZE"
3430as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
3431
3432# Auxiliary files required by this configure script.
3433ac_aux_files="install-sh config.guess config.sub"
3434
3435# Locations in which to look for auxiliary files.
3436ac_aux_dir_candidates="${srcdir}/autoconf"
3437
3438# Search for a directory containing all of the required auxiliary files,
3439# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3440# If we don't find one directory that contains all the files we need,
3441# we report the set of missing files from the *first* directory in
3442# $ac_aux_dir_candidates and give up.
3443ac_missing_aux_files=""
3444ac_first_candidate=:
3445printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3447as_found=false
3448for as_dir in $ac_aux_dir_candidates
3449do
3450 IFS=$as_save_IFS
3451 case $as_dir in #(((
3452 '') as_dir=./ ;;
3453 */) ;;
3454 *) as_dir=$as_dir/ ;;
3455 esac
3456 as_found=:
3457
3458 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3459 ac_aux_dir_found=yes
3460 ac_install_sh=
3461 for ac_aux in $ac_aux_files
3462 do
3463 # As a special case, if "install-sh" is required, that requirement
3464 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3465 # and $ac_install_sh is set appropriately for whichever one is found.
3466 if test x"$ac_aux" = x"install-sh"
3467 then
3468 if test -f "${as_dir}install-sh"; then
3469 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3470 ac_install_sh="${as_dir}install-sh -c"
3471 elif test -f "${as_dir}install.sh"; then
3472 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3473 ac_install_sh="${as_dir}install.sh -c"
3474 elif test -f "${as_dir}shtool"; then
3475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3476 ac_install_sh="${as_dir}shtool install -c"
3477 else
3478 ac_aux_dir_found=no
3479 if $ac_first_candidate; then
3480 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3481 else
3482 break
3483 fi
3484 fi
3485 else
3486 if test -f "${as_dir}${ac_aux}"; then
3487 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3488 else
3489 ac_aux_dir_found=no
3490 if $ac_first_candidate; then
3491 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3492 else
3493 break
3494 fi
3495 fi
3496 fi
3497 done
3498 if test "$ac_aux_dir_found" = yes; then
3499 ac_aux_dir="$as_dir"
3500 break
3501 fi
3502 ac_first_candidate=false
3503
3504 as_found=false
3505done
3506IFS=$as_save_IFS
3507if $as_found
3508then :
3509
635df748
ZK
3510else case e in #(
3511 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3512esac
6b2e4ec5
ZK
3513fi
3514
3515
3516# These three variables are undocumented and unsupported,
3517# and are intended to be withdrawn in a future Autoconf release.
3518# They can cause serious problems if a builder's source tree is in a directory
3519# whose full name contains unusual characters.
3520if test -f "${ac_aux_dir}config.guess"; then
3521 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3522fi
3523if test -f "${ac_aux_dir}config.sub"; then
3524 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3525fi
3526if test -f "$ac_aux_dir/configure"; then
3527 ac_configure="$SHELL ${ac_aux_dir}configure"
3528fi
3529
3530# Check that the precious variables saved in the cache have kept the same
3531# value.
3532ac_cache_corrupted=false
3533for ac_var in $ac_precious_vars; do
3534 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3535 eval ac_new_set=\$ac_env_${ac_var}_set
3536 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3537 eval ac_new_val=\$ac_env_${ac_var}_value
3538 case $ac_old_set,$ac_new_set in
3539 set,)
635df748
ZK
3540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3541printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
6b2e4ec5
ZK
3542 ac_cache_corrupted=: ;;
3543 ,set)
635df748
ZK
3544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3545printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
6b2e4ec5
ZK
3546 ac_cache_corrupted=: ;;
3547 ,);;
3548 *)
3549 if test "x$ac_old_val" != "x$ac_new_val"; then
3550 # differences in whitespace do not lead to failure.
3551 ac_old_val_w=`echo x $ac_old_val`
3552 ac_new_val_w=`echo x $ac_new_val`
3553 if test "$ac_old_val_w" != "$ac_new_val_w"; then
635df748
ZK
3554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3555printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
6b2e4ec5
ZK
3556 ac_cache_corrupted=:
3557 else
635df748
ZK
3558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3559printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
6b2e4ec5
ZK
3560 eval $ac_var=\$ac_old_val
3561 fi
635df748
ZK
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3563printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3565printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
6b2e4ec5
ZK
3566 fi;;
3567 esac
3568 # Pass precious variables to config.status.
3569 if test "$ac_new_set" = set; then
3570 case $ac_new_val in
3571 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3572 *) ac_arg=$ac_var=$ac_new_val ;;
3573 esac
3574 case " $ac_configure_args " in
3575 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3576 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3577 esac
3578 fi
f11781c5
AK
3579done
3580if $ac_cache_corrupted; then
635df748
ZK
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3582printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6b2e4ec5
ZK
3583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3584printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
635df748 3585 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
6b2e4ec5 3586 and start over" "$LINENO" 5
ad6254c5 3587fi
f11781c5
AK
3588## -------------------- ##
3589## Main body of script. ##
3590## -------------------- ##
ad6254c5 3591
f11781c5
AK
3592ac_ext=c
3593ac_cpp='$CPP $CPPFLAGS'
3594ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3595ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3596ac_compiler_gnu=$ac_cv_c_compiler_gnu
ad6254c5 3597
ad6254c5 3598
e8362b4c 3599CONFIGURE_LINE="$0 $@"
ad6254c5 3600
95b5d24f 3601ac_config_headers="$ac_config_headers include/configure.h"
7a197a62
AK
3602
3603
f11781c5 3604################################################################################
ad6254c5 3605
ad6254c5 3606
6b2e4ec5 3607################################################################################
ad6254c5 3608
8a2fc586 3609
ad6254c5 3610
6b2e4ec5
ZK
3611 # Make sure we can run config.sub.
3612$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
3613 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
3614
3615{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3616printf %s "checking build system type... " >&6; }
3617if test ${ac_cv_build+y}
3618then :
3619 printf %s "(cached) " >&6
635df748
ZK
3620else case e in #(
3621 e) ac_build_alias=$build_alias
f11781c5 3622test "x$ac_build_alias" = x &&
6b2e4ec5 3623 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
f11781c5
AK
3624test "x$ac_build_alias" = x &&
3625 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6b2e4ec5
ZK
3626ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
3627 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
635df748
ZK
3628 ;;
3629esac
ad6254c5 3630fi
6b2e4ec5
ZK
3631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3632printf "%s\n" "$ac_cv_build" >&6; }
f11781c5
AK
3633case $ac_cv_build in
3634*-*-*) ;;
3635*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3636esac
3637build=$ac_cv_build
3638ac_save_IFS=$IFS; IFS='-'
3639set x $ac_cv_build
3640shift
3641build_cpu=$1
3642build_vendor=$2
3643shift; shift
3644# Remember, the first character of IFS is used to create $*,
3645# except with old shells:
3646build_os=$*
3647IFS=$ac_save_IFS
3648case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
ad6254c5
AK
3649
3650
6b2e4ec5
ZK
3651{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3652printf %s "checking host system type... " >&6; }
3653if test ${ac_cv_host+y}
3654then :
3655 printf %s "(cached) " >&6
635df748
ZK
3656else case e in #(
3657 e) if test "x$host_alias" = x; then
f11781c5 3658 ac_cv_host=$ac_cv_build
ad6254c5 3659else
6b2e4ec5
ZK
3660 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
3661 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
f11781c5 3662fi
635df748
ZK
3663 ;;
3664esac
f11781c5 3665fi
6b2e4ec5
ZK
3666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3667printf "%s\n" "$ac_cv_host" >&6; }
f11781c5
AK
3668case $ac_cv_host in
3669*-*-*) ;;
3670*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3671esac
3672host=$ac_cv_host
3673ac_save_IFS=$IFS; IFS='-'
3674set x $ac_cv_host
3675shift
3676host_cpu=$1
3677host_vendor=$2
3678shift; shift
3679# Remember, the first character of IFS is used to create $*,
3680# except with old shells:
3681host_os=$*
3682IFS=$ac_save_IFS
3683case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
ad6254c5 3684
ad6254c5 3685
6b2e4ec5
ZK
3686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3687printf %s "checking target system type... " >&6; }
3688if test ${ac_cv_target+y}
3689then :
3690 printf %s "(cached) " >&6
635df748
ZK
3691else case e in #(
3692 e) if test "x$target_alias" = x; then
f11781c5
AK
3693 ac_cv_target=$ac_cv_host
3694else
6b2e4ec5
ZK
3695 ac_cv_target=`$SHELL "${ac_aux_dir}config.sub" $target_alias` ||
3696 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $target_alias failed" "$LINENO" 5
ad6254c5 3697fi
635df748
ZK
3698 ;;
3699esac
ad6254c5 3700fi
6b2e4ec5
ZK
3701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3702printf "%s\n" "$ac_cv_target" >&6; }
f11781c5
AK
3703case $ac_cv_target in
3704*-*-*) ;;
3705*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
8a2fc586 3706esac
f11781c5
AK
3707target=$ac_cv_target
3708ac_save_IFS=$IFS; IFS='-'
3709set x $ac_cv_target
3710shift
3711target_cpu=$1
3712target_vendor=$2
3713shift; shift
3714# Remember, the first character of IFS is used to create $*,
3715# except with old shells:
3716target_os=$*
3717IFS=$ac_save_IFS
3718case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
8a2fc586 3719
ad6254c5 3720
f11781c5
AK
3721# The aliases save the names the user supplied, while $host etc.
3722# will get canonicalized.
3723test -n "$target_alias" &&
3724 test "$program_prefix$program_suffix$program_transform_name" = \
3725 NONENONEs,x,x, &&
3726 program_prefix=${target_alias}-
ad6254c5 3727
6b2e4ec5
ZK
3728if test -z "$CFLAGS"
3729then :
3fa66d10
ZK
3730 COPTIMISE_FLAG="-O2"
3731fi
b681b774
ZK
3732case "$host_os" in #(
3733 linux*) :
3734
57727bb4 3735 # equivalent to -rdynamic
bf09a320 3736 ELDFLAGS="-Wl,--export-dynamic"
86ac529b 3737 STATIC_LDFLAGS="-Wl,--no-export-dynamic"
bf09a320 3738 # FIXME Generate list and use --dynamic-list=.dlopen.sym
f11781c5
AK
3739 CLDWHOLEARCHIVE="-Wl,-whole-archive"
3740 CLDNOWHOLEARCHIVE="-Wl,-no-whole-archive"
b681b774
ZK
3741 LIB_SUFFIX="so"
3742 DEVMAPPER="yes"
b681b774
ZK
3743 ODIRECT="yes"
3744 DM_IOCTLS="yes"
3745 SELINUX="yes"
3746 FSADM="yes"
3747 LVMIMPORTVDO="yes"
3748 BLKDEACTIVATE="yes" ;; #(
3749 darwin*) :
3750
f11781c5 3751 CFLAGS="$CFLAGS -no-cpp-precomp -fno-common"
bf09a320 3752 ELDFLAGS=
f11781c5
AK
3753 CLDWHOLEARCHIVE="-all_load"
3754 CLDNOWHOLEARCHIVE=
b681b774
ZK
3755 LIB_SUFFIX="dylib"
3756 DEVMAPPER="yes"
3757 ODIRECT="no"
3758 DM_IOCTLS="no"
3759 SELINUX="no"
3760 FSADM="no"
3761 LVMIMPORTVDO="no"
3762 BLKDEACTIVATE="no" ;; #(
3763 *) :
f569ac59 3764 ;;
f11781c5 3765esac
ad6254c5 3766
f11781c5 3767################################################################################
6b2e4ec5
ZK
3768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3769printf %s "checking for a sed that does not truncate output... " >&6; }
3770if test ${ac_cv_path_SED+y}
3771then :
3772 printf %s "(cached) " >&6
635df748
ZK
3773else case e in #(
3774 e) ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
f11781c5
AK
3775 for ac_i in 1 2 3 4 5 6 7; do
3776 ac_script="$ac_script$as_nl$ac_script"
3777 done
3778 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3779 { ac_script=; unset ac_script;}
3780 if test -z "$SED"; then
3781 ac_path_SED_found=false
3782 # Loop through the user's path and test for each of PROGNAME-LIST
3783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3784for as_dir in $PATH
3785do
3786 IFS=$as_save_IFS
6b2e4ec5
ZK
3787 case $as_dir in #(((
3788 '') as_dir=./ ;;
3789 */) ;;
3790 *) as_dir=$as_dir/ ;;
3791 esac
3792 for ac_prog in sed gsed
3793 do
f11781c5 3794 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 3795 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
4d0c3ed0 3796 as_fn_executable_p "$ac_path_SED" || continue
f11781c5
AK
3797# Check for GNU ac_path_SED and select it if it is found.
3798 # Check for GNU $ac_path_SED
635df748 3799case `"$ac_path_SED" --version 2>&1` in #(
f11781c5
AK
3800*GNU*)
3801 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
635df748 3802#(
f11781c5
AK
3803*)
3804 ac_count=0
6b2e4ec5 3805 printf %s 0123456789 >"conftest.in"
f11781c5
AK
3806 while :
3807 do
3808 cat "conftest.in" "conftest.in" >"conftest.tmp"
3809 mv "conftest.tmp" "conftest.in"
3810 cp "conftest.in" "conftest.nl"
6b2e4ec5 3811 printf "%s\n" '' >> "conftest.nl"
f11781c5
AK
3812 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3813 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3814 as_fn_arith $ac_count + 1 && ac_count=$as_val
3815 if test $ac_count -gt ${ac_path_SED_max-0}; then
3816 # Best one so far, save it but keep looking for a better one
3817 ac_cv_path_SED="$ac_path_SED"
3818 ac_path_SED_max=$ac_count
3819 fi
3820 # 10*(2^10) chars as input seems more than enough
3821 test $ac_count -gt 10 && break
3822 done
3823 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7a197a62 3824esac
ad6254c5 3825
f11781c5
AK
3826 $ac_path_SED_found && break 3
3827 done
3828 done
3829 done
3830IFS=$as_save_IFS
3831 if test -z "$ac_cv_path_SED"; then
3832 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
3833 fi
3834else
3835 ac_cv_path_SED=$SED
ad6254c5 3836fi
635df748
ZK
3837 ;;
3838esac
f11781c5 3839fi
6b2e4ec5
ZK
3840{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3841printf "%s\n" "$ac_cv_path_SED" >&6; }
f11781c5
AK
3842 SED="$ac_cv_path_SED"
3843 rm -f conftest.sed
ad6254c5 3844
f11781c5
AK
3845for ac_prog in gawk mawk nawk awk
3846do
3847 # Extract the first word of "$ac_prog", so it can be a program name with args.
3848set dummy $ac_prog; ac_word=$2
6b2e4ec5
ZK
3849{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3850printf %s "checking for $ac_word... " >&6; }
3851if test ${ac_cv_prog_AWK+y}
3852then :
3853 printf %s "(cached) " >&6
635df748
ZK
3854else case e in #(
3855 e) if test -n "$AWK"; then
f11781c5
AK
3856 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3857else
3858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3859for as_dir in $PATH
3860do
3861 IFS=$as_save_IFS
6b2e4ec5
ZK
3862 case $as_dir in #(((
3863 '') as_dir=./ ;;
3864 */) ;;
3865 *) as_dir=$as_dir/ ;;
3866 esac
f11781c5 3867 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 3868 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
f11781c5 3869 ac_cv_prog_AWK="$ac_prog"
6b2e4ec5 3870 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
3871 break 2
3872 fi
3873done
3874 done
3875IFS=$as_save_IFS
ad6254c5 3876
635df748
ZK
3877fi ;;
3878esac
ad6254c5 3879fi
f11781c5
AK
3880AWK=$ac_cv_prog_AWK
3881if test -n "$AWK"; then
6b2e4ec5
ZK
3882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3883printf "%s\n" "$AWK" >&6; }
f11781c5 3884else
6b2e4ec5
ZK
3885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3886printf "%s\n" "no" >&6; }
ad6254c5 3887fi
ad6254c5 3888
ad6254c5 3889
f11781c5 3890 test -n "$AWK" && break
ad6254c5
AK
3891done
3892
f207a6d3
ZK
3893save_CFLAGS=$CFLAGS
3894save_CXXFLAGS=$CXXFLAGS
6b2e4ec5
ZK
3895
3896
3897
3898
3899
3900
3901
3902
3903
f11781c5
AK
3904ac_ext=c
3905ac_cpp='$CPP $CPPFLAGS'
3906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3908ac_compiler_gnu=$ac_cv_c_compiler_gnu
3909if test -n "$ac_tool_prefix"; then
3910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3911set dummy ${ac_tool_prefix}gcc; ac_word=$2
6b2e4ec5
ZK
3912{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3913printf %s "checking for $ac_word... " >&6; }
3914if test ${ac_cv_prog_CC+y}
3915then :
3916 printf %s "(cached) " >&6
635df748
ZK
3917else case e in #(
3918 e) if test -n "$CC"; then
f11781c5 3919 ac_cv_prog_CC="$CC" # Let the user override the test.
ad6254c5 3920else
f11781c5
AK
3921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3922for as_dir in $PATH
3923do
3924 IFS=$as_save_IFS
6b2e4ec5
ZK
3925 case $as_dir in #(((
3926 '') as_dir=./ ;;
3927 */) ;;
3928 *) as_dir=$as_dir/ ;;
3929 esac
f11781c5 3930 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 3931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
f11781c5 3932 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6b2e4ec5 3933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
3934 break 2
3935 fi
3936done
3937 done
3938IFS=$as_save_IFS
ad6254c5 3939
635df748
ZK
3940fi ;;
3941esac
ad6254c5 3942fi
f11781c5
AK
3943CC=$ac_cv_prog_CC
3944if test -n "$CC"; then
6b2e4ec5
ZK
3945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3946printf "%s\n" "$CC" >&6; }
f11781c5 3947else
6b2e4ec5
ZK
3948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3949printf "%s\n" "no" >&6; }
ad6254c5 3950fi
ad6254c5 3951
f11781c5
AK
3952
3953fi
3954if test -z "$ac_cv_prog_CC"; then
3955 ac_ct_CC=$CC
3956 # Extract the first word of "gcc", so it can be a program name with args.
3957set dummy gcc; ac_word=$2
6b2e4ec5
ZK
3958{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3959printf %s "checking for $ac_word... " >&6; }
3960if test ${ac_cv_prog_ac_ct_CC+y}
3961then :
3962 printf %s "(cached) " >&6
635df748
ZK
3963else case e in #(
3964 e) if test -n "$ac_ct_CC"; then
f11781c5 3965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
d911ec67 3966else
f11781c5
AK
3967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968for as_dir in $PATH
3969do
3970 IFS=$as_save_IFS
6b2e4ec5
ZK
3971 case $as_dir in #(((
3972 '') as_dir=./ ;;
3973 */) ;;
3974 *) as_dir=$as_dir/ ;;
3975 esac
f11781c5 3976 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 3977 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
f11781c5 3978 ac_cv_prog_ac_ct_CC="gcc"
6b2e4ec5 3979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
3980 break 2
3981 fi
3982done
3983 done
3984IFS=$as_save_IFS
d911ec67 3985
635df748
ZK
3986fi ;;
3987esac
d911ec67 3988fi
f11781c5
AK
3989ac_ct_CC=$ac_cv_prog_ac_ct_CC
3990if test -n "$ac_ct_CC"; then
6b2e4ec5
ZK
3991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3992printf "%s\n" "$ac_ct_CC" >&6; }
f11781c5 3993else
6b2e4ec5
ZK
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995printf "%s\n" "no" >&6; }
d911ec67 3996fi
d911ec67 3997
f11781c5
AK
3998 if test "x$ac_ct_CC" = x; then
3999 CC=""
4000 else
4001 case $cross_compiling:$ac_tool_warned in
4002yes:)
6b2e4ec5
ZK
4003{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4004printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
f11781c5
AK
4005ac_tool_warned=yes ;;
4006esac
4007 CC=$ac_ct_CC
4008 fi
4009else
4010 CC="$ac_cv_prog_CC"
d911ec67 4011fi
d911ec67 4012
f11781c5
AK
4013if test -z "$CC"; then
4014 if test -n "$ac_tool_prefix"; then
4015 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4016set dummy ${ac_tool_prefix}cc; ac_word=$2
6b2e4ec5
ZK
4017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4018printf %s "checking for $ac_word... " >&6; }
4019if test ${ac_cv_prog_CC+y}
4020then :
4021 printf %s "(cached) " >&6
635df748
ZK
4022else case e in #(
4023 e) if test -n "$CC"; then
f11781c5 4024 ac_cv_prog_CC="$CC" # Let the user override the test.
d911ec67 4025else
f11781c5
AK
4026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027for as_dir in $PATH
4028do
4029 IFS=$as_save_IFS
6b2e4ec5
ZK
4030 case $as_dir in #(((
4031 '') as_dir=./ ;;
4032 */) ;;
4033 *) as_dir=$as_dir/ ;;
4034 esac
f11781c5 4035 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 4036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
f11781c5 4037 ac_cv_prog_CC="${ac_tool_prefix}cc"
6b2e4ec5 4038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
4039 break 2
4040 fi
4041done
4042 done
4043IFS=$as_save_IFS
d911ec67 4044
635df748
ZK
4045fi ;;
4046esac
f11781c5
AK
4047fi
4048CC=$ac_cv_prog_CC
4049if test -n "$CC"; then
6b2e4ec5
ZK
4050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051printf "%s\n" "$CC" >&6; }
f11781c5 4052else
6b2e4ec5
ZK
4053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054printf "%s\n" "no" >&6; }
d911ec67
AK
4055fi
4056
d911ec67 4057
f11781c5
AK
4058 fi
4059fi
4060if test -z "$CC"; then
4061 # Extract the first word of "cc", so it can be a program name with args.
4062set dummy cc; ac_word=$2
6b2e4ec5
ZK
4063{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4064printf %s "checking for $ac_word... " >&6; }
4065if test ${ac_cv_prog_CC+y}
4066then :
4067 printf %s "(cached) " >&6
635df748
ZK
4068else case e in #(
4069 e) if test -n "$CC"; then
f11781c5
AK
4070 ac_cv_prog_CC="$CC" # Let the user override the test.
4071else
4072 ac_prog_rejected=no
4073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074for as_dir in $PATH
4075do
4076 IFS=$as_save_IFS
6b2e4ec5
ZK
4077 case $as_dir in #(((
4078 '') as_dir=./ ;;
4079 */) ;;
4080 *) as_dir=$as_dir/ ;;
4081 esac
f11781c5 4082 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
4083 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4084 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
f11781c5
AK
4085 ac_prog_rejected=yes
4086 continue
4087 fi
4088 ac_cv_prog_CC="cc"
6b2e4ec5 4089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
4090 break 2
4091 fi
4092done
4093 done
4094IFS=$as_save_IFS
d911ec67 4095
f11781c5
AK
4096if test $ac_prog_rejected = yes; then
4097 # We found a bogon in the path, so make sure we never use it.
4098 set dummy $ac_cv_prog_CC
4099 shift
4100 if test $# != 0; then
4101 # We chose a different compiler from the bogus one.
4102 # However, it has the same basename, so the bogon will be chosen
4103 # first if we set CC to just the basename; use the full file name.
4104 shift
6b2e4ec5 4105 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
f11781c5
AK
4106 fi
4107fi
635df748
ZK
4108fi ;;
4109esac
f11781c5
AK
4110fi
4111CC=$ac_cv_prog_CC
4112if test -n "$CC"; then
6b2e4ec5
ZK
4113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4114printf "%s\n" "$CC" >&6; }
f11781c5 4115else
6b2e4ec5
ZK
4116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4117printf "%s\n" "no" >&6; }
d911ec67
AK
4118fi
4119
d911ec67 4120
f11781c5
AK
4121fi
4122if test -z "$CC"; then
4123 if test -n "$ac_tool_prefix"; then
4124 for ac_prog in cl.exe
4125 do
4126 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4127set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6b2e4ec5
ZK
4128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4129printf %s "checking for $ac_word... " >&6; }
4130if test ${ac_cv_prog_CC+y}
4131then :
4132 printf %s "(cached) " >&6
635df748
ZK
4133else case e in #(
4134 e) if test -n "$CC"; then
f11781c5
AK
4135 ac_cv_prog_CC="$CC" # Let the user override the test.
4136else
4137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138for as_dir in $PATH
4139do
4140 IFS=$as_save_IFS
6b2e4ec5
ZK
4141 case $as_dir in #(((
4142 '') as_dir=./ ;;
4143 */) ;;
4144 *) as_dir=$as_dir/ ;;
4145 esac
f11781c5 4146 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 4147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
f11781c5 4148 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6b2e4ec5 4149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
4150 break 2
4151 fi
4152done
4153 done
4154IFS=$as_save_IFS
d911ec67 4155
635df748
ZK
4156fi ;;
4157esac
f11781c5
AK
4158fi
4159CC=$ac_cv_prog_CC
4160if test -n "$CC"; then
6b2e4ec5
ZK
4161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4162printf "%s\n" "$CC" >&6; }
f11781c5 4163else
6b2e4ec5
ZK
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4165printf "%s\n" "no" >&6; }
d911ec67
AK
4166fi
4167
d911ec67 4168
f11781c5
AK
4169 test -n "$CC" && break
4170 done
4171fi
4172if test -z "$CC"; then
4173 ac_ct_CC=$CC
4174 for ac_prog in cl.exe
4175do
4176 # Extract the first word of "$ac_prog", so it can be a program name with args.
4177set dummy $ac_prog; ac_word=$2
6b2e4ec5
ZK
4178{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4179printf %s "checking for $ac_word... " >&6; }
4180if test ${ac_cv_prog_ac_ct_CC+y}
4181then :
4182 printf %s "(cached) " >&6
635df748
ZK
4183else case e in #(
4184 e) if test -n "$ac_ct_CC"; then
f11781c5 4185 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
ad6254c5 4186else
f11781c5
AK
4187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188for as_dir in $PATH
4189do
4190 IFS=$as_save_IFS
6b2e4ec5
ZK
4191 case $as_dir in #(((
4192 '') as_dir=./ ;;
4193 */) ;;
4194 *) as_dir=$as_dir/ ;;
4195 esac
f11781c5 4196 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 4197 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
f11781c5 4198 ac_cv_prog_ac_ct_CC="$ac_prog"
6b2e4ec5 4199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
4200 break 2
4201 fi
4202done
4203 done
4204IFS=$as_save_IFS
ad6254c5 4205
635df748
ZK
4206fi ;;
4207esac
ad6254c5 4208fi
f11781c5
AK
4209ac_ct_CC=$ac_cv_prog_ac_ct_CC
4210if test -n "$ac_ct_CC"; then
6b2e4ec5
ZK
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4212printf "%s\n" "$ac_ct_CC" >&6; }
f11781c5 4213else
6b2e4ec5
ZK
4214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215printf "%s\n" "no" >&6; }
ad6254c5 4216fi
ad6254c5 4217
d911ec67 4218
f11781c5
AK
4219 test -n "$ac_ct_CC" && break
4220done
d911ec67 4221
f11781c5
AK
4222 if test "x$ac_ct_CC" = x; then
4223 CC=""
4224 else
4225 case $cross_compiling:$ac_tool_warned in
4226yes:)
6b2e4ec5
ZK
4227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4228printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
f11781c5 4229ac_tool_warned=yes ;;
d911ec67 4230esac
f11781c5
AK
4231 CC=$ac_ct_CC
4232 fi
4233fi
ad6254c5
AK
4234
4235fi
6b2e4ec5
ZK
4236if test -z "$CC"; then
4237 if test -n "$ac_tool_prefix"; then
4238 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4239set dummy ${ac_tool_prefix}clang; ac_word=$2
4240{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4241printf %s "checking for $ac_word... " >&6; }
4242if test ${ac_cv_prog_CC+y}
4243then :
4244 printf %s "(cached) " >&6
635df748
ZK
4245else case e in #(
4246 e) if test -n "$CC"; then
6b2e4ec5
ZK
4247 ac_cv_prog_CC="$CC" # Let the user override the test.
4248else
4249as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4250for as_dir in $PATH
4251do
4252 IFS=$as_save_IFS
4253 case $as_dir in #(((
4254 '') as_dir=./ ;;
4255 */) ;;
4256 *) as_dir=$as_dir/ ;;
4257 esac
4258 for ac_exec_ext in '' $ac_executable_extensions; do
4259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4260 ac_cv_prog_CC="${ac_tool_prefix}clang"
4261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4262 break 2
4263 fi
4264done
4265 done
4266IFS=$as_save_IFS
4267
635df748
ZK
4268fi ;;
4269esac
6b2e4ec5
ZK
4270fi
4271CC=$ac_cv_prog_CC
4272if test -n "$CC"; then
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274printf "%s\n" "$CC" >&6; }
4275else
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277printf "%s\n" "no" >&6; }
4278fi
d911ec67
AK
4279
4280
6b2e4ec5
ZK
4281fi
4282if test -z "$ac_cv_prog_CC"; then
4283 ac_ct_CC=$CC
4284 # Extract the first word of "clang", so it can be a program name with args.
4285set dummy clang; ac_word=$2
4286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287printf %s "checking for $ac_word... " >&6; }
4288if test ${ac_cv_prog_ac_ct_CC+y}
4289then :
4290 printf %s "(cached) " >&6
635df748
ZK
4291else case e in #(
4292 e) if test -n "$ac_ct_CC"; then
6b2e4ec5
ZK
4293 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4294else
4295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296for as_dir in $PATH
4297do
4298 IFS=$as_save_IFS
4299 case $as_dir in #(((
4300 '') as_dir=./ ;;
4301 */) ;;
4302 *) as_dir=$as_dir/ ;;
4303 esac
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_ac_ct_CC="clang"
4307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310done
4311 done
4312IFS=$as_save_IFS
4313
635df748
ZK
4314fi ;;
4315esac
6b2e4ec5
ZK
4316fi
4317ac_ct_CC=$ac_cv_prog_ac_ct_CC
4318if test -n "$ac_ct_CC"; then
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4320printf "%s\n" "$ac_ct_CC" >&6; }
4321else
4322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323printf "%s\n" "no" >&6; }
4324fi
4325
4326 if test "x$ac_ct_CC" = x; then
4327 CC=""
4328 else
4329 case $cross_compiling:$ac_tool_warned in
4330yes:)
4331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4332printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4333ac_tool_warned=yes ;;
4334esac
4335 CC=$ac_ct_CC
4336 fi
4337else
4338 CC="$ac_cv_prog_CC"
4339fi
4340
4341fi
4342
4343
635df748
ZK
4344test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4345printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
f11781c5 4346as_fn_error $? "no acceptable C compiler found in \$PATH
635df748 4347See 'config.log' for more details" "$LINENO" 5; }
f11781c5
AK
4348
4349# Provide some information about the compiler.
6b2e4ec5 4350printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
f11781c5
AK
4351set X $ac_compile
4352ac_compiler=$2
6b2e4ec5 4353for ac_option in --version -v -V -qversion -version; do
f11781c5
AK
4354 { { ac_try="$ac_compiler $ac_option >&5"
4355case "(($ac_try" in
4356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4357 *) ac_try_echo=$ac_try;;
4358esac
4359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 4360printf "%s\n" "$ac_try_echo"; } >&5
f11781c5
AK
4361 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4362 ac_status=$?
4363 if test -s conftest.err; then
4364 sed '10a\
4365... rest of stderr output deleted ...
4366 10q' conftest.err >conftest.er1
4367 cat conftest.er1 >&5
4368 fi
4369 rm -f conftest.er1 conftest.err
6b2e4ec5 4370 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f11781c5
AK
4371 test $ac_status = 0; }
4372done
ad6254c5 4373
f11781c5 4374cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 4375/* end confdefs.h. */
f11781c5 4376
ad6254c5 4377int
6b2e4ec5 4378main (void)
ad6254c5 4379{
f11781c5 4380
ad6254c5
AK
4381 ;
4382 return 0;
4383}
4384_ACEOF
f11781c5
AK
4385ac_clean_files_save=$ac_clean_files
4386ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4387# Try to create an executable without -o first, disregard a.out.
4388# It will help us diagnose broken compilers, and finding out an intuition
4389# of exeext.
6b2e4ec5
ZK
4390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4391printf %s "checking whether the C compiler works... " >&6; }
4392ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
f11781c5
AK
4393
4394# The possible output files:
4395ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4396
4397ac_rmfiles=
4398for ac_file in $ac_files
4399do
4400 case $ac_file in
4401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4402 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4403 esac
4404done
4405rm -f $ac_rmfiles
4406
4407if { { ac_try="$ac_link_default"
7a197a62
AK
4408case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4411esac
f11781c5 4412eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 4413printf "%s\n" "$ac_try_echo"; } >&5
f11781c5 4414 (eval "$ac_link_default") 2>&5
ad6254c5 4415 ac_status=$?
6b2e4ec5
ZK
4416 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4417 test $ac_status = 0; }
4418then :
635df748
ZK
4419 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
4420# So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
f11781c5
AK
4421# in a Makefile. We should not override ac_cv_exeext if it was cached,
4422# so that the user can short-circuit this test for compilers unknown to
4423# Autoconf.
4424for ac_file in $ac_files ''
4425do
4426 test -f "$ac_file" || continue
4427 case $ac_file in
4428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4429 ;;
4430 [ab].out )
4431 # We found the default executable, but exeext='' is most
4432 # certainly right.
4433 break;;
4434 *.* )
6b2e4ec5 4435 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
f11781c5
AK
4436 then :; else
4437 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4438 fi
4439 # We set ac_cv_exeext here because the later test for it is not
635df748 4440 # safe: cross compilers may not add the suffix if given an '-o'
f11781c5
AK
4441 # argument, so we may need to know it at that point already.
4442 # Even if this section looks crufty: it has the advantage of
4443 # actually working.
4444 break;;
4445 * )
4446 break;;
4447 esac
4448done
4449test "$ac_cv_exeext" = no && ac_cv_exeext=
4450
635df748
ZK
4451else case e in #(
4452 e) ac_file='' ;;
4453esac
f11781c5 4454fi
6b2e4ec5
ZK
4455if test -z "$ac_file"
4456then :
4457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4458printf "%s\n" "no" >&6; }
4459printf "%s\n" "$as_me: failed program was:" >&5
ad6254c5
AK
4460sed 's/^/| /' conftest.$ac_ext >&5
4461
635df748
ZK
4462{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4463printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
f11781c5 4464as_fn_error 77 "C compiler cannot create executables
635df748
ZK
4465See 'config.log' for more details" "$LINENO" 5; }
4466else case e in #(
4467 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4468printf "%s\n" "yes" >&6; } ;;
4469esac
6b2e4ec5
ZK
4470fi
4471{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4472printf %s "checking for C compiler default output file name... " >&6; }
4473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4474printf "%s\n" "$ac_file" >&6; }
f11781c5 4475ac_exeext=$ac_cv_exeext
7a197a62 4476
f11781c5
AK
4477rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4478ac_clean_files=$ac_clean_files_save
6b2e4ec5
ZK
4479{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4480printf %s "checking for suffix of executables... " >&6; }
f11781c5
AK
4481if { { ac_try="$ac_link"
4482case "(($ac_try" in
4483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4484 *) ac_try_echo=$ac_try;;
8a2fc586 4485esac
f11781c5 4486eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 4487printf "%s\n" "$ac_try_echo"; } >&5
f11781c5
AK
4488 (eval "$ac_link") 2>&5
4489 ac_status=$?
6b2e4ec5
ZK
4490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4491 test $ac_status = 0; }
4492then :
635df748
ZK
4493 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
4494# catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
4495# work properly (i.e., refer to 'conftest.exe'), while it won't with
4496# 'rm'.
f11781c5
AK
4497for ac_file in conftest.exe conftest conftest.*; do
4498 test -f "$ac_file" || continue
4499 case $ac_file in
4500 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4501 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4502 break;;
4503 * ) break;;
4504 esac
4505done
635df748
ZK
4506else case e in #(
4507 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4508printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
f11781c5 4509as_fn_error $? "cannot compute suffix of executables: cannot compile and link
635df748
ZK
4510See 'config.log' for more details" "$LINENO" 5; } ;;
4511esac
ad6254c5 4512fi
f11781c5 4513rm -f conftest conftest$ac_cv_exeext
6b2e4ec5
ZK
4514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4515printf "%s\n" "$ac_cv_exeext" >&6; }
ad6254c5 4516
f11781c5
AK
4517rm -f conftest.$ac_ext
4518EXEEXT=$ac_cv_exeext
4519ac_exeext=$EXEEXT
4520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 4521/* end confdefs.h. */
f11781c5 4522#include <stdio.h>
ad6254c5 4523int
6b2e4ec5 4524main (void)
ad6254c5 4525{
f11781c5 4526FILE *f = fopen ("conftest.out", "w");
635df748
ZK
4527 if (!f)
4528 return 1;
f11781c5 4529 return ferror (f) || fclose (f) != 0;
ad6254c5 4530
f11781c5 4531 ;
7a197a62 4532 return 0;
ad6254c5 4533}
ad6254c5 4534_ACEOF
f11781c5
AK
4535ac_clean_files="$ac_clean_files conftest.out"
4536# Check that the compiler produces executables we can run. If not, either
4537# the compiler is broken, or we cross compile.
6b2e4ec5
ZK
4538{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4539printf %s "checking whether we are cross compiling... " >&6; }
f11781c5
AK
4540if test "$cross_compiling" != yes; then
4541 { { ac_try="$ac_link"
7a197a62
AK
4542case "(($ac_try" in
4543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4544 *) ac_try_echo=$ac_try;;
4545esac
f11781c5 4546eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 4547printf "%s\n" "$ac_try_echo"; } >&5
7a197a62 4548 (eval "$ac_link") 2>&5
ad6254c5 4549 ac_status=$?
6b2e4ec5 4550 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f11781c5
AK
4551 test $ac_status = 0; }
4552 if { ac_try='./conftest$ac_cv_exeext'
4553 { { case "(($ac_try" in
7a197a62
AK
4554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4556esac
f11781c5 4557eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 4558printf "%s\n" "$ac_try_echo"; } >&5
7a197a62 4559 (eval "$ac_try") 2>&5
ad6254c5 4560 ac_status=$?
6b2e4ec5 4561 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f11781c5
AK
4562 test $ac_status = 0; }; }; then
4563 cross_compiling=no
4564 else
4565 if test "$cross_compiling" = maybe; then
4566 cross_compiling=yes
4567 else
635df748
ZK
4568 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4569printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6b2e4ec5 4570as_fn_error 77 "cannot run C compiled programs.
635df748
ZK
4571If you meant to cross compile, use '--host'.
4572See 'config.log' for more details" "$LINENO" 5; }
f11781c5
AK
4573 fi
4574 fi
4575fi
6b2e4ec5
ZK
4576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4577printf "%s\n" "$cross_compiling" >&6; }
f11781c5 4578
635df748
ZK
4579rm -f conftest.$ac_ext conftest$ac_cv_exeext \
4580 conftest.o conftest.obj conftest.out
f11781c5 4581ac_clean_files=$ac_clean_files_save
6b2e4ec5
ZK
4582{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4583printf %s "checking for suffix of object files... " >&6; }
4584if test ${ac_cv_objext+y}
4585then :
4586 printf %s "(cached) " >&6
635df748
ZK
4587else case e in #(
4588 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5 4589/* end confdefs.h. */
ad6254c5
AK
4590
4591int
6b2e4ec5 4592main (void)
ad6254c5 4593{
f11781c5 4594
ad6254c5
AK
4595 ;
4596 return 0;
4597}
4598_ACEOF
f11781c5
AK
4599rm -f conftest.o conftest.obj
4600if { { ac_try="$ac_compile"
7a197a62
AK
4601case "(($ac_try" in
4602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4603 *) ac_try_echo=$ac_try;;
4604esac
f11781c5 4605eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 4606printf "%s\n" "$ac_try_echo"; } >&5
f11781c5 4607 (eval "$ac_compile") 2>&5
ad6254c5 4608 ac_status=$?
6b2e4ec5
ZK
4609 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4610 test $ac_status = 0; }
4611then :
f11781c5
AK
4612 for ac_file in conftest.o conftest.obj conftest.*; do
4613 test -f "$ac_file" || continue;
4614 case $ac_file in
4615 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4616 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4617 break;;
4618 esac
4619done
635df748
ZK
4620else case e in #(
4621 e) printf "%s\n" "$as_me: failed program was:" >&5
ad6254c5
AK
4622sed 's/^/| /' conftest.$ac_ext >&5
4623
635df748
ZK
4624{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4625printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
f11781c5 4626as_fn_error $? "cannot compute suffix of object files: cannot compile
635df748
ZK
4627See 'config.log' for more details" "$LINENO" 5; } ;;
4628esac
ad6254c5 4629fi
635df748
ZK
4630rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
4631esac
ad6254c5 4632fi
6b2e4ec5
ZK
4633{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4634printf "%s\n" "$ac_cv_objext" >&6; }
f11781c5
AK
4635OBJEXT=$ac_cv_objext
4636ac_objext=$OBJEXT
6b2e4ec5
ZK
4637{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4638printf %s "checking whether the compiler supports GNU C... " >&6; }
4639if test ${ac_cv_c_compiler_gnu+y}
4640then :
4641 printf %s "(cached) " >&6
635df748
ZK
4642else case e in #(
4643 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5
AK
4644/* end confdefs.h. */
4645
ad6254c5 4646int
6b2e4ec5 4647main (void)
ad6254c5 4648{
f11781c5
AK
4649#ifndef __GNUC__
4650 choke me
4651#endif
4652
ad6254c5
AK
4653 ;
4654 return 0;
4655}
4656_ACEOF
6b2e4ec5
ZK
4657if ac_fn_c_try_compile "$LINENO"
4658then :
f11781c5 4659 ac_compiler_gnu=yes
635df748
ZK
4660else case e in #(
4661 e) ac_compiler_gnu=no ;;
4662esac
ad6254c5 4663fi
6b2e4ec5 4664rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
f11781c5 4665ac_cv_c_compiler_gnu=$ac_compiler_gnu
635df748
ZK
4666 ;;
4667esac
d0191583 4668fi
6b2e4ec5
ZK
4669{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4670printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4671ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672
f11781c5
AK
4673if test $ac_compiler_gnu = yes; then
4674 GCC=yes
d0191583 4675else
f11781c5 4676 GCC=
d0191583 4677fi
6b2e4ec5 4678ac_test_CFLAGS=${CFLAGS+y}
f11781c5 4679ac_save_CFLAGS=$CFLAGS
6b2e4ec5
ZK
4680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4681printf %s "checking whether $CC accepts -g... " >&6; }
4682if test ${ac_cv_prog_cc_g+y}
4683then :
4684 printf %s "(cached) " >&6
635df748
ZK
4685else case e in #(
4686 e) ac_save_c_werror_flag=$ac_c_werror_flag
f11781c5
AK
4687 ac_c_werror_flag=yes
4688 ac_cv_prog_cc_g=no
4689 CFLAGS="-g"
4690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4691/* end confdefs.h. */
72b2cb61 4692
f11781c5 4693int
6b2e4ec5 4694main (void)
f11781c5 4695{
72b2cb61 4696
f11781c5
AK
4697 ;
4698 return 0;
4699}
4700_ACEOF
6b2e4ec5
ZK
4701if ac_fn_c_try_compile "$LINENO"
4702then :
f11781c5 4703 ac_cv_prog_cc_g=yes
635df748
ZK
4704else case e in #(
4705 e) CFLAGS=""
f11781c5
AK
4706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4707/* end confdefs.h. */
ad6254c5 4708
f11781c5 4709int
6b2e4ec5 4710main (void)
f11781c5 4711{
ad6254c5 4712
f11781c5
AK
4713 ;
4714 return 0;
4715}
d0191583 4716_ACEOF
6b2e4ec5
ZK
4717if ac_fn_c_try_compile "$LINENO"
4718then :
f11781c5 4719
635df748
ZK
4720else case e in #(
4721 e) ac_c_werror_flag=$ac_save_c_werror_flag
f11781c5
AK
4722 CFLAGS="-g"
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d0191583 4724/* end confdefs.h. */
7a197a62 4725
f11781c5 4726int
6b2e4ec5 4727main (void)
f11781c5 4728{
ad6254c5 4729
f11781c5
AK
4730 ;
4731 return 0;
4732}
4733_ACEOF
6b2e4ec5
ZK
4734if ac_fn_c_try_compile "$LINENO"
4735then :
f11781c5
AK
4736 ac_cv_prog_cc_g=yes
4737fi
635df748
ZK
4738rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4739esac
f11781c5 4740fi
635df748
ZK
4741rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
4742esac
f11781c5 4743fi
6b2e4ec5 4744rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
635df748
ZK
4745 ac_c_werror_flag=$ac_save_c_werror_flag ;;
4746esac
f11781c5 4747fi
6b2e4ec5
ZK
4748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4749printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4750if test $ac_test_CFLAGS; then
f11781c5
AK
4751 CFLAGS=$ac_save_CFLAGS
4752elif test $ac_cv_prog_cc_g = yes; then
4753 if test "$GCC" = yes; then
4754 CFLAGS="-g -O2"
4755 else
4756 CFLAGS="-g"
4757 fi
4758else
4759 if test "$GCC" = yes; then
4760 CFLAGS="-O2"
4761 else
4762 CFLAGS=
4763 fi
4764fi
6b2e4ec5
ZK
4765ac_prog_cc_stdc=no
4766if test x$ac_prog_cc_stdc = xno
4767then :
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4769printf %s "checking for $CC option to enable C11 features... " >&6; }
4770if test ${ac_cv_prog_cc_c11+y}
4771then :
4772 printf %s "(cached) " >&6
635df748
ZK
4773else case e in #(
4774 e) ac_cv_prog_cc_c11=no
f11781c5
AK
4775ac_save_CC=$CC
4776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777/* end confdefs.h. */
6b2e4ec5
ZK
4778$ac_c_conftest_c11_program
4779_ACEOF
4780for ac_arg in '' -std=gnu11
4781do
4782 CC="$ac_save_CC $ac_arg"
4783 if ac_fn_c_try_compile "$LINENO"
4784then :
4785 ac_cv_prog_cc_c11=$ac_arg
4786fi
4787rm -f core conftest.err conftest.$ac_objext conftest.beam
4788 test "x$ac_cv_prog_cc_c11" != "xno" && break
4789done
4790rm -f conftest.$ac_ext
635df748
ZK
4791CC=$ac_save_CC ;;
4792esac
6b2e4ec5 4793fi
72b2cb61 4794
6b2e4ec5
ZK
4795if test "x$ac_cv_prog_cc_c11" = xno
4796then :
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4798printf "%s\n" "unsupported" >&6; }
635df748
ZK
4799else case e in #(
4800 e) if test "x$ac_cv_prog_cc_c11" = x
6b2e4ec5
ZK
4801then :
4802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4803printf "%s\n" "none needed" >&6; }
635df748
ZK
4804else case e in #(
4805 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
6b2e4ec5 4806printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
635df748
ZK
4807 CC="$CC $ac_cv_prog_cc_c11" ;;
4808esac
6b2e4ec5
ZK
4809fi
4810 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
635df748
ZK
4811 ac_prog_cc_stdc=c11 ;;
4812esac
6b2e4ec5
ZK
4813fi
4814fi
4815if test x$ac_prog_cc_stdc = xno
4816then :
4817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4818printf %s "checking for $CC option to enable C99 features... " >&6; }
4819if test ${ac_cv_prog_cc_c99+y}
4820then :
4821 printf %s "(cached) " >&6
635df748
ZK
4822else case e in #(
4823 e) ac_cv_prog_cc_c99=no
6b2e4ec5
ZK
4824ac_save_CC=$CC
4825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4826/* end confdefs.h. */
4827$ac_c_conftest_c99_program
4828_ACEOF
4829for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4830do
4831 CC="$ac_save_CC $ac_arg"
4832 if ac_fn_c_try_compile "$LINENO"
4833then :
4834 ac_cv_prog_cc_c99=$ac_arg
4835fi
4836rm -f core conftest.err conftest.$ac_objext conftest.beam
4837 test "x$ac_cv_prog_cc_c99" != "xno" && break
4838done
4839rm -f conftest.$ac_ext
635df748
ZK
4840CC=$ac_save_CC ;;
4841esac
6b2e4ec5 4842fi
d0191583 4843
6b2e4ec5
ZK
4844if test "x$ac_cv_prog_cc_c99" = xno
4845then :
4846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4847printf "%s\n" "unsupported" >&6; }
635df748
ZK
4848else case e in #(
4849 e) if test "x$ac_cv_prog_cc_c99" = x
6b2e4ec5
ZK
4850then :
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4852printf "%s\n" "none needed" >&6; }
635df748
ZK
4853else case e in #(
4854 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
6b2e4ec5 4855printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
635df748
ZK
4856 CC="$CC $ac_cv_prog_cc_c99" ;;
4857esac
6b2e4ec5
ZK
4858fi
4859 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
635df748
ZK
4860 ac_prog_cc_stdc=c99 ;;
4861esac
6b2e4ec5
ZK
4862fi
4863fi
4864if test x$ac_prog_cc_stdc = xno
4865then :
4866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4867printf %s "checking for $CC option to enable C89 features... " >&6; }
4868if test ${ac_cv_prog_cc_c89+y}
4869then :
4870 printf %s "(cached) " >&6
635df748
ZK
4871else case e in #(
4872 e) ac_cv_prog_cc_c89=no
6b2e4ec5
ZK
4873ac_save_CC=$CC
4874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4875/* end confdefs.h. */
4876$ac_c_conftest_c89_program
72b2cb61 4877_ACEOF
6b2e4ec5 4878for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
f11781c5
AK
4879do
4880 CC="$ac_save_CC $ac_arg"
6b2e4ec5
ZK
4881 if ac_fn_c_try_compile "$LINENO"
4882then :
f11781c5
AK
4883 ac_cv_prog_cc_c89=$ac_arg
4884fi
6b2e4ec5 4885rm -f core conftest.err conftest.$ac_objext conftest.beam
f11781c5
AK
4886 test "x$ac_cv_prog_cc_c89" != "xno" && break
4887done
4888rm -f conftest.$ac_ext
635df748
ZK
4889CC=$ac_save_CC ;;
4890esac
f11781c5 4891fi
f11781c5 4892
6b2e4ec5
ZK
4893if test "x$ac_cv_prog_cc_c89" = xno
4894then :
4895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4896printf "%s\n" "unsupported" >&6; }
635df748
ZK
4897else case e in #(
4898 e) if test "x$ac_cv_prog_cc_c89" = x
6b2e4ec5
ZK
4899then :
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4901printf "%s\n" "none needed" >&6; }
635df748
ZK
4902else case e in #(
4903 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6b2e4ec5 4904printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
635df748
ZK
4905 CC="$CC $ac_cv_prog_cc_c89" ;;
4906esac
6b2e4ec5
ZK
4907fi
4908 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
635df748
ZK
4909 ac_prog_cc_stdc=c89 ;;
4910esac
6b2e4ec5 4911fi
f11781c5
AK
4912fi
4913
4914ac_ext=c
4915ac_cpp='$CPP $CPPFLAGS'
4916ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918ac_compiler_gnu=$ac_cv_c_compiler_gnu
72b2cb61 4919
6b2e4ec5
ZK
4920
4921
4922
4923
4924
4925
acb6c062
PR
4926ac_ext=cpp
4927ac_cpp='$CXXCPP $CPPFLAGS'
4928ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4929ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4930ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4931if test -z "$CXX"; then
4932 if test -n "$CCC"; then
4933 CXX=$CCC
4934 else
4935 if test -n "$ac_tool_prefix"; then
6b2e4ec5 4936 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
acb6c062
PR
4937 do
4938 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4939set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6b2e4ec5
ZK
4940{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4941printf %s "checking for $ac_word... " >&6; }
4942if test ${ac_cv_prog_CXX+y}
4943then :
4944 printf %s "(cached) " >&6
635df748
ZK
4945else case e in #(
4946 e) if test -n "$CXX"; then
acb6c062
PR
4947 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4948else
4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950for as_dir in $PATH
4951do
4952 IFS=$as_save_IFS
6b2e4ec5
ZK
4953 case $as_dir in #(((
4954 '') as_dir=./ ;;
4955 */) ;;
4956 *) as_dir=$as_dir/ ;;
4957 esac
acb6c062 4958 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 4959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
acb6c062 4960 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6b2e4ec5 4961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
acb6c062
PR
4962 break 2
4963 fi
4964done
4965 done
4966IFS=$as_save_IFS
4967
635df748
ZK
4968fi ;;
4969esac
acb6c062
PR
4970fi
4971CXX=$ac_cv_prog_CXX
4972if test -n "$CXX"; then
6b2e4ec5
ZK
4973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4974printf "%s\n" "$CXX" >&6; }
acb6c062 4975else
6b2e4ec5
ZK
4976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4977printf "%s\n" "no" >&6; }
acb6c062
PR
4978fi
4979
4980
4981 test -n "$CXX" && break
4982 done
4983fi
4984if test -z "$CXX"; then
4985 ac_ct_CXX=$CXX
6b2e4ec5 4986 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
acb6c062
PR
4987do
4988 # Extract the first word of "$ac_prog", so it can be a program name with args.
4989set dummy $ac_prog; ac_word=$2
6b2e4ec5
ZK
4990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4991printf %s "checking for $ac_word... " >&6; }
4992if test ${ac_cv_prog_ac_ct_CXX+y}
4993then :
4994 printf %s "(cached) " >&6
635df748
ZK
4995else case e in #(
4996 e) if test -n "$ac_ct_CXX"; then
acb6c062
PR
4997 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4998else
4999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5000for as_dir in $PATH
5001do
5002 IFS=$as_save_IFS
6b2e4ec5
ZK
5003 case $as_dir in #(((
5004 '') as_dir=./ ;;
5005 */) ;;
5006 *) as_dir=$as_dir/ ;;
5007 esac
acb6c062 5008 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 5009 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
acb6c062 5010 ac_cv_prog_ac_ct_CXX="$ac_prog"
6b2e4ec5 5011 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
acb6c062
PR
5012 break 2
5013 fi
5014done
5015 done
5016IFS=$as_save_IFS
5017
635df748
ZK
5018fi ;;
5019esac
acb6c062
PR
5020fi
5021ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5022if test -n "$ac_ct_CXX"; then
6b2e4ec5
ZK
5023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5024printf "%s\n" "$ac_ct_CXX" >&6; }
acb6c062 5025else
6b2e4ec5
ZK
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027printf "%s\n" "no" >&6; }
acb6c062
PR
5028fi
5029
5030
5031 test -n "$ac_ct_CXX" && break
5032done
5033
5034 if test "x$ac_ct_CXX" = x; then
5035 CXX="g++"
5036 else
5037 case $cross_compiling:$ac_tool_warned in
5038yes:)
6b2e4ec5
ZK
5039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
acb6c062
PR
5041ac_tool_warned=yes ;;
5042esac
5043 CXX=$ac_ct_CXX
5044 fi
5045fi
5046
5047 fi
5048fi
5049# Provide some information about the compiler.
6b2e4ec5 5050printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
acb6c062
PR
5051set X $ac_compile
5052ac_compiler=$2
5053for ac_option in --version -v -V -qversion; do
5054 { { ac_try="$ac_compiler $ac_option >&5"
5055case "(($ac_try" in
5056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5057 *) ac_try_echo=$ac_try;;
5058esac
5059eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6b2e4ec5 5060printf "%s\n" "$ac_try_echo"; } >&5
acb6c062
PR
5061 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5062 ac_status=$?
5063 if test -s conftest.err; then
5064 sed '10a\
5065... rest of stderr output deleted ...
5066 10q' conftest.err >conftest.er1
5067 cat conftest.er1 >&5
5068 fi
5069 rm -f conftest.er1 conftest.err
6b2e4ec5 5070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
acb6c062
PR
5071 test $ac_status = 0; }
5072done
5073
6b2e4ec5
ZK
5074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
5075printf %s "checking whether the compiler supports GNU C++... " >&6; }
5076if test ${ac_cv_cxx_compiler_gnu+y}
5077then :
5078 printf %s "(cached) " >&6
635df748
ZK
5079else case e in #(
5080 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
acb6c062
PR
5081/* end confdefs.h. */
5082
5083int
6b2e4ec5 5084main (void)
acb6c062
PR
5085{
5086#ifndef __GNUC__
5087 choke me
5088#endif
5089
5090 ;
5091 return 0;
5092}
5093_ACEOF
6b2e4ec5
ZK
5094if ac_fn_cxx_try_compile "$LINENO"
5095then :
acb6c062 5096 ac_compiler_gnu=yes
635df748
ZK
5097else case e in #(
5098 e) ac_compiler_gnu=no ;;
5099esac
acb6c062 5100fi
6b2e4ec5 5101rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
acb6c062 5102ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
635df748
ZK
5103 ;;
5104esac
acb6c062 5105fi
6b2e4ec5
ZK
5106{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5107printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
5108ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5109
acb6c062
PR
5110if test $ac_compiler_gnu = yes; then
5111 GXX=yes
5112else
5113 GXX=
5114fi
6b2e4ec5 5115ac_test_CXXFLAGS=${CXXFLAGS+y}
acb6c062 5116ac_save_CXXFLAGS=$CXXFLAGS
6b2e4ec5
ZK
5117{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5118printf %s "checking whether $CXX accepts -g... " >&6; }
5119if test ${ac_cv_prog_cxx_g+y}
5120then :
5121 printf %s "(cached) " >&6
635df748
ZK
5122else case e in #(
5123 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
acb6c062
PR
5124 ac_cxx_werror_flag=yes
5125 ac_cv_prog_cxx_g=no
5126 CXXFLAGS="-g"
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128/* end confdefs.h. */
5129
5130int
6b2e4ec5 5131main (void)
acb6c062
PR
5132{
5133
5134 ;
5135 return 0;
5136}
5137_ACEOF
6b2e4ec5
ZK
5138if ac_fn_cxx_try_compile "$LINENO"
5139then :
acb6c062 5140 ac_cv_prog_cxx_g=yes
635df748
ZK
5141else case e in #(
5142 e) CXXFLAGS=""
acb6c062
PR
5143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5144/* end confdefs.h. */
5145
5146int
6b2e4ec5 5147main (void)
acb6c062
PR
5148{
5149
5150 ;
5151 return 0;
5152}
5153_ACEOF
6b2e4ec5
ZK
5154if ac_fn_cxx_try_compile "$LINENO"
5155then :
acb6c062 5156
635df748
ZK
5157else case e in #(
5158 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
acb6c062
PR
5159 CXXFLAGS="-g"
5160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5161/* end confdefs.h. */
5162
5163int
6b2e4ec5 5164main (void)
acb6c062
PR
5165{
5166
5167 ;
5168 return 0;
5169}
5170_ACEOF
6b2e4ec5
ZK
5171if ac_fn_cxx_try_compile "$LINENO"
5172then :
acb6c062
PR
5173 ac_cv_prog_cxx_g=yes
5174fi
635df748
ZK
5175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5176esac
acb6c062 5177fi
635df748
ZK
5178rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5179esac
acb6c062 5180fi
6b2e4ec5 5181rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
635df748
ZK
5182 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
5183esac
acb6c062 5184fi
6b2e4ec5
ZK
5185{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5186printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
5187if test $ac_test_CXXFLAGS; then
acb6c062
PR
5188 CXXFLAGS=$ac_save_CXXFLAGS
5189elif test $ac_cv_prog_cxx_g = yes; then
5190 if test "$GXX" = yes; then
5191 CXXFLAGS="-g -O2"
5192 else
5193 CXXFLAGS="-g"
5194 fi
5195else
5196 if test "$GXX" = yes; then
5197 CXXFLAGS="-O2"
5198 else
5199 CXXFLAGS=
5200 fi
5201fi
6b2e4ec5
ZK
5202ac_prog_cxx_stdcxx=no
5203if test x$ac_prog_cxx_stdcxx = xno
5204then :
5205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
5206printf %s "checking for $CXX option to enable C++11 features... " >&6; }
ae916f77 5207if test ${ac_cv_prog_cxx_cxx11+y}
6b2e4ec5
ZK
5208then :
5209 printf %s "(cached) " >&6
635df748
ZK
5210else case e in #(
5211 e) ac_cv_prog_cxx_cxx11=no
6b2e4ec5
ZK
5212ac_save_CXX=$CXX
5213cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214/* end confdefs.h. */
5215$ac_cxx_conftest_cxx11_program
5216_ACEOF
5217for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
5218do
5219 CXX="$ac_save_CXX $ac_arg"
5220 if ac_fn_cxx_try_compile "$LINENO"
5221then :
5222 ac_cv_prog_cxx_cxx11=$ac_arg
5223fi
5224rm -f core conftest.err conftest.$ac_objext conftest.beam
5225 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
5226done
5227rm -f conftest.$ac_ext
635df748
ZK
5228CXX=$ac_save_CXX ;;
5229esac
6b2e4ec5
ZK
5230fi
5231
5232if test "x$ac_cv_prog_cxx_cxx11" = xno
5233then :
5234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5235printf "%s\n" "unsupported" >&6; }
635df748
ZK
5236else case e in #(
5237 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6b2e4ec5
ZK
5238then :
5239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5240printf "%s\n" "none needed" >&6; }
635df748
ZK
5241else case e in #(
5242 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6b2e4ec5 5243printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
635df748
ZK
5244 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
5245esac
6b2e4ec5
ZK
5246fi
5247 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
635df748
ZK
5248 ac_prog_cxx_stdcxx=cxx11 ;;
5249esac
6b2e4ec5
ZK
5250fi
5251fi
5252if test x$ac_prog_cxx_stdcxx = xno
5253then :
5254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
5255printf %s "checking for $CXX option to enable C++98 features... " >&6; }
ae916f77 5256if test ${ac_cv_prog_cxx_cxx98+y}
6b2e4ec5
ZK
5257then :
5258 printf %s "(cached) " >&6
635df748
ZK
5259else case e in #(
5260 e) ac_cv_prog_cxx_cxx98=no
6b2e4ec5
ZK
5261ac_save_CXX=$CXX
5262cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5263/* end confdefs.h. */
5264$ac_cxx_conftest_cxx98_program
5265_ACEOF
5266for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
5267do
5268 CXX="$ac_save_CXX $ac_arg"
5269 if ac_fn_cxx_try_compile "$LINENO"
5270then :
5271 ac_cv_prog_cxx_cxx98=$ac_arg
5272fi
5273rm -f core conftest.err conftest.$ac_objext conftest.beam
5274 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
5275done
5276rm -f conftest.$ac_ext
635df748
ZK
5277CXX=$ac_save_CXX ;;
5278esac
6b2e4ec5
ZK
5279fi
5280
5281if test "x$ac_cv_prog_cxx_cxx98" = xno
5282then :
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5284printf "%s\n" "unsupported" >&6; }
635df748
ZK
5285else case e in #(
5286 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6b2e4ec5
ZK
5287then :
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5289printf "%s\n" "none needed" >&6; }
635df748
ZK
5290else case e in #(
5291 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6b2e4ec5 5292printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
635df748
ZK
5293 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
5294esac
6b2e4ec5
ZK
5295fi
5296 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
635df748
ZK
5297 ac_prog_cxx_stdcxx=cxx98 ;;
5298esac
6b2e4ec5
ZK
5299fi
5300fi
5301
acb6c062
PR
5302ac_ext=c
5303ac_cpp='$CPP $CPPFLAGS'
5304ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5305ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5306ac_compiler_gnu=$ac_cv_c_compiler_gnu
5307
f207a6d3
ZK
5308CFLAGS=$save_CFLAGS
5309CXXFLAGS=$save_CXXFLAGS
e727da6c 5310PATH_SBIN="$PATH:/usr/sbin:/sbin"
ad6254c5 5311
7a197a62 5312
ad6254c5 5313
635df748
ZK
5314 # Find a good install program. We prefer a C program (faster),
5315# so one script is as good as another. But avoid the broken or
5316# incompatible versions:
5317# SysV /etc/install, /usr/sbin/install
5318# SunOS /usr/etc/install
5319# IRIX /sbin/install
5320# AIX /bin/install
5321# AmigaOS /C/install, which installs bootblocks on floppy discs
5322# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5323# AFS /usr/afsws/bin/install, which mishandles nonexistent args
5324# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5325# OS/2's system install, which has a completely different semantic
5326# ./install, which can be erroneously created by make from ./install.sh.
5327# Reject install programs that cannot install multiple files.
5328{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5329printf %s "checking for a BSD-compatible install... " >&6; }
5330if test -z "$INSTALL"; then
5331if test ${ac_cv_path_install+y}
6b2e4ec5
ZK
5332then :
5333 printf %s "(cached) " >&6
635df748
ZK
5334else case e in #(
5335 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
f11781c5
AK
5337do
5338 IFS=$as_save_IFS
6b2e4ec5
ZK
5339 case $as_dir in #(((
5340 '') as_dir=./ ;;
5341 */) ;;
5342 *) as_dir=$as_dir/ ;;
5343 esac
635df748
ZK
5344 # Account for fact that we put trailing slashes in our PATH walk.
5345case $as_dir in #((
5346 ./ | /[cC]/* | \
5347 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5348 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5349 /usr/ucb/* ) ;;
5350 *)
5351 # OSF1 and SCO ODT 3.0 have their own names for install.
5352 # Don't use installbsd from OSF since it installs stuff as root
5353 # by default.
5354 for ac_prog in ginstall scoinst install; do
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
5357 if test $ac_prog = install &&
5358 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5359 # AIX install. It has an incompatible calling convention.
5360 :
5361 elif test $ac_prog = install &&
5362 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5363 # program-specific install script used by HP pwplus--don't use.
5364 :
5365 else
5366 rm -rf conftest.one conftest.two conftest.dir
5367 echo one > conftest.one
5368 echo two > conftest.two
5369 mkdir conftest.dir
5370 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
5371 test -s conftest.one && test -s conftest.two &&
5372 test -s conftest.dir/conftest.one &&
5373 test -s conftest.dir/conftest.two
5374 then
5375 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
5376 break 3
5377 fi
5378 fi
5379 fi
5380 done
5381 done
5382 ;;
5383esac
5384
5385 done
5386IFS=$as_save_IFS
5387
5388rm -rf conftest.one conftest.two conftest.dir
5389 ;;
5390esac
5391fi
5392 if test ${ac_cv_path_install+y}; then
5393 INSTALL=$ac_cv_path_install
5394 else
5395 # As a last resort, use the slow shell script. Don't cache a
5396 # value for INSTALL within a source directory, because that will
5397 # break other packages using the cache if that directory is
5398 # removed, or if the value is a relative name.
5399 INSTALL=$ac_install_sh
5400 fi
5401fi
5402{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5403printf "%s\n" "$INSTALL" >&6; }
5404
5405# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5406# It thinks the first close brace ends the variable substitution.
5407test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5408
5409test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5410
5411test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5412
5413{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5414printf %s "checking whether ln -s works... " >&6; }
5415LN_S=$as_ln_s
5416if test "$LN_S" = "ln -s"; then
5417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418printf "%s\n" "yes" >&6; }
5419else
5420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5421printf "%s\n" "no, using $LN_S" >&6; }
5422fi
5423
5424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5425printf %s "checking for grep that handles long lines and -e... " >&6; }
5426if test ${ac_cv_path_GREP+y}
5427then :
5428 printf %s "(cached) " >&6
5429else case e in #(
5430 e) if test -z "$GREP"; then
5431 ac_path_GREP_found=false
5432 # Loop through the user's path and test for each of PROGNAME-LIST
5433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5434for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5435do
5436 IFS=$as_save_IFS
5437 case $as_dir in #(((
5438 '') as_dir=./ ;;
5439 */) ;;
5440 *) as_dir=$as_dir/ ;;
5441 esac
5442 for ac_prog in grep ggrep
5443 do
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
5446 as_fn_executable_p "$ac_path_GREP" || continue
5447# Check for GNU ac_path_GREP and select it if it is found.
f11781c5 5448 # Check for GNU $ac_path_GREP
635df748 5449case `"$ac_path_GREP" --version 2>&1` in #(
f11781c5
AK
5450*GNU*)
5451 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
635df748 5452#(
f11781c5
AK
5453*)
5454 ac_count=0
6b2e4ec5 5455 printf %s 0123456789 >"conftest.in"
f11781c5
AK
5456 while :
5457 do
5458 cat "conftest.in" "conftest.in" >"conftest.tmp"
5459 mv "conftest.tmp" "conftest.in"
5460 cp "conftest.in" "conftest.nl"
6b2e4ec5 5461 printf "%s\n" 'GREP' >> "conftest.nl"
f11781c5
AK
5462 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5464 as_fn_arith $ac_count + 1 && ac_count=$as_val
5465 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5466 # Best one so far, save it but keep looking for a better one
5467 ac_cv_path_GREP="$ac_path_GREP"
5468 ac_path_GREP_max=$ac_count
5469 fi
5470 # 10*(2^10) chars as input seems more than enough
5471 test $ac_count -gt 10 && break
5472 done
5473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5474esac
ad6254c5 5475
f11781c5
AK
5476 $ac_path_GREP_found && break 3
5477 done
5478 done
5479 done
5480IFS=$as_save_IFS
5481 if test -z "$ac_cv_path_GREP"; then
5482 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5483 fi
5484else
5485 ac_cv_path_GREP=$GREP
7a197a62 5486fi
635df748
ZK
5487 ;;
5488esac
d0191583 5489fi
6b2e4ec5
ZK
5490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5491printf "%s\n" "$ac_cv_path_GREP" >&6; }
f11781c5 5492 GREP="$ac_cv_path_GREP"
ad6254c5 5493
24bbc4d7 5494
6b2e4ec5
ZK
5495{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5496printf %s "checking for egrep... " >&6; }
5497if test ${ac_cv_path_EGREP+y}
5498then :
5499 printf %s "(cached) " >&6
635df748
ZK
5500else case e in #(
5501 e) if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
f11781c5
AK
5502 then ac_cv_path_EGREP="$GREP -E"
5503 else
5504 if test -z "$EGREP"; then
5505 ac_path_EGREP_found=false
5506 # Loop through the user's path and test for each of PROGNAME-LIST
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5509do
5510 IFS=$as_save_IFS
6b2e4ec5
ZK
5511 case $as_dir in #(((
5512 '') as_dir=./ ;;
5513 */) ;;
5514 *) as_dir=$as_dir/ ;;
5515 esac
5516 for ac_prog in egrep
5517 do
f11781c5 5518 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 5519 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
4d0c3ed0 5520 as_fn_executable_p "$ac_path_EGREP" || continue
f11781c5
AK
5521# Check for GNU ac_path_EGREP and select it if it is found.
5522 # Check for GNU $ac_path_EGREP
635df748 5523case `"$ac_path_EGREP" --version 2>&1` in #(
f11781c5
AK
5524*GNU*)
5525 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
635df748 5526#(
f11781c5
AK
5527*)
5528 ac_count=0
6b2e4ec5 5529 printf %s 0123456789 >"conftest.in"
f11781c5
AK
5530 while :
5531 do
5532 cat "conftest.in" "conftest.in" >"conftest.tmp"
5533 mv "conftest.tmp" "conftest.in"
5534 cp "conftest.in" "conftest.nl"
6b2e4ec5 5535 printf "%s\n" 'EGREP' >> "conftest.nl"
f11781c5
AK
5536 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5538 as_fn_arith $ac_count + 1 && ac_count=$as_val
5539 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5540 # Best one so far, save it but keep looking for a better one
5541 ac_cv_path_EGREP="$ac_path_EGREP"
5542 ac_path_EGREP_max=$ac_count
5543 fi
5544 # 10*(2^10) chars as input seems more than enough
5545 test $ac_count -gt 10 && break
5546 done
5547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5548esac
24bbc4d7 5549
f11781c5
AK
5550 $ac_path_EGREP_found && break 3
5551 done
5552 done
5553 done
5554IFS=$as_save_IFS
5555 if test -z "$ac_cv_path_EGREP"; then
5556 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5557 fi
24bbc4d7 5558else
f11781c5 5559 ac_cv_path_EGREP=$EGREP
24bbc4d7
AK
5560fi
5561
635df748
ZK
5562 fi ;;
5563esac
24bbc4d7 5564fi
6b2e4ec5
ZK
5565{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5566printf "%s\n" "$ac_cv_path_EGREP" >&6; }
f11781c5 5567 EGREP="$ac_cv_path_EGREP"
93bd259b 5568
635df748
ZK
5569 EGREP_TRADITIONAL=$EGREP
5570 ac_cv_path_EGREP_TRADITIONAL=$EGREP
ad6254c5 5571
6b2e4ec5
ZK
5572{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5573printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
f11781c5 5574set x ${MAKE-make}
6b2e4ec5
ZK
5575ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5576if eval test \${ac_cv_prog_make_${ac_make}_set+y}
5577then :
5578 printf %s "(cached) " >&6
635df748
ZK
5579else case e in #(
5580 e) cat >conftest.make <<\_ACEOF
f11781c5
AK
5581SHELL = /bin/sh
5582all:
5583 @echo '@@@%%%=$(MAKE)=@@@%%%'
5584_ACEOF
5585# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5586case `${MAKE-make} -f conftest.make 2>/dev/null` in
5587 *@@@%%%=?*=@@@%%%*)
5588 eval ac_cv_prog_make_${ac_make}_set=yes;;
5589 *)
5590 eval ac_cv_prog_make_${ac_make}_set=no;;
5591esac
635df748
ZK
5592rm -f conftest.make ;;
5593esac
f11781c5
AK
5594fi
5595if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6b2e4ec5
ZK
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5597printf "%s\n" "yes" >&6; }
f11781c5
AK
5598 SET_MAKE=
5599else
6b2e4ec5
ZK
5600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601printf "%s\n" "no" >&6; }
f11781c5 5602 SET_MAKE="MAKE=${MAKE-make}"
ad6254c5
AK
5603fi
5604
6b2e4ec5
ZK
5605
5606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
5607printf %s "checking for a race-free mkdir -p... " >&6; }
f11781c5 5608if test -z "$MKDIR_P"; then
6b2e4ec5
ZK
5609 if test ${ac_cv_path_mkdir+y}
5610then :
5611 printf %s "(cached) " >&6
635df748
ZK
5612else case e in #(
5613 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
f11781c5
AK
5614for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5615do
5616 IFS=$as_save_IFS
6b2e4ec5
ZK
5617 case $as_dir in #(((
5618 '') as_dir=./ ;;
5619 */) ;;
5620 *) as_dir=$as_dir/ ;;
5621 esac
f11781c5
AK
5622 for ac_prog in mkdir gmkdir; do
5623 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
5624 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
5625 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
5626 'mkdir ('*'coreutils) '* | \
635df748 5627 *'BusyBox '* | \
f11781c5 5628 'mkdir (fileutils) '4.1*)
6b2e4ec5 5629 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
f11781c5
AK
5630 break 3;;
5631 esac
5632 done
5633 done
5634 done
5635IFS=$as_save_IFS
635df748
ZK
5636 ;;
5637esac
f11781c5 5638fi
ad6254c5 5639
f11781c5 5640 test -d ./--version && rmdir ./--version
6b2e4ec5 5641 if test ${ac_cv_path_mkdir+y}; then
f11781c5
AK
5642 MKDIR_P="$ac_cv_path_mkdir -p"
5643 else
635df748
ZK
5644 # As a last resort, use plain mkdir -p,
5645 # in the hope it doesn't have the bugs of ancient mkdir.
5646 MKDIR_P='mkdir -p'
f11781c5 5647 fi
ad6254c5 5648fi
6b2e4ec5
ZK
5649{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5650printf "%s\n" "$MKDIR_P" >&6; }
7a197a62 5651
f11781c5
AK
5652if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5654set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6b2e4ec5
ZK
5655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5656printf %s "checking for $ac_word... " >&6; }
5657if test ${ac_cv_prog_RANLIB+y}
5658then :
5659 printf %s "(cached) " >&6
635df748
ZK
5660else case e in #(
5661 e) if test -n "$RANLIB"; then
f11781c5
AK
5662 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5663else
5664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5665for as_dir in $PATH
5666do
5667 IFS=$as_save_IFS
6b2e4ec5
ZK
5668 case $as_dir in #(((
5669 '') as_dir=./ ;;
5670 */) ;;
5671 *) as_dir=$as_dir/ ;;
5672 esac
f11781c5 5673 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 5674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
f11781c5 5675 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6b2e4ec5 5676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
5677 break 2
5678 fi
5679done
5680 done
5681IFS=$as_save_IFS
d0191583 5682
635df748
ZK
5683fi ;;
5684esac
f11781c5
AK
5685fi
5686RANLIB=$ac_cv_prog_RANLIB
5687if test -n "$RANLIB"; then
6b2e4ec5
ZK
5688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5689printf "%s\n" "$RANLIB" >&6; }
d0191583 5690else
6b2e4ec5
ZK
5691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5692printf "%s\n" "no" >&6; }
ad6254c5 5693fi
ad6254c5 5694
8a2fc586 5695
d0191583 5696fi
f11781c5
AK
5697if test -z "$ac_cv_prog_RANLIB"; then
5698 ac_ct_RANLIB=$RANLIB
5699 # Extract the first word of "ranlib", so it can be a program name with args.
5700set dummy ranlib; ac_word=$2
6b2e4ec5
ZK
5701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5702printf %s "checking for $ac_word... " >&6; }
5703if test ${ac_cv_prog_ac_ct_RANLIB+y}
5704then :
5705 printf %s "(cached) " >&6
635df748
ZK
5706else case e in #(
5707 e) if test -n "$ac_ct_RANLIB"; then
f11781c5
AK
5708 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5709else
5710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5711for as_dir in $PATH
5712do
5713 IFS=$as_save_IFS
6b2e4ec5
ZK
5714 case $as_dir in #(((
5715 '') as_dir=./ ;;
5716 */) ;;
5717 *) as_dir=$as_dir/ ;;
5718 esac
f11781c5 5719 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 5720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
f11781c5 5721 ac_cv_prog_ac_ct_RANLIB="ranlib"
6b2e4ec5 5722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
5723 break 2
5724 fi
5725done
5726 done
5727IFS=$as_save_IFS
8a2fc586 5728
635df748
ZK
5729fi ;;
5730esac
f11781c5
AK
5731fi
5732ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5733if test -n "$ac_ct_RANLIB"; then
6b2e4ec5
ZK
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5735printf "%s\n" "$ac_ct_RANLIB" >&6; }
8fea97b7 5736else
6b2e4ec5
ZK
5737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5738printf "%s\n" "no" >&6; }
8fea97b7
ZK
5739fi
5740
f11781c5
AK
5741 if test "x$ac_ct_RANLIB" = x; then
5742 RANLIB=":"
5743 else
5744 case $cross_compiling:$ac_tool_warned in
5745yes:)
6b2e4ec5
ZK
5746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5747printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
f11781c5 5748ac_tool_warned=yes ;;
8fea97b7 5749esac
f11781c5
AK
5750 RANLIB=$ac_ct_RANLIB
5751 fi
d0191583 5752else
f11781c5 5753 RANLIB="$ac_cv_prog_RANLIB"
d0191583 5754fi
8a2fc586 5755
ae916f77
ZK
5756if test -n "$ac_tool_prefix"; then
5757 # Extract the first word of "${ac_tool_prefix}readelf", so it can be a program name with args.
5758set dummy ${ac_tool_prefix}readelf; ac_word=$2
5759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5760printf %s "checking for $ac_word... " >&6; }
5761if test ${ac_cv_prog_READELF+y}
5762then :
5763 printf %s "(cached) " >&6
635df748
ZK
5764else case e in #(
5765 e) if test -n "$READELF"; then
ae916f77
ZK
5766 ac_cv_prog_READELF="$READELF" # Let the user override the test.
5767else
5768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5769for as_dir in $PATH
5770do
5771 IFS=$as_save_IFS
5772 case $as_dir in #(((
5773 '') as_dir=./ ;;
5774 */) ;;
5775 *) as_dir=$as_dir/ ;;
5776 esac
5777 for ac_exec_ext in '' $ac_executable_extensions; do
5778 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5779 ac_cv_prog_READELF="${ac_tool_prefix}readelf"
5780 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5781 break 2
5782 fi
5783done
5784 done
5785IFS=$as_save_IFS
5786
635df748
ZK
5787fi ;;
5788esac
ae916f77
ZK
5789fi
5790READELF=$ac_cv_prog_READELF
5791if test -n "$READELF"; then
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5793printf "%s\n" "$READELF" >&6; }
5794else
5795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5796printf "%s\n" "no" >&6; }
5797fi
5798
5799
5800fi
5801if test -z "$ac_cv_prog_READELF"; then
5802 ac_ct_READELF=$READELF
5803 # Extract the first word of "readelf", so it can be a program name with args.
5804set dummy readelf; ac_word=$2
5805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5806printf %s "checking for $ac_word... " >&6; }
5807if test ${ac_cv_prog_ac_ct_READELF+y}
5808then :
5809 printf %s "(cached) " >&6
635df748
ZK
5810else case e in #(
5811 e) if test -n "$ac_ct_READELF"; then
ae916f77
ZK
5812 ac_cv_prog_ac_ct_READELF="$ac_ct_READELF" # Let the user override the test.
5813else
5814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5815for as_dir in $PATH
5816do
5817 IFS=$as_save_IFS
5818 case $as_dir in #(((
5819 '') as_dir=./ ;;
5820 */) ;;
5821 *) as_dir=$as_dir/ ;;
5822 esac
5823 for ac_exec_ext in '' $ac_executable_extensions; do
5824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5825 ac_cv_prog_ac_ct_READELF="readelf"
5826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5827 break 2
5828 fi
5829done
5830 done
5831IFS=$as_save_IFS
5832
635df748
ZK
5833fi ;;
5834esac
ae916f77
ZK
5835fi
5836ac_ct_READELF=$ac_cv_prog_ac_ct_READELF
5837if test -n "$ac_ct_READELF"; then
5838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_READELF" >&5
5839printf "%s\n" "$ac_ct_READELF" >&6; }
5840else
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5842printf "%s\n" "no" >&6; }
5843fi
5844
5845 if test "x$ac_ct_READELF" = x; then
5846 READELF=""
5847 else
5848 case $cross_compiling:$ac_tool_warned in
5849yes:)
5850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5851printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5852ac_tool_warned=yes ;;
5853esac
5854 READELF=$ac_ct_READELF
5855 fi
5856else
5857 READELF="$ac_cv_prog_READELF"
5858fi
5859
37cd8f96
ZK
5860if test -n "$ac_tool_prefix"; then
5861 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5862set dummy ${ac_tool_prefix}ar; ac_word=$2
6b2e4ec5
ZK
5863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864printf %s "checking for $ac_word... " >&6; }
5865if test ${ac_cv_prog_AR+y}
5866then :
5867 printf %s "(cached) " >&6
635df748
ZK
5868else case e in #(
5869 e) if test -n "$AR"; then
37cd8f96
ZK
5870 ac_cv_prog_AR="$AR" # Let the user override the test.
5871else
5872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5873for as_dir in $PATH
5874do
5875 IFS=$as_save_IFS
6b2e4ec5
ZK
5876 case $as_dir in #(((
5877 '') as_dir=./ ;;
5878 */) ;;
5879 *) as_dir=$as_dir/ ;;
5880 esac
37cd8f96 5881 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 5882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37cd8f96 5883 ac_cv_prog_AR="${ac_tool_prefix}ar"
6b2e4ec5 5884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37cd8f96
ZK
5885 break 2
5886 fi
5887done
5888 done
5889IFS=$as_save_IFS
5890
635df748
ZK
5891fi ;;
5892esac
37cd8f96
ZK
5893fi
5894AR=$ac_cv_prog_AR
5895if test -n "$AR"; then
6b2e4ec5
ZK
5896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5897printf "%s\n" "$AR" >&6; }
37cd8f96 5898else
6b2e4ec5
ZK
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5900printf "%s\n" "no" >&6; }
37cd8f96
ZK
5901fi
5902
5903
5904fi
5905if test -z "$ac_cv_prog_AR"; then
5906 ac_ct_AR=$AR
5907 # Extract the first word of "ar", so it can be a program name with args.
5908set dummy ar; ac_word=$2
6b2e4ec5
ZK
5909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910printf %s "checking for $ac_word... " >&6; }
5911if test ${ac_cv_prog_ac_ct_AR+y}
5912then :
5913 printf %s "(cached) " >&6
635df748
ZK
5914else case e in #(
5915 e) if test -n "$ac_ct_AR"; then
37cd8f96
ZK
5916 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
6b2e4ec5
ZK
5922 case $as_dir in #(((
5923 '') as_dir=./ ;;
5924 */) ;;
5925 *) as_dir=$as_dir/ ;;
5926 esac
37cd8f96 5927 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5 5928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
37cd8f96 5929 ac_cv_prog_ac_ct_AR="ar"
6b2e4ec5 5930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
37cd8f96
ZK
5931 break 2
5932 fi
5933done
5934 done
5935IFS=$as_save_IFS
5936
635df748
ZK
5937fi ;;
5938esac
37cd8f96
ZK
5939fi
5940ac_ct_AR=$ac_cv_prog_ac_ct_AR
5941if test -n "$ac_ct_AR"; then
6b2e4ec5
ZK
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5943printf "%s\n" "$ac_ct_AR" >&6; }
37cd8f96 5944else
6b2e4ec5
ZK
5945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5946printf "%s\n" "no" >&6; }
37cd8f96
ZK
5947fi
5948
5949 if test "x$ac_ct_AR" = x; then
5950 AR=""
5951 else
5952 case $cross_compiling:$ac_tool_warned in
5953yes:)
6b2e4ec5
ZK
5954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5955printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
37cd8f96
ZK
5956ac_tool_warned=yes ;;
5957esac
5958 AR=$ac_ct_AR
5959 fi
5960else
5961 AR="$ac_cv_prog_AR"
5962fi
5963
1b59f5a9
ZK
5964if test -n "$ac_tool_prefix"; then
5965 # Extract the first word of "${ac_tool_prefix}cflow", so it can be a program name with args.
5966set dummy ${ac_tool_prefix}cflow; ac_word=$2
6b2e4ec5
ZK
5967{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5968printf %s "checking for $ac_word... " >&6; }
5969if test ${ac_cv_path_CFLOW_CMD+y}
5970then :
5971 printf %s "(cached) " >&6
635df748
ZK
5972else case e in #(
5973 e) case $CFLOW_CMD in
f11781c5
AK
5974 [\\/]* | ?:[\\/]*)
5975 ac_cv_path_CFLOW_CMD="$CFLOW_CMD" # Let the user override the test with a path.
5976 ;;
5977 *)
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5979for as_dir in $PATH
5980do
5981 IFS=$as_save_IFS
6b2e4ec5
ZK
5982 case $as_dir in #(((
5983 '') as_dir=./ ;;
5984 */) ;;
5985 *) as_dir=$as_dir/ ;;
5986 esac
f11781c5 5987 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
5988 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5989 ac_cv_path_CFLOW_CMD="$as_dir$ac_word$ac_exec_ext"
5990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
5991 break 2
5992 fi
5993done
5994 done
5995IFS=$as_save_IFS
8a2fc586 5996
f11781c5 5997 ;;
635df748 5998esac ;;
f11781c5 5999esac
ad6254c5 6000fi
f11781c5
AK
6001CFLOW_CMD=$ac_cv_path_CFLOW_CMD
6002if test -n "$CFLOW_CMD"; then
6b2e4ec5
ZK
6003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CFLOW_CMD" >&5
6004printf "%s\n" "$CFLOW_CMD" >&6; }
37ddf259 6005else
6b2e4ec5
ZK
6006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6007printf "%s\n" "no" >&6; }
37ddf259
AK
6008fi
6009
e2997b73 6010
1b59f5a9
ZK
6011fi
6012if test -z "$ac_cv_path_CFLOW_CMD"; then
6013 ac_pt_CFLOW_CMD=$CFLOW_CMD
6014 # Extract the first word of "cflow", so it can be a program name with args.
6015set dummy cflow; ac_word=$2
6b2e4ec5
ZK
6016{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6017printf %s "checking for $ac_word... " >&6; }
6018if test ${ac_cv_path_ac_pt_CFLOW_CMD+y}
6019then :
6020 printf %s "(cached) " >&6
635df748
ZK
6021else case e in #(
6022 e) case $ac_pt_CFLOW_CMD in
1b59f5a9
ZK
6023 [\\/]* | ?:[\\/]*)
6024 ac_cv_path_ac_pt_CFLOW_CMD="$ac_pt_CFLOW_CMD" # Let the user override the test with a path.
6025 ;;
6026 *)
6027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6028for as_dir in $PATH
6029do
6030 IFS=$as_save_IFS
6b2e4ec5
ZK
6031 case $as_dir in #(((
6032 '') as_dir=./ ;;
6033 */) ;;
6034 *) as_dir=$as_dir/ ;;
6035 esac
1b59f5a9 6036 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6037 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6038 ac_cv_path_ac_pt_CFLOW_CMD="$as_dir$ac_word$ac_exec_ext"
6039 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1b59f5a9
ZK
6040 break 2
6041 fi
6042done
6043 done
6044IFS=$as_save_IFS
6045
6046 ;;
635df748 6047esac ;;
1b59f5a9
ZK
6048esac
6049fi
6050ac_pt_CFLOW_CMD=$ac_cv_path_ac_pt_CFLOW_CMD
6051if test -n "$ac_pt_CFLOW_CMD"; then
6b2e4ec5
ZK
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CFLOW_CMD" >&5
6053printf "%s\n" "$ac_pt_CFLOW_CMD" >&6; }
1b59f5a9 6054else
6b2e4ec5
ZK
6055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6056printf "%s\n" "no" >&6; }
1b59f5a9
ZK
6057fi
6058
6059 if test "x$ac_pt_CFLOW_CMD" = x; then
6060 CFLOW_CMD=""
6061 else
6062 case $cross_compiling:$ac_tool_warned in
6063yes:)
6b2e4ec5
ZK
6064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6065printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1b59f5a9
ZK
6066ac_tool_warned=yes ;;
6067esac
6068 CFLOW_CMD=$ac_pt_CFLOW_CMD
6069 fi
6070else
6071 CFLOW_CMD="$ac_cv_path_CFLOW_CMD"
6072fi
6073
6074if test -n "$ac_tool_prefix"; then
6075 # Extract the first word of "${ac_tool_prefix}cscope", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}cscope; ac_word=$2
6b2e4ec5
ZK
6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078printf %s "checking for $ac_word... " >&6; }
6079if test ${ac_cv_path_CSCOPE_CMD+y}
6080then :
6081 printf %s "(cached) " >&6
635df748
ZK
6082else case e in #(
6083 e) case $CSCOPE_CMD in
e2997b73 6084 [\\/]* | ?:[\\/]*)
f11781c5 6085 ac_cv_path_CSCOPE_CMD="$CSCOPE_CMD" # Let the user override the test with a path.
e2997b73
AK
6086 ;;
6087 *)
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6b2e4ec5
ZK
6092 case $as_dir in #(((
6093 '') as_dir=./ ;;
6094 */) ;;
6095 *) as_dir=$as_dir/ ;;
6096 esac
f11781c5 6097 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6099 ac_cv_path_CSCOPE_CMD="$as_dir$ac_word$ac_exec_ext"
6100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
e2997b73
AK
6101 break 2
6102 fi
6103done
f11781c5 6104 done
e2997b73
AK
6105IFS=$as_save_IFS
6106
6107 ;;
635df748 6108esac ;;
e2997b73
AK
6109esac
6110fi
f11781c5
AK
6111CSCOPE_CMD=$ac_cv_path_CSCOPE_CMD
6112if test -n "$CSCOPE_CMD"; then
6b2e4ec5
ZK
6113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CSCOPE_CMD" >&5
6114printf "%s\n" "$CSCOPE_CMD" >&6; }
e2997b73 6115else
6b2e4ec5
ZK
6116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6117printf "%s\n" "no" >&6; }
e2997b73 6118fi
f11781c5
AK
6119
6120
1b59f5a9
ZK
6121fi
6122if test -z "$ac_cv_path_CSCOPE_CMD"; then
6123 ac_pt_CSCOPE_CMD=$CSCOPE_CMD
6124 # Extract the first word of "cscope", so it can be a program name with args.
6125set dummy cscope; ac_word=$2
6b2e4ec5
ZK
6126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6127printf %s "checking for $ac_word... " >&6; }
6128if test ${ac_cv_path_ac_pt_CSCOPE_CMD+y}
6129then :
6130 printf %s "(cached) " >&6
635df748
ZK
6131else case e in #(
6132 e) case $ac_pt_CSCOPE_CMD in
1b59f5a9
ZK
6133 [\\/]* | ?:[\\/]*)
6134 ac_cv_path_ac_pt_CSCOPE_CMD="$ac_pt_CSCOPE_CMD" # Let the user override the test with a path.
6135 ;;
6136 *)
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138for as_dir in $PATH
6139do
6140 IFS=$as_save_IFS
6b2e4ec5
ZK
6141 case $as_dir in #(((
6142 '') as_dir=./ ;;
6143 */) ;;
6144 *) as_dir=$as_dir/ ;;
6145 esac
1b59f5a9 6146 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6147 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6148 ac_cv_path_ac_pt_CSCOPE_CMD="$as_dir$ac_word$ac_exec_ext"
6149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1b59f5a9
ZK
6150 break 2
6151 fi
6152done
6153 done
6154IFS=$as_save_IFS
6155
6156 ;;
635df748 6157esac ;;
1b59f5a9
ZK
6158esac
6159fi
6160ac_pt_CSCOPE_CMD=$ac_cv_path_ac_pt_CSCOPE_CMD
6161if test -n "$ac_pt_CSCOPE_CMD"; then
6b2e4ec5
ZK
6162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CSCOPE_CMD" >&5
6163printf "%s\n" "$ac_pt_CSCOPE_CMD" >&6; }
1b59f5a9 6164else
6b2e4ec5
ZK
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6166printf "%s\n" "no" >&6; }
1b59f5a9
ZK
6167fi
6168
6169 if test "x$ac_pt_CSCOPE_CMD" = x; then
6170 CSCOPE_CMD=""
6171 else
6172 case $cross_compiling:$ac_tool_warned in
6173yes:)
6b2e4ec5
ZK
6174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6175printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1b59f5a9
ZK
6176ac_tool_warned=yes ;;
6177esac
6178 CSCOPE_CMD=$ac_pt_CSCOPE_CMD
6179 fi
6180else
6181 CSCOPE_CMD="$ac_cv_path_CSCOPE_CMD"
6182fi
6183
5987562c
AK
6184if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}chmod", so it can be a program name with args.
6186set dummy ${ac_tool_prefix}chmod; ac_word=$2
6b2e4ec5
ZK
6187{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6188printf %s "checking for $ac_word... " >&6; }
6189if test ${ac_cv_path_CHMOD+y}
6190then :
6191 printf %s "(cached) " >&6
635df748
ZK
6192else case e in #(
6193 e) case $CHMOD in
5987562c
AK
6194 [\\/]* | ?:[\\/]*)
6195 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
6196 ;;
6197 *)
6198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199for as_dir in $PATH
6200do
6201 IFS=$as_save_IFS
6b2e4ec5
ZK
6202 case $as_dir in #(((
6203 '') as_dir=./ ;;
6204 */) ;;
6205 *) as_dir=$as_dir/ ;;
6206 esac
5987562c 6207 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6209 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
6210 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5987562c
AK
6211 break 2
6212 fi
6213done
6214 done
6215IFS=$as_save_IFS
6216
6217 ;;
635df748 6218esac ;;
5987562c
AK
6219esac
6220fi
6221CHMOD=$ac_cv_path_CHMOD
6222if test -n "$CHMOD"; then
6b2e4ec5
ZK
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
6224printf "%s\n" "$CHMOD" >&6; }
5987562c 6225else
6b2e4ec5
ZK
6226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6227printf "%s\n" "no" >&6; }
5987562c
AK
6228fi
6229
6230
6231fi
6232if test -z "$ac_cv_path_CHMOD"; then
6233 ac_pt_CHMOD=$CHMOD
6234 # Extract the first word of "chmod", so it can be a program name with args.
6235set dummy chmod; ac_word=$2
6b2e4ec5
ZK
6236{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6237printf %s "checking for $ac_word... " >&6; }
6238if test ${ac_cv_path_ac_pt_CHMOD+y}
6239then :
6240 printf %s "(cached) " >&6
635df748
ZK
6241else case e in #(
6242 e) case $ac_pt_CHMOD in
5987562c
AK
6243 [\\/]* | ?:[\\/]*)
6244 ac_cv_path_ac_pt_CHMOD="$ac_pt_CHMOD" # Let the user override the test with a path.
6245 ;;
6246 *)
6247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6248for as_dir in $PATH
6249do
6250 IFS=$as_save_IFS
6b2e4ec5
ZK
6251 case $as_dir in #(((
6252 '') as_dir=./ ;;
6253 */) ;;
6254 *) as_dir=$as_dir/ ;;
6255 esac
5987562c 6256 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6257 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6258 ac_cv_path_ac_pt_CHMOD="$as_dir$ac_word$ac_exec_ext"
6259 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5987562c
AK
6260 break 2
6261 fi
6262done
6263 done
6264IFS=$as_save_IFS
6265
6266 ;;
635df748 6267esac ;;
5987562c
AK
6268esac
6269fi
6270ac_pt_CHMOD=$ac_cv_path_ac_pt_CHMOD
6271if test -n "$ac_pt_CHMOD"; then
6b2e4ec5
ZK
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CHMOD" >&5
6273printf "%s\n" "$ac_pt_CHMOD" >&6; }
5987562c 6274else
6b2e4ec5
ZK
6275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6276printf "%s\n" "no" >&6; }
5987562c
AK
6277fi
6278
6279 if test "x$ac_pt_CHMOD" = x; then
6280 CHMOD=""
6281 else
6282 case $cross_compiling:$ac_tool_warned in
6283yes:)
6b2e4ec5
ZK
6284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6285printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5987562c
AK
6286ac_tool_warned=yes ;;
6287esac
6288 CHMOD=$ac_pt_CHMOD
6289 fi
6290else
6291 CHMOD="$ac_cv_path_CHMOD"
6292fi
6293
6118b0fb
ZK
6294if test -n "$ac_tool_prefix"; then
6295 # Extract the first word of "${ac_tool_prefix}wc", so it can be a program name with args.
6296set dummy ${ac_tool_prefix}wc; ac_word=$2
6b2e4ec5
ZK
6297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6298printf %s "checking for $ac_word... " >&6; }
6299if test ${ac_cv_path_WC+y}
6300then :
6301 printf %s "(cached) " >&6
635df748
ZK
6302else case e in #(
6303 e) case $WC in
6118b0fb
ZK
6304 [\\/]* | ?:[\\/]*)
6305 ac_cv_path_WC="$WC" # Let the user override the test with a path.
6306 ;;
6307 *)
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6b2e4ec5
ZK
6312 case $as_dir in #(((
6313 '') as_dir=./ ;;
6314 */) ;;
6315 *) as_dir=$as_dir/ ;;
6316 esac
6118b0fb 6317 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6318 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6319 ac_cv_path_WC="$as_dir$ac_word$ac_exec_ext"
6320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6118b0fb
ZK
6321 break 2
6322 fi
6323done
6324 done
6325IFS=$as_save_IFS
6326
6327 ;;
635df748 6328esac ;;
6118b0fb
ZK
6329esac
6330fi
6331WC=$ac_cv_path_WC
6332if test -n "$WC"; then
6b2e4ec5
ZK
6333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
6334printf "%s\n" "$WC" >&6; }
6118b0fb 6335else
6b2e4ec5
ZK
6336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337printf "%s\n" "no" >&6; }
6118b0fb
ZK
6338fi
6339
6340
6341fi
6342if test -z "$ac_cv_path_WC"; then
6343 ac_pt_WC=$WC
6344 # Extract the first word of "wc", so it can be a program name with args.
6345set dummy wc; ac_word=$2
6b2e4ec5
ZK
6346{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6347printf %s "checking for $ac_word... " >&6; }
6348if test ${ac_cv_path_ac_pt_WC+y}
6349then :
6350 printf %s "(cached) " >&6
635df748
ZK
6351else case e in #(
6352 e) case $ac_pt_WC in
6118b0fb
ZK
6353 [\\/]* | ?:[\\/]*)
6354 ac_cv_path_ac_pt_WC="$ac_pt_WC" # Let the user override the test with a path.
6355 ;;
6356 *)
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6b2e4ec5
ZK
6361 case $as_dir in #(((
6362 '') as_dir=./ ;;
6363 */) ;;
6364 *) as_dir=$as_dir/ ;;
6365 esac
6118b0fb 6366 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6368 ac_cv_path_ac_pt_WC="$as_dir$ac_word$ac_exec_ext"
6369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6118b0fb
ZK
6370 break 2
6371 fi
6372done
6373 done
6374IFS=$as_save_IFS
6375
6376 ;;
635df748 6377esac ;;
6118b0fb
ZK
6378esac
6379fi
6380ac_pt_WC=$ac_cv_path_ac_pt_WC
6381if test -n "$ac_pt_WC"; then
6b2e4ec5
ZK
6382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_WC" >&5
6383printf "%s\n" "$ac_pt_WC" >&6; }
6118b0fb 6384else
6b2e4ec5
ZK
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6386printf "%s\n" "no" >&6; }
6118b0fb
ZK
6387fi
6388
6389 if test "x$ac_pt_WC" = x; then
6390 WC=""
6391 else
6392 case $cross_compiling:$ac_tool_warned in
6393yes:)
6b2e4ec5
ZK
6394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6395printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118b0fb
ZK
6396ac_tool_warned=yes ;;
6397esac
6398 WC=$ac_pt_WC
6399 fi
6400else
6401 WC="$ac_cv_path_WC"
6402fi
6403
6404if test -n "$ac_tool_prefix"; then
6405 # Extract the first word of "${ac_tool_prefix}sort", so it can be a program name with args.
6406set dummy ${ac_tool_prefix}sort; ac_word=$2
6b2e4ec5
ZK
6407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6408printf %s "checking for $ac_word... " >&6; }
6409if test ${ac_cv_path_SORT+y}
6410then :
6411 printf %s "(cached) " >&6
635df748
ZK
6412else case e in #(
6413 e) case $SORT in
6118b0fb
ZK
6414 [\\/]* | ?:[\\/]*)
6415 ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
6416 ;;
6417 *)
6418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419for as_dir in $PATH
6420do
6421 IFS=$as_save_IFS
6b2e4ec5
ZK
6422 case $as_dir in #(((
6423 '') as_dir=./ ;;
6424 */) ;;
6425 *) as_dir=$as_dir/ ;;
6426 esac
6118b0fb 6427 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6429 ac_cv_path_SORT="$as_dir$ac_word$ac_exec_ext"
6430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6118b0fb
ZK
6431 break 2
6432 fi
6433done
6434 done
6435IFS=$as_save_IFS
6436
6437 ;;
635df748 6438esac ;;
6118b0fb
ZK
6439esac
6440fi
6441SORT=$ac_cv_path_SORT
6442if test -n "$SORT"; then
6b2e4ec5
ZK
6443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
6444printf "%s\n" "$SORT" >&6; }
6118b0fb 6445else
6b2e4ec5
ZK
6446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6447printf "%s\n" "no" >&6; }
6118b0fb
ZK
6448fi
6449
6450
6451fi
6452if test -z "$ac_cv_path_SORT"; then
6453 ac_pt_SORT=$SORT
6454 # Extract the first word of "sort", so it can be a program name with args.
6455set dummy sort; ac_word=$2
6b2e4ec5
ZK
6456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457printf %s "checking for $ac_word... " >&6; }
6458if test ${ac_cv_path_ac_pt_SORT+y}
6459then :
6460 printf %s "(cached) " >&6
635df748
ZK
6461else case e in #(
6462 e) case $ac_pt_SORT in
6118b0fb
ZK
6463 [\\/]* | ?:[\\/]*)
6464 ac_cv_path_ac_pt_SORT="$ac_pt_SORT" # Let the user override the test with a path.
6465 ;;
6466 *)
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470 IFS=$as_save_IFS
6b2e4ec5
ZK
6471 case $as_dir in #(((
6472 '') as_dir=./ ;;
6473 */) ;;
6474 *) as_dir=$as_dir/ ;;
6475 esac
6118b0fb 6476 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
6477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6478 ac_cv_path_ac_pt_SORT="$as_dir$ac_word$ac_exec_ext"
6479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6118b0fb
ZK
6480 break 2
6481 fi
6482done
6483 done
6484IFS=$as_save_IFS
6485
6486 ;;
635df748 6487esac ;;
6118b0fb
ZK
6488esac
6489fi
6490ac_pt_SORT=$ac_cv_path_ac_pt_SORT
6491if test -n "$ac_pt_SORT"; then
6b2e4ec5
ZK
6492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SORT" >&5
6493printf "%s\n" "$ac_pt_SORT" >&6; }
6118b0fb 6494else
6b2e4ec5
ZK
6495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6496printf "%s\n" "no" >&6; }
6118b0fb
ZK
6497fi
6498
6499 if test "x$ac_pt_SORT" = x; then
6500 SORT=""
6501 else
6502 case $cross_compiling:$ac_tool_warned in
6503yes:)
6b2e4ec5
ZK
6504{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6505printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6118b0fb
ZK
6506ac_tool_warned=yes ;;
6507esac
6508 SORT=$ac_pt_SORT
6509 fi
6510else
6511 SORT="$ac_cv_path_SORT"
6512fi
6513
f11781c5
AK
6514
6515################################################################################
635df748 6516
f11781c5
AK
6517ac_header_dirent=no
6518for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
635df748 6519 as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | sed "$as_sed_sh"`
6b2e4ec5
ZK
6520{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
6521printf %s "checking for $ac_hdr that defines DIR... " >&6; }
6522if eval test \${$as_ac_Header+y}
6523then :
6524 printf %s "(cached) " >&6
635df748
ZK
6525else case e in #(
6526 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
6527/* end confdefs.h. */
6528#include <sys/types.h>
6529#include <$ac_hdr>
6530
6531int
6b2e4ec5 6532main (void)
f11781c5
AK
6533{
6534if ((DIR *) 0)
6535return 0;
6536 ;
6537 return 0;
6538}
6539_ACEOF
6b2e4ec5
ZK
6540if ac_fn_c_try_compile "$LINENO"
6541then :
f11781c5 6542 eval "$as_ac_Header=yes"
635df748
ZK
6543else case e in #(
6544 e) eval "$as_ac_Header=no" ;;
6545esac
f11781c5 6546fi
635df748
ZK
6547rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6548esac
f11781c5
AK
6549fi
6550eval ac_res=\$$as_ac_Header
6b2e4ec5
ZK
6551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6552printf "%s\n" "$ac_res" >&6; }
6553if eval test \"x\$"$as_ac_Header"\" = x"yes"
6554then :
f11781c5 6555 cat >>confdefs.h <<_ACEOF
635df748 6556#define `printf "%s\n" "HAVE_$ac_hdr" | sed "$as_sed_cpp"` 1
f11781c5
AK
6557_ACEOF
6558
6559ac_header_dirent=$ac_hdr; break
6560fi
6561
6562done
6563# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6564if test $ac_header_dirent = dirent.h; then
6b2e4ec5
ZK
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6566printf %s "checking for library containing opendir... " >&6; }
6567if test ${ac_cv_search_opendir+y}
6568then :
6569 printf %s "(cached) " >&6
635df748
ZK
6570else case e in #(
6571 e) ac_func_search_save_LIBS=$LIBS
f11781c5
AK
6572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573/* end confdefs.h. */
e2997b73 6574
f11781c5
AK
6575/* Override any GCC internal prototype to avoid an error.
6576 Use char because int might match the return type of a GCC
635df748
ZK
6577 builtin and then its argument prototype would still apply.
6578 The 'extern "C"' is for builds by C++ compilers;
6579 although this is not generally supported in C code supporting it here
6580 has little cost and some practical benefit (sr 110532). */
6581#ifdef __cplusplus
6582extern "C"
6583#endif
6584char opendir (void);
f11781c5 6585int
6b2e4ec5 6586main (void)
f11781c5
AK
6587{
6588return opendir ();
6589 ;
6590 return 0;
6591}
6592_ACEOF
6b2e4ec5
ZK
6593for ac_lib in '' dir
6594do
f11781c5
AK
6595 if test -z "$ac_lib"; then
6596 ac_res="none required"
6597 else
6598 ac_res=-l$ac_lib
6599 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6600 fi
6b2e4ec5
ZK
6601 if ac_fn_c_try_link "$LINENO"
6602then :
f11781c5 6603 ac_cv_search_opendir=$ac_res
e2997b73 6604fi
6b2e4ec5 6605rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 6606 conftest$ac_exeext
6b2e4ec5
ZK
6607 if test ${ac_cv_search_opendir+y}
6608then :
f11781c5 6609 break
e2997b73 6610fi
f11781c5 6611done
6b2e4ec5
ZK
6612if test ${ac_cv_search_opendir+y}
6613then :
e2997b73 6614
635df748
ZK
6615else case e in #(
6616 e) ac_cv_search_opendir=no ;;
6617esac
f11781c5 6618fi
6b2e4ec5 6619rm conftest.$ac_ext
635df748
ZK
6620LIBS=$ac_func_search_save_LIBS ;;
6621esac
e2997b73 6622fi
6b2e4ec5
ZK
6623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6624printf "%s\n" "$ac_cv_search_opendir" >&6; }
6625ac_res=$ac_cv_search_opendir
6626if test "$ac_res" != no
6627then :
6628 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
e2997b73 6629
e2997b73 6630fi
90c80887 6631
f11781c5 6632else
6b2e4ec5
ZK
6633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
6634printf %s "checking for library containing opendir... " >&6; }
6635if test ${ac_cv_search_opendir+y}
6636then :
6637 printf %s "(cached) " >&6
635df748
ZK
6638else case e in #(
6639 e) ac_func_search_save_LIBS=$LIBS
6b2e4ec5 6640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5 6641/* end confdefs.h. */
f11781c5 6642
6b2e4ec5
ZK
6643/* Override any GCC internal prototype to avoid an error.
6644 Use char because int might match the return type of a GCC
635df748
ZK
6645 builtin and then its argument prototype would still apply.
6646 The 'extern "C"' is for builds by C++ compilers;
6647 although this is not generally supported in C code supporting it here
6648 has little cost and some practical benefit (sr 110532). */
6649#ifdef __cplusplus
6650extern "C"
6651#endif
6652char opendir (void);
f11781c5 6653int
6b2e4ec5 6654main (void)
f11781c5 6655{
6b2e4ec5
ZK
6656return opendir ();
6657 ;
f11781c5
AK
6658 return 0;
6659}
6660_ACEOF
6b2e4ec5
ZK
6661for ac_lib in '' x
6662do
6663 if test -z "$ac_lib"; then
6664 ac_res="none required"
6665 else
6666 ac_res=-l$ac_lib
6667 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
6668 fi
6669 if ac_fn_c_try_link "$LINENO"
6670then :
6671 ac_cv_search_opendir=$ac_res
90c80887 6672fi
6b2e4ec5
ZK
6673rm -f core conftest.err conftest.$ac_objext conftest.beam \
6674 conftest$ac_exeext
6675 if test ${ac_cv_search_opendir+y}
6676then :
6677 break
90c80887 6678fi
6b2e4ec5
ZK
6679done
6680if test ${ac_cv_search_opendir+y}
6681then :
90c80887 6682
635df748
ZK
6683else case e in #(
6684 e) ac_cv_search_opendir=no ;;
6685esac
90c80887 6686fi
6b2e4ec5 6687rm conftest.$ac_ext
635df748
ZK
6688LIBS=$ac_func_search_save_LIBS ;;
6689esac
90c80887 6690fi
6b2e4ec5
ZK
6691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
6692printf "%s\n" "$ac_cv_search_opendir" >&6; }
6693ac_res=$ac_cv_search_opendir
6694if test "$ac_res" != no
6695then :
6696 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
90c80887 6697
90c80887 6698fi
f11781c5 6699
90c80887 6700fi
f11781c5 6701
6b2e4ec5
ZK
6702ac_header= ac_cache=
6703for ac_item in $ac_header_c_list
6704do
6705 if test $ac_cache; then
6706 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6707 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6708 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6709 fi
6710 ac_header= ac_cache=
6711 elif test $ac_header; then
6712 ac_cache=$ac_item
6713 else
6714 ac_header=$ac_item
6715 fi
f11781c5
AK
6716done
6717
6718
f11781c5 6719
f11781c5 6720
f11781c5 6721
6b2e4ec5
ZK
6722
6723
6724
6725if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6726then :
6727
6728printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
90c80887 6729
a946372e 6730fi
e2997b73 6731
6b2e4ec5
ZK
6732ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
6733if test "x$ac_cv_header_sys_mkdev_h" = xyes
6734then :
e2997b73 6735
6b2e4ec5 6736printf "%s\n" "#define MAJOR_IN_MKDEV 1" >>confdefs.h
a946372e 6737
6b2e4ec5
ZK
6738fi
6739
6740if test $ac_cv_header_sys_mkdev_h = no; then
6741 ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
6742if test "x$ac_cv_header_sys_sysmacros_h" = xyes
6743then :
f11781c5 6744
6b2e4ec5 6745printf "%s\n" "#define MAJOR_IN_SYSMACROS 1" >>confdefs.h
f11781c5 6746
e2997b73 6747fi
a946372e 6748
6b2e4ec5
ZK
6749fi
6750
6751ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6752if test "x$ac_cv_type__Bool" = xyes
6753then :
6754
6755printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
6756
a946372e 6757
f11781c5
AK
6758fi
6759
635df748
ZK
6760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99 or later" >&5
6761printf %s "checking for stdbool.h that conforms to C99 or later... " >&6; }
6b2e4ec5
ZK
6762if test ${ac_cv_header_stdbool_h+y}
6763then :
6764 printf %s "(cached) " >&6
635df748
ZK
6765else case e in #(
6766 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568ed4d 6767/* end confdefs.h. */
6b2e4ec5 6768#include <stdbool.h>
1568ed4d 6769
635df748
ZK
6770 /* "true" and "false" should be usable in #if expressions and
6771 integer constant expressions, and "bool" should be a valid
6772 type name.
6b2e4ec5 6773
635df748
ZK
6774 Although C99 requires bool, true, and false to be macros,
6775 C23 and C++11 overrule that, so do not test for that.
6776 Although C99 requires __bool_true_false_are_defined and
6777 _Bool, C23 says they are obsolescent, so do not require
6778 them. */
6b2e4ec5
ZK
6779
6780 #if !true
6781 #error "'true' is not true"
1568ed4d
AK
6782 #endif
6783 #if true != 1
6b2e4ec5 6784 #error "'true' is not equal to 1"
1568ed4d 6785 #endif
6b2e4ec5
ZK
6786 char b[true == 1 ? 1 : -1];
6787 char c[true];
6788
6789 #if false
6790 #error "'false' is not false"
6791 #endif
6792 #if false != 0
6793 #error "'false' is not equal to 0"
1568ed4d 6794 #endif
6b2e4ec5
ZK
6795 char d[false == 0 ? 1 : -1];
6796
6797 enum { e = false, f = true, g = false * true, h = true * 256 };
6798
6799 char i[(bool) 0.5 == true ? 1 : -1];
6800 char j[(bool) 0.0 == false ? 1 : -1];
6801 char k[sizeof (bool) > 0 ? 1 : -1];
6802
6803 struct sb { bool s: 1; bool t; } s;
6804 char l[sizeof s.t > 0 ? 1 : -1];
1568ed4d 6805
1568ed4d
AK
6806 /* The following fails for
6807 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6b2e4ec5
ZK
6808 bool m[h];
6809 char n[sizeof m == h * sizeof m[0] ? 1 : -1];
6810 char o[-1 - (bool) 0 < 0 ? 1 : -1];
1568ed4d 6811 /* Catch a bug in an HP-UX C compiler. See
635df748
ZK
6812 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6813 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
1568ed4d 6814 */
6b2e4ec5
ZK
6815 bool p = true;
6816 bool *pp = &p;
6817
1568ed4d 6818int
6b2e4ec5 6819main (void)
1568ed4d
AK
6820{
6821
6b2e4ec5
ZK
6822 bool ps = &s;
6823 *pp |= p;
6824 *pp |= ! p;
6825
6b2e4ec5
ZK
6826 /* Refer to every declared value, so they cannot be
6827 discarded as unused. */
635df748
ZK
6828 return (!b + !c + !d + !e + !f + !g + !h + !i + !j + !k
6829 + !l + !m + !n + !o + !p + !pp + !ps);
1568ed4d
AK
6830
6831 ;
6832 return 0;
6833}
6834_ACEOF
6b2e4ec5
ZK
6835if ac_fn_c_try_compile "$LINENO"
6836then :
1568ed4d 6837 ac_cv_header_stdbool_h=yes
635df748
ZK
6838else case e in #(
6839 e) ac_cv_header_stdbool_h=no ;;
6840esac
1568ed4d 6841fi
635df748
ZK
6842rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6843esac
1568ed4d 6844fi
6b2e4ec5
ZK
6845{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6846printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
1568ed4d
AK
6847
6848if test $ac_cv_header_stdbool_h = yes; then
6849
6b2e4ec5 6850printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
e2997b73 6851
f11781c5 6852fi
a946372e 6853
f11781c5 6854
6b2e4ec5 6855 for ac_header in assert.h ctype.h dirent.h errno.h fcntl.h float.h getopt.h inttypes.h langinfo.h libgen.h limits.h locale.h paths.h signal.h stdarg.h stddef.h stdio.h stdlib.h string.h sys/file.h sys/ioctl.h syslog.h sys/mman.h sys/param.h sys/resource.h sys/stat.h sys/time.h sys/types.h sys/utsname.h sys/wait.h time.h unistd.h
f11781c5 6856do :
635df748 6857 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
6b2e4ec5
ZK
6858ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6859if eval test \"x\$"$as_ac_Header"\" = x"yes"
6860then :
f11781c5 6861 cat >>confdefs.h <<_ACEOF
635df748 6862#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
f11781c5 6863_ACEOF
d0191583 6864
635df748
ZK
6865else case e in #(
6866 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6867esac
d0191583
JM
6868fi
6869
f11781c5 6870done
fddafd51 6871
6b2e4ec5
ZK
6872ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
6873if test "x$ac_cv_header_termios_h" = xyes
6874then :
6875 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
f11781c5 6876
6b2e4ec5
ZK
6877fi
6878ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
6879if test "x$ac_cv_header_sys_statvfs_h" = xyes
6880then :
6881 printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
a946372e 6882
a946372e 6883fi
6b2e4ec5
ZK
6884ac_fn_c_check_header_compile "$LINENO" "sys/timerfd.h" "ac_cv_header_sys_timerfd_h" "$ac_includes_default"
6885if test "x$ac_cv_header_sys_timerfd_h" = xyes
6886then :
6887 printf "%s\n" "#define HAVE_SYS_TIMERFD_H 1" >>confdefs.h
a946372e 6888
6b2e4ec5
ZK
6889fi
6890ac_fn_c_check_header_compile "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default"
6891if test "x$ac_cv_header_sys_vfs_h" = xyes
6892then :
6893 printf "%s\n" "#define HAVE_SYS_VFS_H 1" >>confdefs.h
6894
6895fi
6896ac_fn_c_check_header_compile "$LINENO" "linux/magic.h" "ac_cv_header_linux_magic_h" "$ac_includes_default"
6897if test "x$ac_cv_header_linux_magic_h" = xyes
6898then :
6899 printf "%s\n" "#define HAVE_LINUX_MAGIC_H 1" >>confdefs.h
6900
6901fi
6902ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
6903if test "x$ac_cv_header_linux_fiemap_h" = xyes
6904then :
6905 printf "%s\n" "#define HAVE_LINUX_FIEMAP_H 1" >>confdefs.h
6906
6907fi
1568ed4d 6908
6b2e4ec5 6909 for ac_header in libaio.h
57b5bc9c 6910do :
6b2e4ec5
ZK
6911 ac_fn_c_check_header_compile "$LINENO" "libaio.h" "ac_cv_header_libaio_h" "$ac_includes_default"
6912if test "x$ac_cv_header_libaio_h" = xyes
6913then :
6914 printf "%s\n" "#define HAVE_LIBAIO_H 1" >>confdefs.h
57b5bc9c 6915 LVM_NEEDS_LIBAIO_WARN=
635df748
ZK
6916else case e in #(
6917 e) LVM_NEEDS_LIBAIO_WARN=y ;;
6918esac
57b5bc9c
ZK
6919fi
6920
6921done
b681b774
ZK
6922case "$host_os" in #(
6923 linux*) :
6924 for ac_header in asm/byteorder.h linux/fs.h malloc.h
f11781c5 6925do :
635df748 6926 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
6b2e4ec5
ZK
6927ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6928if eval test \"x\$"$as_ac_Header"\" = x"yes"
6929then :
f11781c5 6930 cat >>confdefs.h <<_ACEOF
635df748 6931#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
f11781c5 6932_ACEOF
a946372e 6933
635df748
ZK
6934else case e in #(
6935 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6936esac
f11781c5 6937fi
a946372e 6938
b681b774
ZK
6939done ;; #(
6940 darwin*) :
6941 for ac_header in machine/endian.h sys/disk.h
f11781c5 6942do :
635df748 6943 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
6b2e4ec5
ZK
6944ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6945if eval test \"x\$"$as_ac_Header"\" = x"yes"
6946then :
f11781c5 6947 cat >>confdefs.h <<_ACEOF
635df748 6948#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
f11781c5
AK
6949_ACEOF
6950
635df748
ZK
6951else case e in #(
6952 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
6953esac
a946372e 6954fi
a946372e 6955
b681b774
ZK
6956done ;; #(
6957 *) :
6958 ;;
1568ed4d 6959esac
a946372e 6960
f11781c5 6961################################################################################
6b2e4ec5
ZK
6962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
6963printf %s "checking for an ANSI C-conforming const... " >&6; }
6964if test ${ac_cv_c_const+y}
6965then :
6966 printf %s "(cached) " >&6
635df748
ZK
6967else case e in #(
6968 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 6969/* end confdefs.h. */
a946372e 6970
f11781c5 6971int
6b2e4ec5 6972main (void)
f11781c5 6973{
4d0c3ed0 6974
f11781c5 6975#ifndef __cplusplus
4d0c3ed0 6976 /* Ultrix mips cc rejects this sort of thing. */
f11781c5 6977 typedef int charset[2];
4d0c3ed0 6978 const charset cs = { 0, 0 };
f11781c5
AK
6979 /* SunOS 4.1.1 cc rejects this. */
6980 char const *const *pcpcc;
6981 char **ppc;
6982 /* NEC SVR4.0.2 mips cc rejects this. */
6983 struct point {int x, y;};
6984 static struct point const zero = {0,0};
6b2e4ec5 6985 /* IBM XL C 1.02.0.0 rejects this.
f11781c5
AK
6986 It does not let you subtract one const X* pointer from another in
6987 an arm of an if-expression whose if-part is not a constant
6988 expression */
6989 const char *g = "string";
6990 pcpcc = &g + (g ? g-g : 0);
6991 /* HPUX 7.0 cc rejects these. */
6992 ++pcpcc;
6993 ppc = (char**) pcpcc;
6994 pcpcc = (char const *const *) ppc;
4d0c3ed0
AK
6995 { /* SCO 3.2v4 cc rejects this sort of thing. */
6996 char tx;
6997 char *t = &tx;
f11781c5 6998 char const *s = 0 ? (char *) 0 : (char const *) 0;
a946372e 6999
f11781c5
AK
7000 *t++ = 0;
7001 if (s) return 0;
7002 }
7003 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7004 int x[] = {25, 17};
7005 const int *foo = &x[0];
7006 ++foo;
7007 }
7008 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7009 typedef const int *iptr;
7010 iptr p = 0;
7011 ++p;
7012 }
6b2e4ec5 7013 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
f11781c5 7014 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4d0c3ed0
AK
7015 struct s { int j; const int *ap[3]; } bx;
7016 struct s *b = &bx; b->j = 5;
f11781c5
AK
7017 }
7018 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7019 const int foo = 10;
7020 if (!foo) return 0;
7021 }
7022 return !cs[0] && !zero.x;
7023#endif
a946372e 7024
f11781c5
AK
7025 ;
7026 return 0;
7027}
a946372e 7028_ACEOF
6b2e4ec5
ZK
7029if ac_fn_c_try_compile "$LINENO"
7030then :
f11781c5 7031 ac_cv_c_const=yes
635df748
ZK
7032else case e in #(
7033 e) ac_cv_c_const=no ;;
7034esac
f11781c5 7035fi
635df748
ZK
7036rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7037esac
a946372e 7038fi
6b2e4ec5
ZK
7039{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7040printf "%s\n" "$ac_cv_c_const" >&6; }
f11781c5 7041if test $ac_cv_c_const = no; then
a946372e 7042
6b2e4ec5 7043printf "%s\n" "#define const /**/" >>confdefs.h
a946372e 7044
f11781c5 7045fi
a946372e 7046
6b2e4ec5
ZK
7047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
7048printf %s "checking for inline... " >&6; }
7049if test ${ac_cv_c_inline+y}
7050then :
7051 printf %s "(cached) " >&6
635df748
ZK
7052else case e in #(
7053 e) ac_cv_c_inline=no
f11781c5
AK
7054for ac_kw in inline __inline__ __inline; do
7055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7056/* end confdefs.h. */
7057#ifndef __cplusplus
7058typedef int foo_t;
6b2e4ec5
ZK
7059static $ac_kw foo_t static_foo (void) {return 0; }
7060$ac_kw foo_t foo (void) {return 0; }
f11781c5
AK
7061#endif
7062
7063_ACEOF
6b2e4ec5
ZK
7064if ac_fn_c_try_compile "$LINENO"
7065then :
f11781c5 7066 ac_cv_c_inline=$ac_kw
a946372e 7067fi
6b2e4ec5 7068rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
f11781c5
AK
7069 test "$ac_cv_c_inline" != no && break
7070done
635df748
ZK
7071 ;;
7072esac
a946372e 7073fi
6b2e4ec5
ZK
7074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
7075printf "%s\n" "$ac_cv_c_inline" >&6; }
f11781c5
AK
7076
7077case $ac_cv_c_inline in
7078 inline | yes) ;;
7079 *)
7080 case $ac_cv_c_inline in
7081 no) ac_val=;;
7082 *) ac_val=$ac_cv_c_inline;;
7083 esac
7084 cat >>confdefs.h <<_ACEOF
7085#ifndef __cplusplus
7086#define inline $ac_val
7087#endif
7088_ACEOF
7089 ;;
7090esac
7091
7092ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
6b2e4ec5
ZK
7093if test "x$ac_cv_member_struct_stat_st_rdev" = xyes
7094then :
f11781c5 7095
6b2e4ec5 7096printf "%s\n" "#define HAVE_STRUCT_STAT_ST_RDEV 1" >>confdefs.h
a946372e 7097
f11781c5 7098
1568ed4d
AK
7099fi
7100
7101ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
6b2e4ec5
ZK
7102if test "x$ac_cv_type_ptrdiff_t" = xyes
7103then :
1568ed4d 7104
6b2e4ec5 7105printf "%s\n" "#define HAVE_PTRDIFF_T 1" >>confdefs.h
1568ed4d
AK
7106
7107
7108fi
7109
e8362b4c 7110ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
6b2e4ec5
ZK
7111if test "x$ac_cv_member_struct_stat_st_blocks" = xyes
7112then :
e8362b4c 7113
6b2e4ec5 7114printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BLOCKS 1" >>confdefs.h
e8362b4c
AK
7115
7116
6b2e4ec5 7117printf "%s\n" "#define HAVE_ST_BLOCKS 1" >>confdefs.h
e8362b4c 7118
635df748
ZK
7119else case e in #(
7120 e) case " $LIBOBJS " in
e8362b4c
AK
7121 *" fileblocks.$ac_objext "* ) ;;
7122 *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext"
7123 ;;
7124esac
635df748
ZK
7125 ;;
7126esac
e8362b4c
AK
7127fi
7128
7129
6b2e4ec5
ZK
7130{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7131printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7132if test ${ac_cv_struct_tm+y}
7133then :
7134 printf %s "(cached) " >&6
635df748
ZK
7135else case e in #(
7136 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568ed4d
AK
7137/* end confdefs.h. */
7138#include <sys/types.h>
7139#include <time.h>
7140
7141int
6b2e4ec5 7142main (void)
1568ed4d
AK
7143{
7144struct tm tm;
7145 int *p = &tm.tm_sec;
7146 return !p;
7147 ;
7148 return 0;
7149}
7150_ACEOF
6b2e4ec5
ZK
7151if ac_fn_c_try_compile "$LINENO"
7152then :
1568ed4d 7153 ac_cv_struct_tm=time.h
635df748
ZK
7154else case e in #(
7155 e) ac_cv_struct_tm=sys/time.h ;;
7156esac
1568ed4d 7157fi
635df748
ZK
7158rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7159esac
1568ed4d 7160fi
6b2e4ec5
ZK
7161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7162printf "%s\n" "$ac_cv_struct_tm" >&6; }
1568ed4d
AK
7163if test $ac_cv_struct_tm = sys/time.h; then
7164
6b2e4ec5 7165printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h
1568ed4d 7166
a946372e
AK
7167fi
7168
f11781c5 7169ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
6b2e4ec5
ZK
7170if test "x$ac_cv_type_off_t" = xyes
7171then :
a946372e 7172
635df748
ZK
7173else case e in #(
7174 e)
6b2e4ec5 7175printf "%s\n" "#define off_t long int" >>confdefs.h
635df748
ZK
7176 ;;
7177esac
a946372e
AK
7178fi
7179
a946372e 7180
6b2e4ec5
ZK
7181 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7182"
7183if test "x$ac_cv_type_pid_t" = xyes
7184then :
7185
635df748
ZK
7186else case e in #(
7187 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6b2e4ec5
ZK
7188/* end confdefs.h. */
7189
7190 #if defined _WIN64 && !defined __CYGWIN__
7191 LLP64
7192 #endif
7193
7194int
7195main (void)
7196{
7197
7198 ;
7199 return 0;
7200}
f11781c5 7201
f11781c5 7202_ACEOF
6b2e4ec5
ZK
7203if ac_fn_c_try_compile "$LINENO"
7204then :
7205 ac_pid_type='int'
635df748
ZK
7206else case e in #(
7207 e) ac_pid_type='__int64' ;;
7208esac
6b2e4ec5
ZK
7209fi
7210rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7211
7212printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7213
635df748
ZK
7214 ;;
7215esac
f11781c5
AK
7216fi
7217
6b2e4ec5 7218
f11781c5 7219ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6b2e4ec5
ZK
7220if test "x$ac_cv_type_size_t" = xyes
7221then :
a946372e 7222
635df748
ZK
7223else case e in #(
7224 e)
6b2e4ec5 7225printf "%s\n" "#define size_t unsigned int" >>confdefs.h
635df748
ZK
7226 ;;
7227esac
a946372e 7228fi
f11781c5
AK
7229
7230ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6b2e4ec5
ZK
7231if test "x$ac_cv_type_mode_t" = xyes
7232then :
f11781c5 7233
635df748
ZK
7234else case e in #(
7235 e)
6b2e4ec5 7236printf "%s\n" "#define mode_t int" >>confdefs.h
635df748
ZK
7237 ;;
7238esac
a946372e
AK
7239fi
7240
f11781c5
AK
7241ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
7242case $ac_cv_c_int8_t in #(
7243 no|yes) ;; #(
7244 *)
a946372e 7245
6b2e4ec5 7246printf "%s\n" "#define int8_t $ac_cv_c_int8_t" >>confdefs.h
f11781c5 7247;;
a946372e 7248esac
a946372e 7249
f11781c5
AK
7250ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
7251case $ac_cv_c_int16_t in #(
7252 no|yes) ;; #(
7253 *)
a946372e 7254
6b2e4ec5 7255printf "%s\n" "#define int16_t $ac_cv_c_int16_t" >>confdefs.h
f11781c5
AK
7256;;
7257esac
a946372e 7258
f11781c5
AK
7259ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7260case $ac_cv_c_int32_t in #(
7261 no|yes) ;; #(
7262 *)
a946372e 7263
6b2e4ec5 7264printf "%s\n" "#define int32_t $ac_cv_c_int32_t" >>confdefs.h
f11781c5 7265;;
a946372e 7266esac
a946372e 7267
f11781c5
AK
7268ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
7269case $ac_cv_c_int64_t in #(
7270 no|yes) ;; #(
7271 *)
7272
6b2e4ec5 7273printf "%s\n" "#define int64_t $ac_cv_c_int64_t" >>confdefs.h
f11781c5
AK
7274;;
7275esac
7276
7277ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
6b2e4ec5
ZK
7278if test "x$ac_cv_type_ssize_t" = xyes
7279then :
a946372e 7280
635df748
ZK
7281else case e in #(
7282 e)
6b2e4ec5 7283printf "%s\n" "#define ssize_t int" >>confdefs.h
635df748
ZK
7284 ;;
7285esac
f11781c5 7286fi
a946372e 7287
635df748
ZK
7288ac_fn_c_check_type "$LINENO" "uid_t" "ac_cv_type_uid_t" "$ac_includes_default"
7289if test "x$ac_cv_type_uid_t" = xyes
6b2e4ec5 7290then :
a946372e 7291
635df748
ZK
7292else case e in #(
7293 e)
6b2e4ec5 7294printf "%s\n" "#define uid_t int" >>confdefs.h
635df748
ZK
7295 ;;
7296esac
7297fi
a946372e 7298
635df748
ZK
7299ac_fn_c_check_type "$LINENO" "gid_t" "ac_cv_type_gid_t" "$ac_includes_default"
7300if test "x$ac_cv_type_gid_t" = xyes
7301then :
f11781c5 7302
635df748
ZK
7303else case e in #(
7304 e)
6b2e4ec5 7305printf "%s\n" "#define gid_t int" >>confdefs.h
635df748
ZK
7306 ;;
7307esac
f11781c5
AK
7308fi
7309
7310ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
7311case $ac_cv_c_uint8_t in #(
7312 no|yes) ;; #(
7313 *)
7314
6b2e4ec5 7315printf "%s\n" "#define _UINT8_T 1" >>confdefs.h
f11781c5
AK
7316
7317
6b2e4ec5 7318printf "%s\n" "#define uint8_t $ac_cv_c_uint8_t" >>confdefs.h
f11781c5
AK
7319;;
7320 esac
7321
7322ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
7323case $ac_cv_c_uint16_t in #(
7324 no|yes) ;; #(
7325 *)
7326
7327
6b2e4ec5 7328printf "%s\n" "#define uint16_t $ac_cv_c_uint16_t" >>confdefs.h
f11781c5
AK
7329;;
7330 esac
a946372e 7331
f11781c5
AK
7332ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7333case $ac_cv_c_uint32_t in #(
7334 no|yes) ;; #(
7335 *)
a946372e 7336
6b2e4ec5 7337printf "%s\n" "#define _UINT32_T 1" >>confdefs.h
a946372e 7338
a946372e 7339
6b2e4ec5 7340printf "%s\n" "#define uint32_t $ac_cv_c_uint32_t" >>confdefs.h
f11781c5
AK
7341;;
7342 esac
7343
7344ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
7345case $ac_cv_c_uint64_t in #(
7346 no|yes) ;; #(
7347 *)
7348
6b2e4ec5 7349printf "%s\n" "#define _UINT64_T 1" >>confdefs.h
f11781c5
AK
7350
7351
6b2e4ec5 7352printf "%s\n" "#define uint64_t $ac_cv_c_uint64_t" >>confdefs.h
f11781c5
AK
7353;;
7354 esac
7355
f11781c5 7356
83a9cd52
BR
7357
7358
6b2e4ec5
ZK
7359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clz" >&5
7360printf %s "checking for __builtin_clz... " >&6; }
7361if test ${ax_cv_have___builtin_clz+y}
7362then :
7363 printf %s "(cached) " >&6
635df748
ZK
7364else case e in #(
7365 e)
83a9cd52
BR
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367/* end confdefs.h. */
7368
7369int
6b2e4ec5 7370main (void)
83a9cd52
BR
7371{
7372
7373 __builtin_clz(0)
7374
7375 ;
7376 return 0;
7377}
7378_ACEOF
6b2e4ec5
ZK
7379if ac_fn_c_try_link "$LINENO"
7380then :
83a9cd52 7381 ax_cv_have___builtin_clz=yes
635df748
ZK
7382else case e in #(
7383 e) ax_cv_have___builtin_clz=no ;;
7384esac
83a9cd52 7385fi
6b2e4ec5 7386rm -f core conftest.err conftest.$ac_objext conftest.beam \
83a9cd52 7387 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
7388 ;;
7389esac
83a9cd52 7390fi
6b2e4ec5
ZK
7391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clz" >&5
7392printf "%s\n" "$ax_cv_have___builtin_clz" >&6; }
83a9cd52 7393
6b2e4ec5
ZK
7394 if test yes = $ax_cv_have___builtin_clz
7395then :
83a9cd52 7396
6b2e4ec5 7397printf "%s\n" "#define HAVE___BUILTIN_CLZ 1" >>confdefs.h
83a9cd52
BR
7398
7399fi
7400
7401
7402
7403
6c84a36b
ZK
7404
7405
6b2e4ec5
ZK
7406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_clzll" >&5
7407printf %s "checking for __builtin_clzll... " >&6; }
7408if test ${ax_cv_have___builtin_clzll+y}
7409then :
7410 printf %s "(cached) " >&6
635df748
ZK
7411else case e in #(
7412 e)
6c84a36b
ZK
7413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414/* end confdefs.h. */
7415
7416int
6b2e4ec5 7417main (void)
6c84a36b
ZK
7418{
7419
7420 __builtin_clzll(0)
7421
7422 ;
7423 return 0;
7424}
7425_ACEOF
6b2e4ec5
ZK
7426if ac_fn_c_try_link "$LINENO"
7427then :
6c84a36b 7428 ax_cv_have___builtin_clzll=yes
635df748
ZK
7429else case e in #(
7430 e) ax_cv_have___builtin_clzll=no ;;
7431esac
6c84a36b 7432fi
6b2e4ec5 7433rm -f core conftest.err conftest.$ac_objext conftest.beam \
6c84a36b 7434 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
7435 ;;
7436esac
6c84a36b 7437fi
6b2e4ec5
ZK
7438{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_clzll" >&5
7439printf "%s\n" "$ax_cv_have___builtin_clzll" >&6; }
6c84a36b 7440
6b2e4ec5
ZK
7441 if test yes = $ax_cv_have___builtin_clzll
7442then :
6c84a36b 7443
6b2e4ec5 7444printf "%s\n" "#define HAVE___BUILTIN_CLZLL 1" >>confdefs.h
6c84a36b
ZK
7445
7446fi
7447
7448
7449
7450
0b19387d
ZK
7451
7452
6b2e4ec5
ZK
7453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __builtin_ffs" >&5
7454printf %s "checking for __builtin_ffs... " >&6; }
7455if test ${ax_cv_have___builtin_ffs+y}
7456then :
7457 printf %s "(cached) " >&6
635df748
ZK
7458else case e in #(
7459 e)
ff788ef1
ZK
7460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7461/* end confdefs.h. */
7462
7463int
6b2e4ec5 7464main (void)
ff788ef1
ZK
7465{
7466
7467 __builtin_ffs(0)
7468
7469 ;
7470 return 0;
7471}
7472_ACEOF
6b2e4ec5
ZK
7473if ac_fn_c_try_link "$LINENO"
7474then :
ff788ef1 7475 ax_cv_have___builtin_ffs=yes
635df748
ZK
7476else case e in #(
7477 e) ax_cv_have___builtin_ffs=no ;;
7478esac
ff788ef1 7479fi
6b2e4ec5 7480rm -f core conftest.err conftest.$ac_objext conftest.beam \
ff788ef1 7481 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
7482 ;;
7483esac
ff788ef1 7484fi
6b2e4ec5
ZK
7485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have___builtin_ffs" >&5
7486printf "%s\n" "$ax_cv_have___builtin_ffs" >&6; }
ff788ef1 7487
6b2e4ec5
ZK
7488 if test yes = $ax_cv_have___builtin_ffs
7489then :
ff788ef1 7490
6b2e4ec5 7491printf "%s\n" "#define HAVE___BUILTIN_FFS 1" >>confdefs.h
ff788ef1
ZK
7492
7493fi
7494
b73e1cd4
ZK
7495
7496
7497
7498
7499
6b2e4ec5 7500printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
0b19387d
ZK
7501
7502
6b2e4ec5 7503printf "%s\n" "#define _REENTRANT 1" >>confdefs.h
0b19387d
ZK
7504
7505
7506
f11781c5 7507################################################################################
6b2e4ec5
ZK
7508
7509 for ac_func in ftruncate gethostname getpagesize gettimeofday localtime_r memchr memset mkdir mkfifo munmap nl_langinfo pselect realpath rmdir setenv setlocale strcasecmp strchr strcspn strdup strerror strncasecmp strndup strrchr strspn strstr strtol strtoul uname
f11781c5 7510do :
635df748 7511 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | sed "$as_sed_sh"`
f11781c5 7512ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6b2e4ec5
ZK
7513if eval test \"x\$"$as_ac_var"\" = x"yes"
7514then :
a946372e 7515 cat >>confdefs.h <<_ACEOF
635df748 7516#define `printf "%s\n" "HAVE_$ac_func" | sed "$as_sed_cpp"` 1
a946372e
AK
7517_ACEOF
7518
635df748
ZK
7519else case e in #(
7520 e) as_fn_error $? "bailing out" "$LINENO" 5 ;;
7521esac
a946372e 7522fi
6b2e4ec5 7523
a946372e 7524done
6b2e4ec5
ZK
7525ac_fn_c_check_func "$LINENO" "ffs" "ac_cv_func_ffs"
7526if test "x$ac_cv_func_ffs" = xyes
7527then :
7528 printf "%s\n" "#define HAVE_FFS 1" >>confdefs.h
a946372e 7529
bda93ed4
ZK
7530fi
7531ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
7532if test "x$ac_cv_func_mallinfo2" = xyes
7533then :
7534 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
7535
6b2e4ec5
ZK
7536fi
7537ac_fn_c_check_func "$LINENO" "prlimit" "ac_cv_func_prlimit"
7538if test "x$ac_cv_func_prlimit" = xyes
7539then :
7540 printf "%s\n" "#define HAVE_PRLIMIT 1" >>confdefs.h
7541
7542fi
7543ac_fn_c_check_func "$LINENO" "versionsort" "ac_cv_func_versionsort"
7544if test "x$ac_cv_func_versionsort" = xyes
7545then :
7546 printf "%s\n" "#define HAVE_VERSIONSORT 1" >>confdefs.h
ff788ef1
ZK
7547
7548fi
aefd177b 7549
f11781c5
AK
7550# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7551# for constant arguments. Useless!
6b2e4ec5
ZK
7552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7553printf %s "checking for working alloca.h... " >&6; }
7554if test ${ac_cv_working_alloca_h+y}
7555then :
7556 printf %s "(cached) " >&6
635df748
ZK
7557else case e in #(
7558 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
7559/* end confdefs.h. */
7560#include <alloca.h>
7561int
6b2e4ec5 7562main (void)
f11781c5
AK
7563{
7564char *p = (char *) alloca (2 * sizeof (int));
7565 if (p) return 0;
7566 ;
7567 return 0;
7568}
7569_ACEOF
6b2e4ec5
ZK
7570if ac_fn_c_try_link "$LINENO"
7571then :
f11781c5 7572 ac_cv_working_alloca_h=yes
635df748
ZK
7573else case e in #(
7574 e) ac_cv_working_alloca_h=no ;;
7575esac
a946372e 7576fi
6b2e4ec5 7577rm -f core conftest.err conftest.$ac_objext conftest.beam \
635df748
ZK
7578 conftest$ac_exeext conftest.$ac_ext ;;
7579esac
a946372e 7580fi
6b2e4ec5
ZK
7581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7582printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
f11781c5 7583if test $ac_cv_working_alloca_h = yes; then
a946372e 7584
6b2e4ec5 7585printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
a946372e 7586
a946372e 7587fi
a946372e 7588
6b2e4ec5
ZK
7589{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7590printf %s "checking for alloca... " >&6; }
7591if test ${ac_cv_func_alloca_works+y}
7592then :
7593 printf %s "(cached) " >&6
635df748
ZK
7594else case e in #(
7595 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
7596if test "$ac_cv_func_alloca_works" != yes
7597then :
f11781c5 7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 7599/* end confdefs.h. */
6b2e4ec5
ZK
7600#include <stdlib.h>
7601#include <stddef.h>
7602#ifndef alloca
7603# ifdef __GNUC__
7604# define alloca __builtin_alloca
7605# elif defined _MSC_VER
f11781c5
AK
7606# include <malloc.h>
7607# define alloca _alloca
7608# else
6b2e4ec5
ZK
7609# ifdef __cplusplus
7610extern "C"
f11781c5 7611# endif
6b2e4ec5 7612void *alloca (size_t);
f11781c5
AK
7613# endif
7614#endif
a946372e 7615
f11781c5 7616int
6b2e4ec5 7617main (void)
f11781c5
AK
7618{
7619char *p = (char *) alloca (1);
7620 if (p) return 0;
7621 ;
7622 return 0;
7623}
a946372e 7624_ACEOF
6b2e4ec5
ZK
7625if ac_fn_c_try_link "$LINENO"
7626then :
f11781c5 7627 ac_cv_func_alloca_works=yes
a946372e 7628fi
6b2e4ec5 7629rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 7630 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
7631fi ;;
7632esac
f11781c5 7633fi
6b2e4ec5
ZK
7634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7635printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
a946372e 7636
f11781c5 7637if test $ac_cv_func_alloca_works = yes; then
a946372e 7638
6b2e4ec5 7639printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
a946372e 7640
a946372e 7641else
f11781c5
AK
7642 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7643# that cause trouble. Some versions do not even contain alloca or
7644# contain a buggy version. If you still want to use their alloca,
7645# use ar to extract alloca.o from them instead of compiling alloca.c.
a946372e 7646
f11781c5 7647ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
a946372e 7648
6b2e4ec5 7649printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
a946372e 7650
a946372e 7651
6b2e4ec5
ZK
7652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7653printf %s "checking stack direction for C alloca... " >&6; }
7654if test ${ac_cv_c_stack_direction+y}
7655then :
7656 printf %s "(cached) " >&6
635df748
ZK
7657else case e in #(
7658 e) if test "$cross_compiling" = yes
6b2e4ec5 7659then :
f11781c5 7660 ac_cv_c_stack_direction=0
635df748
ZK
7661else case e in #(
7662 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
7663/* end confdefs.h. */
7664$ac_includes_default
7665int
4d0c3ed0 7666find_stack_direction (int *addr, int depth)
f11781c5 7667{
4d0c3ed0
AK
7668 int dir, dummy = 0;
7669 if (! addr)
7670 addr = &dummy;
7671 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7672 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7673 return dir + dummy;
f11781c5
AK
7674}
7675
7676int
4d0c3ed0 7677main (int argc, char **argv)
f11781c5 7678{
4d0c3ed0 7679 return find_stack_direction (0, argc + !argv + 20) < 0;
f11781c5
AK
7680}
7681_ACEOF
6b2e4ec5
ZK
7682if ac_fn_c_try_run "$LINENO"
7683then :
f11781c5 7684 ac_cv_c_stack_direction=1
635df748
ZK
7685else case e in #(
7686 e) ac_cv_c_stack_direction=-1 ;;
7687esac
f11781c5
AK
7688fi
7689rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
7690 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7691esac
a946372e 7692fi
635df748
ZK
7693 ;;
7694esac
a946372e 7695fi
6b2e4ec5
ZK
7696{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7697printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7698printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
a946372e 7699
f11781c5 7700
a946372e
AK
7701fi
7702
6b2e4ec5
ZK
7703{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
7704printf %s "checking whether closedir returns void... " >&6; }
7705if test ${ac_cv_func_closedir_void+y}
7706then :
7707 printf %s "(cached) " >&6
635df748
ZK
7708else case e in #(
7709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5 7710/* end confdefs.h. */
6b2e4ec5 7711
f11781c5 7712#include <$ac_header_dirent>
a946372e 7713
f11781c5 7714int
6b2e4ec5 7715main (void)
f11781c5 7716{
6b2e4ec5
ZK
7717
7718 return closedir(0);
7719
f11781c5
AK
7720 ;
7721 return 0;
7722}
7723_ACEOF
6b2e4ec5
ZK
7724if ac_fn_c_try_compile "$LINENO"
7725then :
f11781c5 7726 ac_cv_func_closedir_void=no
635df748
ZK
7727else case e in #(
7728 e) ac_cv_func_closedir_void=yes ;;
7729esac
a946372e 7730fi
635df748
ZK
7731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7732esac
f11781c5 7733fi
6b2e4ec5
ZK
7734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
7735printf "%s\n" "$ac_cv_func_closedir_void" >&6; }
f11781c5 7736if test $ac_cv_func_closedir_void = yes; then
a946372e 7737
6b2e4ec5
ZK
7738printf "%s\n" "#define CLOSEDIR_VOID 1" >>confdefs.h
7739
7740fi
7741
7742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working chown" >&5
7743printf %s "checking for working chown... " >&6; }
7744if test ${ac_cv_func_chown_works+y}
7745then :
7746 printf %s "(cached) " >&6
635df748
ZK
7747else case e in #(
7748 e) if test "$cross_compiling" = yes
6b2e4ec5
ZK
7749then :
7750 case "$host_os" in # ((
7751 # Guess yes on glibc systems.
7752 *-gnu*) ac_cv_func_chown_works=yes ;;
7753 # If we don't know, assume the worst.
7754 *) ac_cv_func_chown_works=no ;;
7755 esac
635df748
ZK
7756else case e in #(
7757 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
7758/* end confdefs.h. */
7759$ac_includes_default
7760#include <fcntl.h>
a946372e 7761
f11781c5 7762int
6b2e4ec5 7763main (void)
f11781c5
AK
7764{
7765 char *f = "conftest.chown";
7766 struct stat before, after;
a946372e 7767
f11781c5
AK
7768 if (creat (f, 0600) < 0)
7769 return 1;
7770 if (stat (f, &before) < 0)
7771 return 1;
7772 if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
7773 return 1;
7774 if (stat (f, &after) < 0)
7775 return 1;
7776 return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
a946372e 7777
f11781c5
AK
7778 ;
7779 return 0;
7780}
7781_ACEOF
6b2e4ec5
ZK
7782if ac_fn_c_try_run "$LINENO"
7783then :
f11781c5 7784 ac_cv_func_chown_works=yes
635df748
ZK
7785else case e in #(
7786 e) ac_cv_func_chown_works=no ;;
7787esac
a946372e 7788fi
f11781c5 7789rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
7790 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7791esac
a946372e
AK
7792fi
7793
f11781c5 7794rm -f conftest.chown
635df748
ZK
7795 ;;
7796esac
f11781c5 7797fi
6b2e4ec5
ZK
7798{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_chown_works" >&5
7799printf "%s\n" "$ac_cv_func_chown_works" >&6; }
f11781c5 7800if test $ac_cv_func_chown_works = yes; then
a946372e 7801
6b2e4ec5 7802printf "%s\n" "#define HAVE_CHOWN 1" >>confdefs.h
a946372e 7803
a946372e 7804fi
a946372e 7805
a946372e 7806
6b2e4ec5
ZK
7807ac_func=
7808for ac_item in $ac_func_c_list
7809do
7810 if test $ac_func; then
7811 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
7812 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
7813 echo "#define $ac_item 1" >> confdefs.h
7814 fi
7815 ac_func=
7816 else
7817 ac_func=$ac_item
7818 fi
f11781c5 7819done
a946372e 7820
a946372e
AK
7821
7822
f11781c5 7823if test "x$ac_cv_func_fork" = xyes; then
6b2e4ec5
ZK
7824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
7825printf %s "checking for working fork... " >&6; }
7826if test ${ac_cv_func_fork_works+y}
7827then :
7828 printf %s "(cached) " >&6
635df748
ZK
7829else case e in #(
7830 e) if test "$cross_compiling" = yes
6b2e4ec5 7831then :
f11781c5 7832 ac_cv_func_fork_works=cross
635df748
ZK
7833else case e in #(
7834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
7835/* end confdefs.h. */
7836$ac_includes_default
7837int
6b2e4ec5 7838main (void)
f11781c5 7839{
a946372e 7840
635df748 7841 /* By R. Kuhlmann. */
f11781c5 7842 return fork () < 0;
a946372e 7843
f11781c5
AK
7844 ;
7845 return 0;
7846}
7847_ACEOF
6b2e4ec5
ZK
7848if ac_fn_c_try_run "$LINENO"
7849then :
f11781c5 7850 ac_cv_func_fork_works=yes
635df748
ZK
7851else case e in #(
7852 e) ac_cv_func_fork_works=no ;;
7853esac
f11781c5
AK
7854fi
7855rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
7856 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7857esac
a946372e 7858fi
635df748
ZK
7859 ;;
7860esac
f11781c5 7861fi
6b2e4ec5
ZK
7862{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
7863printf "%s\n" "$ac_cv_func_fork_works" >&6; }
f11781c5 7864
a946372e 7865else
f11781c5 7866 ac_cv_func_fork_works=$ac_cv_func_fork
a946372e 7867fi
f11781c5
AK
7868if test "x$ac_cv_func_fork_works" = xcross; then
7869 case $host in
7870 *-*-amigaos* | *-*-msdosdjgpp*)
7871 # Override, as these systems have only a dummy fork() stub
7872 ac_cv_func_fork_works=no
7873 ;;
7874 *)
7875 ac_cv_func_fork_works=yes
7876 ;;
7877 esac
6b2e4ec5
ZK
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
7879printf "%s\n" "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
a946372e 7880fi
f11781c5
AK
7881ac_cv_func_vfork_works=$ac_cv_func_vfork
7882if test "x$ac_cv_func_vfork" = xyes; then
6b2e4ec5
ZK
7883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
7884printf %s "checking for working vfork... " >&6; }
7885if test ${ac_cv_func_vfork_works+y}
7886then :
7887 printf %s "(cached) " >&6
635df748
ZK
7888else case e in #(
7889 e) if test "$cross_compiling" = yes
6b2e4ec5 7890then :
f11781c5 7891 ac_cv_func_vfork_works=cross
635df748
ZK
7892else case e in #(
7893 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
7894/* end confdefs.h. */
7895/* Thanks to Paul Eggert for this test. */
7896$ac_includes_default
6b2e4ec5 7897#include <signal.h>
f11781c5
AK
7898#include <sys/wait.h>
7899#ifdef HAVE_VFORK_H
7900# include <vfork.h>
7901#endif
6b2e4ec5
ZK
7902
7903static void
7904do_nothing (int sig)
7905{
7906 (void) sig;
7907}
7908
f11781c5
AK
7909/* On some sparc systems, changes by the child to local and incoming
7910 argument registers are propagated back to the parent. The compiler
7911 is told about this with #include <vfork.h>, but some compilers
7912 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
7913 static variable whose address is put into a register that is
7914 clobbered by the vfork. */
7915static void
f11781c5 7916sparc_address_test (int arg)
f11781c5
AK
7917{
7918 static pid_t child;
7919 if (!child) {
7920 child = vfork ();
7921 if (child < 0) {
7922 perror ("vfork");
7923 _exit(2);
7924 }
7925 if (!child) {
7926 arg = getpid();
7927 write(-1, "", 0);
7928 _exit (arg);
7929 }
7930 }
7931}
a946372e 7932
f11781c5 7933int
6b2e4ec5 7934main (void)
f11781c5
AK
7935{
7936 pid_t parent = getpid ();
7937 pid_t child;
a946372e 7938
f11781c5 7939 sparc_address_test (0);
a946372e 7940
6b2e4ec5
ZK
7941 /* On Solaris 2.4, changes by the child to the signal handler
7942 also munge signal handlers in the parent. To detect this,
7943 start by putting the parent's handler in a known state. */
7944 signal (SIGTERM, SIG_DFL);
7945
f11781c5 7946 child = vfork ();
a946372e 7947
f11781c5
AK
7948 if (child == 0) {
7949 /* Here is another test for sparc vfork register problems. This
7950 test uses lots of local variables, at least as many local
7951 variables as main has allocated so far including compiler
7952 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
7953 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
7954 reuse the register of parent for one of the local variables,
7955 since it will think that parent can't possibly be used any more
7956 in this routine. Assigning to the local variable will thus
7957 munge parent in the parent process. */
7958 pid_t
7959 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
7960 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
7961 /* Convince the compiler that p..p7 are live; otherwise, it might
7962 use the same hardware register for all 8 local variables. */
7963 if (p != p1 || p != p2 || p != p3 || p != p4
7964 || p != p5 || p != p6 || p != p7)
7965 _exit(1);
a946372e 7966
6b2e4ec5
ZK
7967 /* Alter the child's signal handler. */
7968 if (signal (SIGTERM, do_nothing) != SIG_DFL)
7969 _exit(1);
7970
f11781c5
AK
7971 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
7972 from child file descriptors. If the child closes a descriptor
7973 before it execs or exits, this munges the parent's descriptor
7974 as well. Test for this by closing stdout in the child. */
7975 _exit(close(fileno(stdout)) != 0);
7976 } else {
7977 int status;
7978 struct stat st;
7979
7980 while (wait(&status) != child)
7981 ;
7982 return (
7983 /* Was there some problem with vforking? */
7984 child < 0
7985
6b2e4ec5
ZK
7986 /* Did the child munge the parent's signal handler? */
7987 || signal (SIGTERM, SIG_DFL) != SIG_DFL
7988
f11781c5
AK
7989 /* Did the child fail? (This shouldn't happen.) */
7990 || status
7991
7992 /* Did the vfork/compiler bug occur? */
7993 || parent != getpid()
7994
7995 /* Did the file descriptor bug occur? */
7996 || fstat(fileno(stdout), &st) != 0
7997 );
7998 }
7999}
8000_ACEOF
6b2e4ec5
ZK
8001if ac_fn_c_try_run "$LINENO"
8002then :
f11781c5 8003 ac_cv_func_vfork_works=yes
635df748
ZK
8004else case e in #(
8005 e) ac_cv_func_vfork_works=no ;;
8006esac
a946372e 8007fi
f11781c5 8008rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8009 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8010esac
a946372e 8011fi
635df748
ZK
8012 ;;
8013esac
a946372e 8014fi
6b2e4ec5
ZK
8015{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
8016printf "%s\n" "$ac_cv_func_vfork_works" >&6; }
a946372e 8017
f11781c5
AK
8018fi;
8019if test "x$ac_cv_func_fork_works" = xcross; then
8020 ac_cv_func_vfork_works=$ac_cv_func_vfork
6b2e4ec5
ZK
8021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
8022printf "%s\n" "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
f11781c5 8023fi
a946372e 8024
f11781c5 8025if test "x$ac_cv_func_vfork_works" = xyes; then
a946372e 8026
6b2e4ec5 8027printf "%s\n" "#define HAVE_WORKING_VFORK 1" >>confdefs.h
a946372e 8028
a946372e 8029else
a946372e 8030
6b2e4ec5 8031printf "%s\n" "#define vfork fork" >>confdefs.h
f11781c5 8032
a946372e 8033fi
f11781c5 8034if test "x$ac_cv_func_fork_works" = xyes; then
a946372e 8035
6b2e4ec5 8036printf "%s\n" "#define HAVE_WORKING_FORK 1" >>confdefs.h
a946372e 8037
a946372e 8038fi
f11781c5 8039
6b2e4ec5
ZK
8040{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
8041printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
8042if test ${ac_cv_func_lstat_dereferences_slashed_symlink+y}
8043then :
8044 printf %s "(cached) " >&6
635df748
ZK
8045else case e in #(
8046 e) rm -f conftest.sym conftest.file
f11781c5
AK
8047echo >conftest.file
8048if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
6b2e4ec5
ZK
8049 if test "$cross_compiling" = yes
8050then :
8051 case "$host_os" in # ((
8052 # Guess yes on glibc systems.
8053 *-gnu*) ac_cv_func_lstat_dereferences_slashed_symlink=yes ;;
8054 # If we don't know, assume the worst.
8055 *) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
8056 esac
635df748
ZK
8057else case e in #(
8058 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 8059/* end confdefs.h. */
f11781c5
AK
8060$ac_includes_default
8061int
6b2e4ec5 8062main (void)
f11781c5
AK
8063{
8064struct stat sbuf;
8065 /* Linux will dereference the symlink and fail, as required by POSIX.
8066 That is better in the sense that it means we will not
8067 have to compile and use the lstat wrapper. */
8068 return lstat ("conftest.sym/", &sbuf) == 0;
8069 ;
8070 return 0;
8071}
a946372e 8072_ACEOF
6b2e4ec5
ZK
8073if ac_fn_c_try_run "$LINENO"
8074then :
f11781c5 8075 ac_cv_func_lstat_dereferences_slashed_symlink=yes
635df748
ZK
8076else case e in #(
8077 e) ac_cv_func_lstat_dereferences_slashed_symlink=no ;;
8078esac
a946372e 8079fi
f11781c5 8080rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8081 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8082esac
a946372e 8083fi
a946372e 8084
a946372e 8085else
635df748 8086 # If the 'ln -s' command failed, then we probably don't even
f11781c5
AK
8087 # have an lstat function.
8088 ac_cv_func_lstat_dereferences_slashed_symlink=no
a946372e 8089fi
f11781c5 8090rm -f conftest.sym conftest.file
635df748
ZK
8091 ;;
8092esac
f11781c5 8093fi
6b2e4ec5
ZK
8094{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
8095printf "%s\n" "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
a946372e 8096
f11781c5 8097test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
a946372e 8098
6b2e4ec5 8099printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
a946372e 8100
a946372e 8101
f11781c5
AK
8102if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
8103 case " $LIBOBJS " in
8104 *" lstat.$ac_objext "* ) ;;
8105 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8106 ;;
8107esac
a946372e 8108
f11781c5 8109fi
a946372e 8110
6b2e4ec5
ZK
8111{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat accepts an empty string" >&5
8112printf %s "checking whether lstat accepts an empty string... " >&6; }
8113if test ${ac_cv_func_lstat_empty_string_bug+y}
8114then :
8115 printf %s "(cached) " >&6
635df748
ZK
8116else case e in #(
8117 e) if test "$cross_compiling" = yes
6b2e4ec5 8118then :
f11781c5 8119 ac_cv_func_lstat_empty_string_bug=yes
635df748
ZK
8120else case e in #(
8121 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
8122/* end confdefs.h. */
8123$ac_includes_default
8124int
6b2e4ec5 8125main (void)
f11781c5
AK
8126{
8127struct stat sbuf;
8128 return lstat ("", &sbuf) == 0;
8129 ;
8130 return 0;
8131}
8132_ACEOF
6b2e4ec5
ZK
8133if ac_fn_c_try_run "$LINENO"
8134then :
f11781c5 8135 ac_cv_func_lstat_empty_string_bug=no
635df748
ZK
8136else case e in #(
8137 e) ac_cv_func_lstat_empty_string_bug=yes ;;
8138esac
a946372e 8139fi
f11781c5 8140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8141 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8142esac
a946372e 8143fi
635df748
ZK
8144 ;;
8145esac
f11781c5 8146fi
6b2e4ec5
ZK
8147{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_empty_string_bug" >&5
8148printf "%s\n" "$ac_cv_func_lstat_empty_string_bug" >&6; }
f11781c5
AK
8149if test $ac_cv_func_lstat_empty_string_bug = yes; then
8150 case " $LIBOBJS " in
8151 *" lstat.$ac_objext "* ) ;;
8152 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
8153 ;;
8154esac
a946372e
AK
8155
8156
6b2e4ec5 8157printf "%s\n" "#define HAVE_LSTAT_EMPTY_STRING_BUG 1" >>confdefs.h
f11781c5 8158
a946372e
AK
8159fi
8160
6b2e4ec5
ZK
8161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
8162printf %s "checking for GNU libc compatible malloc... " >&6; }
8163if test ${ac_cv_func_malloc_0_nonnull+y}
8164then :
8165 printf %s "(cached) " >&6
635df748
ZK
8166else case e in #(
8167 e) if test "$cross_compiling" = yes
6b2e4ec5
ZK
8168then :
8169 case "$host_os" in # ((
8170 # Guess yes on platforms where we know the result.
8171 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
635df748 8172 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
6b2e4ec5
ZK
8173 ac_cv_func_malloc_0_nonnull=yes ;;
8174 # If we don't know, assume the worst.
8175 *) ac_cv_func_malloc_0_nonnull=no ;;
8176 esac
635df748
ZK
8177else case e in #(
8178 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5 8179/* end confdefs.h. */
6b2e4ec5 8180#include <stdlib.h>
a946372e 8181
f11781c5 8182int
6b2e4ec5 8183main (void)
f11781c5 8184{
6b2e4ec5
ZK
8185void *p = malloc (0);
8186 int result = !p;
8187 free (p);
8188 return result;
f11781c5
AK
8189 ;
8190 return 0;
8191}
8192_ACEOF
6b2e4ec5
ZK
8193if ac_fn_c_try_run "$LINENO"
8194then :
f11781c5 8195 ac_cv_func_malloc_0_nonnull=yes
635df748
ZK
8196else case e in #(
8197 e) ac_cv_func_malloc_0_nonnull=no ;;
8198esac
a946372e 8199fi
f11781c5 8200rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8201 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8202esac
a946372e 8203fi
635df748
ZK
8204 ;;
8205esac
a946372e 8206fi
6b2e4ec5
ZK
8207{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
8208printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
8209if test $ac_cv_func_malloc_0_nonnull = yes
8210then :
a946372e 8211
6b2e4ec5 8212printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h
a946372e 8213
635df748
ZK
8214else case e in #(
8215 e) printf "%s\n" "#define HAVE_MALLOC 0" >>confdefs.h
a946372e 8216
f11781c5
AK
8217 case " $LIBOBJS " in
8218 *" malloc.$ac_objext "* ) ;;
8219 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
8220 ;;
8221esac
8222
8223
6b2e4ec5 8224printf "%s\n" "#define malloc rpl_malloc" >>confdefs.h
635df748
ZK
8225 ;;
8226esac
a946372e 8227fi
a946372e 8228
a946372e 8229
6b2e4ec5
ZK
8230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
8231printf %s "checking for working memcmp... " >&6; }
8232if test ${ac_cv_func_memcmp_working+y}
8233then :
8234 printf %s "(cached) " >&6
635df748
ZK
8235else case e in #(
8236 e) if test "$cross_compiling" = yes
6b2e4ec5 8237then :
f11781c5 8238 ac_cv_func_memcmp_working=no
635df748
ZK
8239else case e in #(
8240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
8241/* end confdefs.h. */
8242$ac_includes_default
f11781c5 8243int
6b2e4ec5 8244main (void)
f11781c5 8245{
a946372e 8246
f11781c5
AK
8247 /* Some versions of memcmp are not 8-bit clean. */
8248 char c0 = '\100', c1 = '\200', c2 = '\201';
8249 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
8250 return 1;
a946372e 8251
f11781c5
AK
8252 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
8253 or more and with at least one buffer not starting on a 4-byte boundary.
8254 William Lewis provided this test program. */
8255 {
8256 char foo[21];
8257 char bar[21];
8258 int i;
8259 for (i = 0; i < 4; i++)
8260 {
8261 char *a = foo + i;
8262 char *b = bar + i;
8263 strcpy (a, "--------01111111");
8264 strcpy (b, "--------10000000");
8265 if (memcmp (a, b, 16) >= 0)
8266 return 1;
8267 }
8268 return 0;
8269 }
a946372e 8270
f11781c5
AK
8271 ;
8272 return 0;
8273}
a946372e 8274_ACEOF
6b2e4ec5
ZK
8275if ac_fn_c_try_run "$LINENO"
8276then :
f11781c5 8277 ac_cv_func_memcmp_working=yes
635df748
ZK
8278else case e in #(
8279 e) ac_cv_func_memcmp_working=no ;;
8280esac
f11781c5
AK
8281fi
8282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8283 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8284esac
f11781c5 8285fi
635df748
ZK
8286 ;;
8287esac
a946372e 8288fi
6b2e4ec5
ZK
8289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
8290printf "%s\n" "$ac_cv_func_memcmp_working" >&6; }
f11781c5
AK
8291test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
8292 *" memcmp.$ac_objext "* ) ;;
8293 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
8294 ;;
8295esac
a946372e 8296
a946372e 8297
a946372e 8298
a946372e 8299
f11781c5 8300
5aa8683e 8301
6b2e4ec5
ZK
8302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
8303printf %s "checking for working mktime... " >&6; }
8304if test ${ac_cv_func_working_mktime+y}
8305then :
8306 printf %s "(cached) " >&6
635df748
ZK
8307else case e in #(
8308 e) if test "$cross_compiling" = yes
6b2e4ec5 8309then :
1568ed4d 8310 ac_cv_func_working_mktime=no
635df748
ZK
8311else case e in #(
8312 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1568ed4d
AK
8313/* end confdefs.h. */
8314/* Test program from Paul Eggert and Tony Leneis. */
6b2e4ec5
ZK
8315#include <time.h>
8316#ifdef HAVE_SYS_TIME_H
1568ed4d 8317# include <sys/time.h>
1568ed4d
AK
8318#endif
8319
8320#include <limits.h>
8321#include <stdlib.h>
8322
8323#ifdef HAVE_UNISTD_H
8324# include <unistd.h>
8325#endif
8326
8327#ifndef HAVE_ALARM
8328# define alarm(X) /* empty */
8329#endif
8330
8331/* Work around redefinition to rpl_putenv by other config tests. */
8332#undef putenv
8333
8334static time_t time_t_max;
8335static time_t time_t_min;
8336
8337/* Values we'll use to set the TZ environment variable. */
8338static const char *tz_strings[] = {
8339 (const char *) 0, "TZ=GMT0", "TZ=JST-9",
8340 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
8341};
8342#define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
8343
8344/* Return 0 if mktime fails to convert a date in the spring-forward gap.
8345 Based on a problem report from Andreas Jaeger. */
8346static int
635df748 8347spring_forward_gap (void)
1568ed4d
AK
8348{
8349 /* glibc (up to about 1998-10-07) failed this test. */
8350 struct tm tm;
8351
8352 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8353 instead of "TZ=America/Vancouver" in order to detect the bug even
8354 on systems that don't support the Olson extension, or don't have the
8355 full zoneinfo tables installed. */
8356 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8357
8358 tm.tm_year = 98;
8359 tm.tm_mon = 3;
8360 tm.tm_mday = 5;
8361 tm.tm_hour = 2;
8362 tm.tm_min = 0;
8363 tm.tm_sec = 0;
8364 tm.tm_isdst = -1;
8365 return mktime (&tm) != (time_t) -1;
8366}
8367
8368static int
8369mktime_test1 (time_t now)
8370{
8371 struct tm *lt;
8372 return ! (lt = localtime (&now)) || mktime (lt) == now;
8373}
8374
8375static int
8376mktime_test (time_t now)
8377{
8378 return (mktime_test1 (now)
8379 && mktime_test1 ((time_t) (time_t_max - now))
8380 && mktime_test1 ((time_t) (time_t_min + now)));
8381}
8382
8383static int
635df748 8384irix_6_4_bug (void)
1568ed4d
AK
8385{
8386 /* Based on code from Ariel Faigon. */
8387 struct tm tm;
8388 tm.tm_year = 96;
8389 tm.tm_mon = 3;
8390 tm.tm_mday = 0;
8391 tm.tm_hour = 0;
8392 tm.tm_min = 0;
8393 tm.tm_sec = 0;
8394 tm.tm_isdst = -1;
8395 mktime (&tm);
8396 return tm.tm_mon == 2 && tm.tm_mday == 31;
8397}
8398
8399static int
8400bigtime_test (int j)
8401{
8402 struct tm tm;
8403 time_t now;
8404 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
8405 now = mktime (&tm);
8406 if (now != (time_t) -1)
8407 {
8408 struct tm *lt = localtime (&now);
8409 if (! (lt
8410 && lt->tm_year == tm.tm_year
8411 && lt->tm_mon == tm.tm_mon
8412 && lt->tm_mday == tm.tm_mday
8413 && lt->tm_hour == tm.tm_hour
8414 && lt->tm_min == tm.tm_min
8415 && lt->tm_sec == tm.tm_sec
8416 && lt->tm_yday == tm.tm_yday
8417 && lt->tm_wday == tm.tm_wday
8418 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
8419 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
8420 return 0;
8421 }
8422 return 1;
8423}
8424
8425static int
635df748 8426year_2050_test (void)
1568ed4d
AK
8427{
8428 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
8429 ignoring leap seconds. */
8430 unsigned long int answer = 2527315200UL;
8431
8432 struct tm tm;
8433 time_t t;
8434 tm.tm_year = 2050 - 1900;
8435 tm.tm_mon = 2 - 1;
8436 tm.tm_mday = 1;
8437 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
8438 tm.tm_isdst = -1;
8439
8440 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
8441 instead of "TZ=America/Vancouver" in order to detect the bug even
8442 on systems that don't support the Olson extension, or don't have the
8443 full zoneinfo tables installed. */
8444 putenv ((char*) "TZ=PST8PDT,M4.1.0,M10.5.0");
8445
8446 t = mktime (&tm);
8447
8448 /* Check that the result is either a failure, or close enough
8449 to the correct answer that we can assume the discrepancy is
8450 due to leap seconds. */
8451 return (t == (time_t) -1
8452 || (0 < t && answer - 120 <= t && t <= answer + 120));
8453}
8454
8455int
6b2e4ec5 8456main (void)
1568ed4d
AK
8457{
8458 time_t t, delta;
8459 int i, j;
8460
8461 /* This test makes some buggy mktime implementations loop.
8462 Give up after 60 seconds; a mktime slower than that
8463 isn't worth using anyway. */
8464 alarm (60);
8465
8466 for (;;)
8467 {
8468 t = (time_t_max << 1) + 1;
8469 if (t <= time_t_max)
8470 break;
8471 time_t_max = t;
8472 }
8473 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
8474
8475 delta = time_t_max / 997; /* a suitable prime number */
8476 for (i = 0; i < N_STRINGS; i++)
8477 {
8478 if (tz_strings[i])
8479 putenv ((char*) tz_strings[i]);
8480
8481 for (t = 0; t <= time_t_max - delta; t += delta)
8482 if (! mktime_test (t))
8483 return 1;
8484 if (! (mktime_test ((time_t) 1)
8485 && mktime_test ((time_t) (60 * 60))
8486 && mktime_test ((time_t) (60 * 60 * 24))))
8487 return 1;
8488
8489 for (j = 1; ; j <<= 1)
8490 if (! bigtime_test (j))
8491 return 1;
8492 else if (INT_MAX / 2 < j)
8493 break;
8494 if (! bigtime_test (INT_MAX))
8495 return 1;
8496 }
8497 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
8498}
8499_ACEOF
6b2e4ec5
ZK
8500if ac_fn_c_try_run "$LINENO"
8501then :
1568ed4d 8502 ac_cv_func_working_mktime=yes
635df748
ZK
8503else case e in #(
8504 e) ac_cv_func_working_mktime=no ;;
8505esac
1568ed4d
AK
8506fi
8507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8508 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8509esac
1568ed4d 8510fi
635df748
ZK
8511 ;;
8512esac
1568ed4d 8513fi
6b2e4ec5
ZK
8514{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
8515printf "%s\n" "$ac_cv_func_working_mktime" >&6; }
1568ed4d
AK
8516if test $ac_cv_func_working_mktime = no; then
8517 case " $LIBOBJS " in
8518 *" mktime.$ac_objext "* ) ;;
8519 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
8520 ;;
8521esac
8522
8523fi
8524
8525
8526
8527
8528
6b2e4ec5
ZK
8529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
8530printf %s "checking for working mmap... " >&6; }
8531if test ${ac_cv_func_mmap_fixed_mapped+y}
8532then :
8533 printf %s "(cached) " >&6
635df748
ZK
8534else case e in #(
8535 e) if test "$cross_compiling" = yes
6b2e4ec5
ZK
8536then :
8537 case "$host_os" in # ((
8538 # Guess yes on platforms where we know the result.
8539 linux*) ac_cv_func_mmap_fixed_mapped=yes ;;
8540 # If we don't know, assume the worst.
8541 *) ac_cv_func_mmap_fixed_mapped=no ;;
8542 esac
635df748
ZK
8543else case e in #(
8544 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e
AK
8545/* end confdefs.h. */
8546$ac_includes_default
f11781c5
AK
8547/* malloc might have been renamed as rpl_malloc. */
8548#undef malloc
8549
8550/* Thanks to Mike Haertel and Jim Avera for this test.
8551 Here is a matrix of mmap possibilities:
8552 mmap private not fixed
8553 mmap private fixed at somewhere currently unmapped
8554 mmap private fixed at somewhere already mapped
8555 mmap shared not fixed
8556 mmap shared fixed at somewhere currently unmapped
8557 mmap shared fixed at somewhere already mapped
8558 For private mappings, we should verify that changes cannot be read()
8559 back from the file, nor mmap's back from the file at a different
8560 address. (There have been systems where private was not correctly
8561 implemented like the infamous i386 svr4.0, and systems where the
8562 VM page cache was not coherent with the file system buffer cache
8563 like early versions of FreeBSD and possibly contemporary NetBSD.)
8564 For shared mappings, we should conversely verify that changes get
635df748 8565 propagated back to all the places they're supposed to be. */
f11781c5
AK
8566
8567#include <fcntl.h>
8568#include <sys/mman.h>
8569
635df748
ZK
8570#ifndef getpagesize
8571/* Prefer sysconf to the legacy getpagesize function, as getpagesize has
8572 been removed from POSIX and is limited to page sizes that fit in 'int'. */
f11781c5 8573# ifdef _SC_PAGESIZE
635df748
ZK
8574# define getpagesize() sysconf (_SC_PAGESIZE)
8575# elif defined _SC_PAGE_SIZE
8576# define getpagesize() sysconf (_SC_PAGE_SIZE)
8577# elif HAVE_GETPAGESIZE
8578int getpagesize ();
8579# else
f11781c5
AK
8580# ifdef HAVE_SYS_PARAM_H
8581# include <sys/param.h>
8582# ifdef EXEC_PAGESIZE
8583# define getpagesize() EXEC_PAGESIZE
8584# else /* no EXEC_PAGESIZE */
8585# ifdef NBPG
8586# define getpagesize() NBPG * CLSIZE
8587# ifndef CLSIZE
8588# define CLSIZE 1
8589# endif /* no CLSIZE */
8590# else /* no NBPG */
8591# ifdef NBPC
8592# define getpagesize() NBPC
8593# else /* no NBPC */
8594# ifdef PAGESIZE
8595# define getpagesize() PAGESIZE
8596# endif /* PAGESIZE */
8597# endif /* no NBPC */
8598# endif /* no NBPG */
8599# endif /* no EXEC_PAGESIZE */
8600# else /* no HAVE_SYS_PARAM_H */
8601# define getpagesize() 8192 /* punt totally */
8602# endif /* no HAVE_SYS_PARAM_H */
635df748
ZK
8603# endif
8604#endif
f11781c5
AK
8605
8606int
6b2e4ec5 8607main (void)
f11781c5
AK
8608{
8609 char *data, *data2, *data3;
8610 const char *cdata2;
635df748 8611 long i, pagesize;
f11781c5
AK
8612 int fd, fd2;
8613
8614 pagesize = getpagesize ();
8615
8616 /* First, make a file with some known garbage in it. */
8617 data = (char *) malloc (pagesize);
8618 if (!data)
8619 return 1;
8620 for (i = 0; i < pagesize; ++i)
8621 *(data + i) = rand ();
8622 umask (0);
8623 fd = creat ("conftest.mmap", 0600);
8624 if (fd < 0)
8625 return 2;
8626 if (write (fd, data, pagesize) != pagesize)
8627 return 3;
8628 close (fd);
8629
8630 /* Next, check that the tail of a page is zero-filled. File must have
8631 non-zero length, otherwise we risk SIGBUS for entire page. */
8632 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
8633 if (fd2 < 0)
8634 return 4;
8635 cdata2 = "";
8636 if (write (fd2, cdata2, 1) != 1)
8637 return 5;
8638 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
8639 if (data2 == MAP_FAILED)
8640 return 6;
8641 for (i = 0; i < pagesize; ++i)
8642 if (*(data2 + i))
8643 return 7;
8644 close (fd2);
635df748 8645 /* 'return 8;' not currently used. */
f11781c5
AK
8646
8647 /* Next, try to mmap the file at a fixed address which already has
8648 something else allocated at it. If we can, also make sure that
8649 we see the same garbage. */
8650 fd = open ("conftest.mmap", O_RDWR);
8651 if (fd < 0)
8652 return 9;
8653 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
8654 MAP_PRIVATE | MAP_FIXED, fd, 0L))
8655 return 10;
8656 for (i = 0; i < pagesize; ++i)
8657 if (*(data + i) != *(data2 + i))
8658 return 11;
8659
8660 /* Finally, make sure that changes to the mapped area do not
8661 percolate back to the file as seen by read(). (This is a bug on
8662 some variants of i386 svr4.0.) */
8663 for (i = 0; i < pagesize; ++i)
8664 *(data2 + i) = *(data2 + i) + 1;
8665 data3 = (char *) malloc (pagesize);
8666 if (!data3)
8667 return 12;
8668 if (read (fd, data3, pagesize) != pagesize)
8669 return 13;
8670 for (i = 0; i < pagesize; ++i)
8671 if (*(data + i) != *(data3 + i))
8672 return 14;
8673 close (fd);
6b2e4ec5
ZK
8674 free (data);
8675 free (data3);
f11781c5
AK
8676 return 0;
8677}
a946372e 8678_ACEOF
6b2e4ec5
ZK
8679if ac_fn_c_try_run "$LINENO"
8680then :
f11781c5 8681 ac_cv_func_mmap_fixed_mapped=yes
635df748
ZK
8682else case e in #(
8683 e) ac_cv_func_mmap_fixed_mapped=no ;;
8684esac
f11781c5
AK
8685fi
8686rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8687 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8688esac
f11781c5 8689fi
635df748
ZK
8690 ;;
8691esac
a946372e 8692fi
6b2e4ec5
ZK
8693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
8694printf "%s\n" "$ac_cv_func_mmap_fixed_mapped" >&6; }
f11781c5 8695if test $ac_cv_func_mmap_fixed_mapped = yes; then
a946372e 8696
6b2e4ec5 8697printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
a946372e 8698
f11781c5
AK
8699fi
8700rm -f conftest.mmap conftest.txt
8701
6b2e4ec5
ZK
8702{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
8703printf %s "checking for GNU libc compatible realloc... " >&6; }
8704if test ${ac_cv_func_realloc_0_nonnull+y}
8705then :
8706 printf %s "(cached) " >&6
635df748
ZK
8707else case e in #(
8708 e) if test "$cross_compiling" = yes
6b2e4ec5
ZK
8709then :
8710 case "$host_os" in # ((
8711 # Guess yes on platforms where we know the result.
8712 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
635df748 8713 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
6b2e4ec5
ZK
8714 ac_cv_func_realloc_0_nonnull=yes ;;
8715 # If we don't know, assume the worst.
8716 *) ac_cv_func_realloc_0_nonnull=no ;;
8717 esac
635df748
ZK
8718else case e in #(
8719 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
a946372e 8720/* end confdefs.h. */
6b2e4ec5 8721#include <stdlib.h>
f11781c5
AK
8722
8723int
6b2e4ec5 8724main (void)
f11781c5 8725{
6b2e4ec5
ZK
8726void *p = realloc (0, 0);
8727 int result = !p;
8728 free (p);
8729 return result;
f11781c5
AK
8730 ;
8731 return 0;
8732}
a946372e 8733_ACEOF
6b2e4ec5
ZK
8734if ac_fn_c_try_run "$LINENO"
8735then :
f11781c5 8736 ac_cv_func_realloc_0_nonnull=yes
635df748
ZK
8737else case e in #(
8738 e) ac_cv_func_realloc_0_nonnull=no ;;
8739esac
f11781c5
AK
8740fi
8741rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8742 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8743esac
a946372e 8744fi
635df748
ZK
8745 ;;
8746esac
f11781c5 8747fi
6b2e4ec5
ZK
8748{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
8749printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
8750if test $ac_cv_func_realloc_0_nonnull = yes
8751then :
a946372e 8752
6b2e4ec5 8753printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h
a946372e 8754
635df748
ZK
8755else case e in #(
8756 e) printf "%s\n" "#define HAVE_REALLOC 0" >>confdefs.h
f11781c5
AK
8757
8758 case " $LIBOBJS " in
8759 *" realloc.$ac_objext "* ) ;;
8760 *) LIBOBJS="$LIBOBJS realloc.$ac_objext"
8761 ;;
8762esac
a946372e 8763
a946372e 8764
6b2e4ec5 8765printf "%s\n" "#define realloc rpl_realloc" >>confdefs.h
635df748
ZK
8766 ;;
8767esac
a946372e
AK
8768fi
8769
a946372e 8770
6b2e4ec5
ZK
8771{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
8772printf %s "checking whether stat accepts an empty string... " >&6; }
8773if test ${ac_cv_func_stat_empty_string_bug+y}
8774then :
8775 printf %s "(cached) " >&6
635df748
ZK
8776else case e in #(
8777 e) if test "$cross_compiling" = yes
6b2e4ec5 8778then :
f11781c5 8779 ac_cv_func_stat_empty_string_bug=yes
635df748
ZK
8780else case e in #(
8781 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5
AK
8782/* end confdefs.h. */
8783$ac_includes_default
8784int
6b2e4ec5 8785main (void)
f11781c5
AK
8786{
8787struct stat sbuf;
8788 return stat ("", &sbuf) == 0;
8789 ;
8790 return 0;
8791}
8792_ACEOF
6b2e4ec5
ZK
8793if ac_fn_c_try_run "$LINENO"
8794then :
f11781c5 8795 ac_cv_func_stat_empty_string_bug=no
635df748
ZK
8796else case e in #(
8797 e) ac_cv_func_stat_empty_string_bug=yes ;;
8798esac
a946372e 8799fi
f11781c5 8800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8801 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8802esac
a946372e 8803fi
635df748
ZK
8804 ;;
8805esac
8c4e8a18 8806fi
6b2e4ec5
ZK
8807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
8808printf "%s\n" "$ac_cv_func_stat_empty_string_bug" >&6; }
f11781c5
AK
8809if test $ac_cv_func_stat_empty_string_bug = yes; then
8810 case " $LIBOBJS " in
8811 *" stat.$ac_objext "* ) ;;
8812 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
8813 ;;
8814esac
8c4e8a18
FDN
8815
8816
6b2e4ec5 8817printf "%s\n" "#define HAVE_STAT_EMPTY_STRING_BUG 1" >>confdefs.h
8c4e8a18
FDN
8818
8819fi
8820
6b2e4ec5
ZK
8821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
8822printf %s "checking for working strtod... " >&6; }
8823if test ${ac_cv_func_strtod+y}
8824then :
8825 printf %s "(cached) " >&6
635df748
ZK
8826else case e in #(
8827 e) if test "$cross_compiling" = yes
6b2e4ec5 8828then :
f11781c5 8829 ac_cv_func_strtod=no
635df748
ZK
8830else case e in #(
8831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
f11781c5 8832/* end confdefs.h. */
66fd4529 8833
f11781c5 8834$ac_includes_default
f11781c5 8835int
6b2e4ec5 8836main (void)
f11781c5
AK
8837{
8838 {
8839 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
8840 char *string = " +69";
8841 char *term;
8842 double value;
8843 value = strtod (string, &term);
8844 if (value != 69 || term != (string + 4))
8845 return 1;
8846 }
66fd4529 8847
f11781c5
AK
8848 {
8849 /* Under Solaris 2.4, strtod returns the wrong value for the
8850 terminating character under some conditions. */
8851 char *string = "NaN";
8852 char *term;
8853 strtod (string, &term);
8854 if (term != string && *(term - 1) == 0)
8855 return 1;
8856 }
8857 return 0;
8858}
66fd4529 8859
f11781c5 8860_ACEOF
6b2e4ec5
ZK
8861if ac_fn_c_try_run "$LINENO"
8862then :
f11781c5 8863 ac_cv_func_strtod=yes
635df748
ZK
8864else case e in #(
8865 e) ac_cv_func_strtod=no ;;
8866esac
f11781c5
AK
8867fi
8868rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
635df748
ZK
8869 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8870esac
a946372e 8871fi
635df748
ZK
8872 ;;
8873esac
f11781c5 8874fi
6b2e4ec5
ZK
8875{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
8876printf "%s\n" "$ac_cv_func_strtod" >&6; }
f11781c5
AK
8877if test $ac_cv_func_strtod = no; then
8878 case " $LIBOBJS " in
8879 *" strtod.$ac_objext "* ) ;;
8880 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
8881 ;;
8882esac
71082be4 8883
f11781c5 8884ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6b2e4ec5
ZK
8885if test "x$ac_cv_func_pow" = xyes
8886then :
71082be4 8887
66fd4529 8888fi
a946372e 8889
f11781c5 8890if test $ac_cv_func_pow = no; then
6b2e4ec5
ZK
8891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
8892printf %s "checking for pow in -lm... " >&6; }
8893if test ${ac_cv_lib_m_pow+y}
8894then :
8895 printf %s "(cached) " >&6
635df748
ZK
8896else case e in #(
8897 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
8898LIBS="-lm $LIBS"
8899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8900/* end confdefs.h. */
90c80887 8901
f11781c5
AK
8902/* Override any GCC internal prototype to avoid an error.
8903 Use char because int might match the return type of a GCC
635df748
ZK
8904 builtin and then its argument prototype would still apply.
8905 The 'extern "C"' is for builds by C++ compilers;
8906 although this is not generally supported in C code supporting it here
8907 has little cost and some practical benefit (sr 110532). */
8908#ifdef __cplusplus
8909extern "C"
8910#endif
8911char pow (void);
f11781c5 8912int
6b2e4ec5 8913main (void)
f11781c5
AK
8914{
8915return pow ();
8916 ;
8917 return 0;
8918}
8919_ACEOF
6b2e4ec5
ZK
8920if ac_fn_c_try_link "$LINENO"
8921then :
f11781c5 8922 ac_cv_lib_m_pow=yes
635df748
ZK
8923else case e in #(
8924 e) ac_cv_lib_m_pow=no ;;
8925esac
90c80887 8926fi
6b2e4ec5 8927rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 8928 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
8929LIBS=$ac_check_lib_save_LIBS ;;
8930esac
90c80887 8931fi
6b2e4ec5
ZK
8932{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
8933printf "%s\n" "$ac_cv_lib_m_pow" >&6; }
8934if test "x$ac_cv_lib_m_pow" = xyes
8935then :
f11781c5 8936 POW_LIB=-lm
635df748
ZK
8937else case e in #(
8938 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
8939printf "%s\n" "$as_me: WARNING: cannot find library containing definition of pow" >&2;} ;;
8940esac
90c80887 8941fi
f11781c5 8942
90c80887
AK
8943fi
8944
f11781c5
AK
8945fi
8946
90c80887
AK
8947
8948
6b2e4ec5
ZK
8949if test "x$ac_cv_func_vprintf" = xno
8950then :
8951 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
8952if test "x$ac_cv_func__doprnt" = xyes
8953then :
90c80887 8954
6b2e4ec5 8955printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
90c80887 8956
f11781c5 8957fi
90c80887 8958
6b2e4ec5 8959fi
90c80887 8960
d62448cb 8961################################################################################
6b2e4ec5
ZK
8962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable dependency tracking" >&5
8963printf %s "checking whether to enable dependency tracking... " >&6; }
d62448cb 8964# Check whether --enable-dependency-tracking was given.
6b2e4ec5
ZK
8965if test ${enable_dependency_tracking+y}
8966then :
d62448cb 8967 enableval=$enable_dependency_tracking; USE_TRACKING=$enableval
635df748
ZK
8968else case e in #(
8969 e) USE_TRACKING="yes" ;;
8970esac
d62448cb
ZK
8971fi
8972
6b2e4ec5
ZK
8973{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_TRACKING" >&5
8974printf "%s\n" "$USE_TRACKING" >&6; }
d62448cb 8975
fa58fc32 8976################################################################################
6b2e4ec5
ZK
8977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build silently" >&5
8978printf %s "checking whether to build silently... " >&6; }
fa58fc32 8979# Check whether --enable-silent-rules was given.
6b2e4ec5
ZK
8980if test ${enable_silent_rules+y}
8981then :
fa58fc32 8982 enableval=$enable_silent_rules; SILENT_RULES=$enableval
635df748
ZK
8983else case e in #(
8984 e) SILENT_RULES="yes" ;;
8985esac
fa58fc32
ZK
8986fi
8987
6b2e4ec5
ZK
8988{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SILENT_RULES" >&5
8989printf "%s\n" "$SILENT_RULES" >&6; }
fa58fc32
ZK
8990
8991
f11781c5 8992################################################################################
6b2e4ec5
ZK
8993{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use static linking" >&5
8994printf %s "checking whether to use static linking... " >&6; }
f11781c5 8995# Check whether --enable-static_link was given.
6b2e4ec5
ZK
8996if test ${enable_static_link+y}
8997then :
f11781c5 8998 enableval=$enable_static_link; STATIC_LINK=$enableval
635df748
ZK
8999else case e in #(
9000 e) STATIC_LINK="no" ;;
9001esac
f11781c5 9002fi
90c80887 9003
6b2e4ec5
ZK
9004{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STATIC_LINK" >&5
9005printf "%s\n" "$STATIC_LINK" >&6; }
90c80887 9006
8b8b8ac1
ZK
9007################################################################################
9008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dynamic linking" >&5
9009printf %s "checking whether to use dynamic linking... " >&6; }
9010# Check whether --enable-shared was given.
9011if test ${enable_shared+y}
9012then :
9013 enableval=$enable_shared; SHARED_LINK=$enableval
635df748
ZK
9014else case e in #(
9015 e) SHARED_LINK="yes" ;;
9016esac
8b8b8ac1
ZK
9017fi
9018
9019{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SHARED_LINK" >&5
9020printf "%s\n" "$SHARED_LINK" >&6; }
9021
6c6bcc00
PR
9022################################################################################
9023
9024
9025 ac_save_CFLAGS=$CFLAGS
9026 CFLAGS=-pie
6b2e4ec5
ZK
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -pie flag" >&5
9028printf %s "checking whether $CC accepts -pie flag... " >&6; }
9029if test ${ac_cv_flag_HAVE_PIE+y}
9030then :
9031 printf %s "(cached) " >&6
635df748
ZK
9032else case e in #(
9033 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6c6bcc00
PR
9034/* end confdefs.h. */
9035
9036int
6b2e4ec5 9037main (void)
6c6bcc00
PR
9038{
9039
9040 ;
9041 return 0;
9042}
9043_ACEOF
6b2e4ec5
ZK
9044if ac_fn_c_try_compile "$LINENO"
9045then :
6c6bcc00 9046 ac_cv_flag_HAVE_PIE=yes
635df748
ZK
9047else case e in #(
9048 e) ac_cv_flag_HAVE_PIE=no ;;
9049esac
6c6bcc00 9050fi
635df748
ZK
9051rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9052esac
6c6bcc00 9053fi
6b2e4ec5
ZK
9054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_PIE" >&5
9055printf "%s\n" "$ac_cv_flag_HAVE_PIE" >&6; }
6c6bcc00
PR
9056 CFLAGS=$ac_save_CFLAGS
9057 HAVE_PIE=$ac_cv_flag_HAVE_PIE
9058 if test "HAVE_PIE" = yes; then
9059 :
9060 else
9061 :
9062 fi
9063
9064
9065
9066
9067 ac_save_LDFLAGS=$LDFLAGS
f569ac59
ZK
9068 LDFLAGS=-Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed
9069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags" >&5
9070printf %s "checking whether $CC accepts -Wl,-z,relro,-z,now,-z,pack-relative-relocs,--as-needed ld flags... " >&6; }
6b2e4ec5
ZK
9071if test ${ac_cv_flag_HAVE_FULL_RELRO+y}
9072then :
9073 printf %s "(cached) " >&6
635df748
ZK
9074else case e in #(
9075 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6c6bcc00
PR
9076/* end confdefs.h. */
9077
9078int
6b2e4ec5 9079main (void)
6c6bcc00
PR
9080{
9081
9082 ;
9083 return 0;
9084}
9085_ACEOF
6b2e4ec5
ZK
9086if ac_fn_c_try_link "$LINENO"
9087then :
6c6bcc00 9088 ac_cv_flag_HAVE_FULL_RELRO=yes
635df748
ZK
9089else case e in #(
9090 e) ac_cv_flag_HAVE_FULL_RELRO=no ;;
9091esac
6c6bcc00 9092fi
6b2e4ec5 9093rm -f core conftest.err conftest.$ac_objext conftest.beam \
635df748
ZK
9094 conftest$ac_exeext conftest.$ac_ext ;;
9095esac
6c6bcc00 9096fi
6b2e4ec5
ZK
9097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_FULL_RELRO" >&5
9098printf "%s\n" "$ac_cv_flag_HAVE_FULL_RELRO" >&6; }
28939dba 9099 LDFLAGS=$ac_save_LDFLAGS
6c6bcc00
PR
9100 HAVE_FULL_RELRO=$ac_cv_flag_HAVE_FULL_RELRO
9101 if test "HAVE_FULL_RELRO" = yes; then
9102 :
9103 else
9104 :
9105 fi
9106
9107
9108
f11781c5 9109################################################################################
90c80887 9110
3f59969c
ZK
9111
9112################################################################################
b681b774 9113test "$exec_prefix" = "NONE" && test "$prefix" = "NONE" && exec_prefix=""
3f59969c 9114
b681b774 9115test "$prefix" = "NONE" && prefix=$ac_default_prefix
3f59969c 9116# Let make expand exec_prefix.
b681b774 9117test "$exec_prefix" = "NONE" && exec_prefix='${prefix}'
3f59969c 9118
8b8b8ac1
ZK
9119
9120
9121# Check whether --with-blkid was given.
9122if test ${with_blkid+y}
9123then :
9124 withval=$with_blkid;
635df748
ZK
9125else case e in #(
9126 e) with_blkid="yes" ;;
9127esac
8b8b8ac1
ZK
9128fi
9129
9130
9131# Check whether --with-systemd was given.
9132if test ${with_systemd+y}
9133then :
9134 withval=$with_systemd;
635df748
ZK
9135else case e in #(
9136 e) with_systemd="yes" ;;
9137esac
8b8b8ac1
ZK
9138fi
9139
9140
9141# Check whether --with-udev was given.
9142if test ${with_udev+y}
9143then :
9144 withval=$with_udev;
635df748
ZK
9145else case e in #(
9146 e) with_udev="yes" ;;
9147esac
8b8b8ac1
ZK
9148fi
9149
9150
f11781c5 9151################################################################################
6b2e4ec5
ZK
9152{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking file owner" >&5
9153printf %s "checking file owner... " >&6; }
90c80887 9154
f11781c5 9155# Check whether --with-user was given.
6b2e4ec5
ZK
9156if test ${with_user+y}
9157then :
f11781c5
AK
9158 withval=$with_user; OWNER=$withval
9159fi
90c80887 9160
6b2e4ec5
ZK
9161{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OWNER" >&5
9162printf "%s\n" "$OWNER" >&6; }
1b59f5a9 9163test -n "$OWNER" && INSTALL="$INSTALL -o $OWNER"
a946372e 9164
f11781c5 9165################################################################################
6b2e4ec5
ZK
9166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking group owner" >&5
9167printf %s "checking group owner... " >&6; }
a946372e 9168
f11781c5 9169# Check whether --with-group was given.
6b2e4ec5
ZK
9170if test ${with_group+y}
9171then :
f11781c5 9172 withval=$with_group; GROUP=$withval
a946372e 9173fi
f11781c5 9174
6b2e4ec5
ZK
9175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GROUP" >&5
9176printf "%s\n" "$GROUP" >&6; }
1b59f5a9 9177test -n "$GROUP" && INSTALL="$INSTALL -g $GROUP"
f11781c5
AK
9178
9179################################################################################
6b2e4ec5
ZK
9180{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node uid" >&5
9181printf %s "checking device node uid... " >&6; }
f11781c5
AK
9182
9183
9184# Check whether --with-device-uid was given.
6b2e4ec5
ZK
9185if test ${with_device_uid+y}
9186then :
f11781c5 9187 withval=$with_device_uid; DM_DEVICE_UID=$withval
635df748
ZK
9188else case e in #(
9189 e) DM_DEVICE_UID=0 ;;
9190esac
a946372e
AK
9191fi
9192
6b2e4ec5
ZK
9193{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_UID" >&5
9194printf "%s\n" "$DM_DEVICE_UID" >&6; }
a946372e 9195
6b2e4ec5 9196printf "%s\n" "#define DM_DEVICE_UID $DM_DEVICE_UID" >>confdefs.h
fe00b163
ZK
9197
9198
f11781c5 9199################################################################################
6b2e4ec5
ZK
9200{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node gid" >&5
9201printf %s "checking device node gid... " >&6; }
a946372e 9202
a946372e 9203
f11781c5 9204# Check whether --with-device-gid was given.
6b2e4ec5
ZK
9205if test ${with_device_gid+y}
9206then :
f11781c5 9207 withval=$with_device_gid; DM_DEVICE_GID=$withval
635df748
ZK
9208else case e in #(
9209 e) DM_DEVICE_GID=0 ;;
9210esac
a946372e 9211fi
a946372e 9212
6b2e4ec5
ZK
9213{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_GID" >&5
9214printf "%s\n" "$DM_DEVICE_GID" >&6; }
90c80887 9215
6b2e4ec5 9216printf "%s\n" "#define DM_DEVICE_GID $DM_DEVICE_GID" >>confdefs.h
fe00b163
ZK
9217
9218
f11781c5 9219################################################################################
6b2e4ec5
ZK
9220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking device node mode" >&5
9221printf %s "checking device node mode... " >&6; }
90c80887 9222
90c80887 9223
f11781c5 9224# Check whether --with-device-mode was given.
6b2e4ec5
ZK
9225if test ${with_device_mode+y}
9226then :
f11781c5 9227 withval=$with_device_mode; DM_DEVICE_MODE=$withval
635df748
ZK
9228else case e in #(
9229 e) DM_DEVICE_MODE=0600 ;;
9230esac
f11781c5 9231fi
90c80887 9232
6b2e4ec5
ZK
9233{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DM_DEVICE_MODE" >&5
9234printf "%s\n" "$DM_DEVICE_MODE" >&6; }
90c80887 9235
6b2e4ec5 9236printf "%s\n" "#define DM_DEVICE_MODE $DM_DEVICE_MODE" >>confdefs.h
fe00b163
ZK
9237
9238
6b2e4ec5
ZK
9239{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking when to create device nodes" >&5
9240printf %s "checking when to create device nodes... " >&6; }
d0df875d
ZK
9241
9242# Check whether --with-device-nodes-on was given.
6b2e4ec5
ZK
9243if test ${with_device_nodes_on+y}
9244then :
d0df875d 9245 withval=$with_device_nodes_on; ADD_NODE=$withval
635df748
ZK
9246else case e in #(
9247 e) ADD_NODE=resume ;;
9248esac
d0df875d
ZK
9249fi
9250
b681b774
ZK
9251case "$ADD_NODE" in #(
9252 resume) :
9253 add_on=DM_ADD_NODE_ON_RESUME ;; #(
9254 create) :
9255 add_on=DM_ADD_NODE_ON_CREATE ;; #(
9256 *) :
9257 as_fn_error $? "--with-device-nodes-on parameter invalid" "$LINENO" 5 ;;
d0df875d 9258esac
6b2e4ec5
ZK
9259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: on $ADD_NODE" >&5
9260printf "%s\n" "on $ADD_NODE" >&6; }
d0df875d 9261
6b2e4ec5 9262printf "%s\n" "#define DEFAULT_DM_ADD_NODE $add_on" >>confdefs.h
d0df875d
ZK
9263
9264
b73e1cd4 9265
6b2e4ec5
ZK
9266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for use_devicesfile" >&5
9267printf %s "checking default for use_devicesfile... " >&6; }
b73e1cd4
ZK
9268
9269# Check whether --with-default-use-devices-file was given.
6b2e4ec5
ZK
9270if test ${with_default_use_devices_file+y}
9271then :
8aefd972 9272 withval=$with_default_use_devices_file; DEFAULT_USE_DEVICES_FILE=$withval
635df748
ZK
9273else case e in #(
9274 e) DEFAULT_USE_DEVICES_FILE=0 ;;
9275esac
b73e1cd4 9276fi
c60bac46 9277
b681b774
ZK
9278case "$DEFAULT_USE_DEVICES_FILE" in #(
9279 0|1) :
9280 ;; #(
9281 *) :
9282 as_fn_error $? "--with-default-use-devices-file parameter invalid" "$LINENO" 5 ;;
b73e1cd4 9283esac
6b2e4ec5
ZK
9284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_DEVICES_FILE" >&5
9285printf "%s\n" "$DEFAULT_USE_DEVICES_FILE" >&6; }
b73e1cd4 9286
6b2e4ec5 9287printf "%s\n" "#define DEFAULT_USE_DEVICES_FILE $DEFAULT_USE_DEVICES_FILE" >>confdefs.h
b73e1cd4
ZK
9288
9289
6b2e4ec5
ZK
9290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default name mangling" >&5
9291printf %s "checking default name mangling... " >&6; }
c64d7cd3
PR
9292
9293# Check whether --with-default-name-mangling was given.
6b2e4ec5
ZK
9294if test ${with_default_name_mangling+y}
9295then :
c64d7cd3 9296 withval=$with_default_name_mangling; MANGLING=$withval
635df748
ZK
9297else case e in #(
9298 e) MANGLING=auto ;;
9299esac
c64d7cd3
PR
9300fi
9301
b681b774
ZK
9302case "$MANGLING" in #(
9303 auto) :
9304 mangling=DM_STRING_MANGLING_AUTO ;; #(
9305 no|none|disabled) :
9306 mangling=DM_STRING_MANGLING_NONE ;; #(
9307 hex) :
9308 mangling=DM_STRING_MANGLING_HEX ;; #(
9309 *) :
9310 as_fn_error $? "--with-default-name-mangling parameter invalid" "$LINENO" 5 ;;
c64d7cd3 9311esac
6b2e4ec5
ZK
9312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANGLING" >&5
9313printf "%s\n" "$MANGLING" >&6; }
c64d7cd3 9314
6b2e4ec5 9315printf "%s\n" "#define DEFAULT_DM_NAME_MANGLING $mangling" >>confdefs.h
c64d7cd3
PR
9316
9317
cd9b2b32
ZK
9318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default for event_activation" >&5
9319printf %s "checking default for event_activation... " >&6; }
9320
9321# Check whether --with-default-event-activation was given.
9322if test ${with_default_event_activation+y}
9323then :
9324 withval=$with_default_event_activation; DEFAULT_EVENT_ACTIVATION=$withval
9325else case e in #(
9326 e) DEFAULT_EVENT_ACTIVATION=1 ;;
9327esac
9328fi
9329
9330case "$DEFAULT_EVENT_ACTIVATION" in #(
9331 0|1) :
9332 ;; #(
9333 *) :
9334 as_fn_error $? "--with-default-event-activation parameter invalid" "$LINENO" 5 ;;
9335esac
9336{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_EVENT_ACTIVATION" >&5
9337printf "%s\n" "$DEFAULT_EVENT_ACTIVATION" >&6; }
9338
9339printf "%s\n" "#define DEFAULT_EVENT_ACTIVATION $DEFAULT_EVENT_ACTIVATION" >>confdefs.h
9340
9341
f11781c5 9342################################################################################
6b2e4ec5
ZK
9343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include snapshots" >&5
9344printf %s "checking whether to include snapshots... " >&6; }
f11781c5
AK
9345
9346# Check whether --with-snapshots was given.
6b2e4ec5
ZK
9347if test ${with_snapshots+y}
9348then :
f11781c5 9349 withval=$with_snapshots; SNAPSHOTS=$withval
635df748
ZK
9350else case e in #(
9351 e) SNAPSHOTS=internal ;;
9352esac
fddafd51
ZK
9353fi
9354
6b2e4ec5
ZK
9355{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SNAPSHOTS" >&5
9356printf "%s\n" "$SNAPSHOTS" >&6; }
fddafd51 9357
b681b774
ZK
9358case "$SNAPSHOTS" in #(
9359 no|none|shared) :
9360 ;; #(
9361 internal) :
9362
9363
6b2e4ec5 9364printf "%s\n" "#define SNAPSHOT_INTERNAL 1" >>confdefs.h
b681b774
ZK
9365 ;; #(
9366 *) :
9367 as_fn_error $? "--with-snapshots parameter invalid" "$LINENO" 5 ;;
1b59f5a9 9368esac
f11781c5
AK
9369
9370################################################################################
6b2e4ec5
ZK
9371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include mirrors" >&5
9372printf %s "checking whether to include mirrors... " >&6; }
f11781c5
AK
9373
9374# Check whether --with-mirrors was given.
6b2e4ec5
ZK
9375if test ${with_mirrors+y}
9376then :
f11781c5 9377 withval=$with_mirrors; MIRRORS=$withval
635df748
ZK
9378else case e in #(
9379 e) MIRRORS=internal ;;
9380esac
fddafd51
ZK
9381fi
9382
6b2e4ec5
ZK
9383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MIRRORS" >&5
9384printf "%s\n" "$MIRRORS" >&6; }
fddafd51 9385
b681b774
ZK
9386case "$MIRRORS" in #(
9387 no|none|shared) :
9388 ;; #(
9389 internal) :
9390
9391
6b2e4ec5 9392printf "%s\n" "#define MIRRORED_INTERNAL 1" >>confdefs.h
b681b774
ZK
9393 ;; #(
9394 *) :
9395 as_fn_error $? "--with-mirrors parameter invalid" "$LINENO" 5 ;;
1b59f5a9 9396esac
f11781c5 9397
cac52ca4 9398################################################################################
e6e64748
ZK
9399
9400# Check whether --with-default-mirror-segtype was given.
6b2e4ec5
ZK
9401if test ${with_default_mirror_segtype+y}
9402then :
e6e64748 9403 withval=$with_default_mirror_segtype; DEFAULT_MIRROR_SEGTYPE=$withval
635df748
ZK
9404else case e in #(
9405 e) DEFAULT_MIRROR_SEGTYPE="raid1" ;;
9406esac
e6e64748
ZK
9407fi
9408
9409
f80e7bb6 9410# Check whether --with-default-raid10-segtype was given.
6b2e4ec5
ZK
9411if test ${with_default_raid10_segtype+y}
9412then :
f80e7bb6 9413 withval=$with_default_raid10_segtype; DEFAULT_RAID10_SEGTYPE=$withval
635df748
ZK
9414else case e in #(
9415 e) DEFAULT_RAID10_SEGTYPE="raid10" ;;
9416esac
e6e64748
ZK
9417fi
9418
b393fbec
JT
9419
9420
6b2e4ec5 9421printf "%s\n" "#define RAID_INTERNAL 1" >>confdefs.h
b393fbec 9422
cac52ca4 9423
e6e64748 9424
6b2e4ec5 9425printf "%s\n" "#define DEFAULT_MIRROR_SEGTYPE \"$DEFAULT_MIRROR_SEGTYPE\"" >>confdefs.h
e6e64748
ZK
9426
9427
9428
6b2e4ec5 9429printf "%s\n" "#define DEFAULT_RAID10_SEGTYPE \"$DEFAULT_RAID10_SEGTYPE\"" >>confdefs.h
e6e64748
ZK
9430
9431
f11781c5 9432################################################################################
e6e64748
ZK
9433
9434# Check whether --with-default-sparse-segtype was given.
6b2e4ec5
ZK
9435if test ${with_default_sparse_segtype+y}
9436then :
b681b774
ZK
9437 withval=$with_default_sparse_segtype;
9438 case "$withval" in #(
9439 thin|snapshot) :
9440 DEFAULT_SPARSE_SEGTYPE=$withval ;; #(
9441 *) :
9442 as_fn_error $? "--with-default-sparse-segtype parameter invalid" "$LINENO" 5 ;;
9443esac
9444
635df748
ZK
9445else case e in #(
9446 e) DEFAULT_SPARSE_SEGTYPE="thin" ;;
9447esac
e6e64748
ZK
9448fi
9449
9450
3ba4a195 9451################################################################################
6b2e4ec5
ZK
9452{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include thin provisioning" >&5
9453printf %s "checking whether to include thin provisioning... " >&6; }
3ba4a195
ZK
9454
9455# Check whether --with-thin was given.
6b2e4ec5
ZK
9456if test ${with_thin+y}
9457then :
3ba4a195 9458 withval=$with_thin; THIN=$withval
635df748
ZK
9459else case e in #(
9460 e) THIN=internal ;;
9461esac
3ba4a195
ZK
9462fi
9463
aefab64e
PR
9464
9465# Check whether --with-thin-check was given.
6b2e4ec5
ZK
9466if test ${with_thin_check+y}
9467then :
aefab64e 9468 withval=$with_thin_check; THIN_CHECK_CMD=$withval
635df748
ZK
9469else case e in #(
9470 e) THIN_CHECK_CMD="autodetect" ;;
9471esac
aefab64e
PR
9472fi
9473
9474
9475# Check whether --with-thin-dump was given.
6b2e4ec5
ZK
9476if test ${with_thin_dump+y}
9477then :
aefab64e 9478 withval=$with_thin_dump; THIN_DUMP_CMD=$withval
635df748
ZK
9479else case e in #(
9480 e) THIN_DUMP_CMD="autodetect" ;;
9481esac
aefab64e
PR
9482fi
9483
9484
9485# Check whether --with-thin-repair was given.
6b2e4ec5
ZK
9486if test ${with_thin_repair+y}
9487then :
aefab64e 9488 withval=$with_thin_repair; THIN_REPAIR_CMD=$withval
635df748
ZK
9489else case e in #(
9490 e) THIN_REPAIR_CMD="autodetect" ;;
9491esac
aefab64e
PR
9492fi
9493
9494
b3539907 9495# Check whether --with-thin-restore was given.
6b2e4ec5
ZK
9496if test ${with_thin_restore+y}
9497then :
b3539907 9498 withval=$with_thin_restore; THIN_RESTORE_CMD=$withval
635df748
ZK
9499else case e in #(
9500 e) THIN_RESTORE_CMD="autodetect" ;;
9501esac
b3539907
ZK
9502fi
9503
9504
6b2e4ec5
ZK
9505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN" >&5
9506printf "%s\n" "$THIN" >&6; }
3ba4a195 9507
b681b774
ZK
9508case "$THIN" in #(
9509 no|none) :
9510 test "$DEFAULT_SPARSE_SEGTYPE" = "thin" && DEFAULT_SPARSE_SEGTYPE="snapshot" ;; #(
9511 shared) :
9512 ;; #(
9513 internal) :
9514
9515
6b2e4ec5 9516printf "%s\n" "#define THIN_INTERNAL 1" >>confdefs.h
b681b774
ZK
9517 ;; #(
9518 *) :
9519 as_fn_error $? "--with-thin parameter invalid ($THIN)" "$LINENO" 5 ;;
3ba4a195
ZK
9520esac
9521
e6e64748 9522
6b2e4ec5 9523printf "%s\n" "#define DEFAULT_SPARSE_SEGTYPE \"$DEFAULT_SPARSE_SEGTYPE\"" >>confdefs.h
e6e64748
ZK
9524
9525
f13977e8 9526# Check whether --enable-thin_check_needs_check was given.
6b2e4ec5
ZK
9527if test ${enable_thin_check_needs_check+y}
9528then :
f13977e8 9529 enableval=$enable_thin_check_needs_check; THIN_CHECK_NEEDS_CHECK=$enableval
635df748
ZK
9530else case e in #(
9531 e) THIN_CHECK_NEEDS_CHECK="yes" ;;
9532esac
f13977e8
AK
9533fi
9534
f13977e8 9535
aefab64e
PR
9536# Test if necessary thin tools are available
9537# if not - use plain defaults and warn user
b681b774
ZK
9538case "$THIN" in #(
9539 internal|shared) :
9540
f61cacad 9541 # Empty means a config way to ignore thin checking
b681b774
ZK
9542 if test "$THIN_CHECK_CMD" = "autodetect"
9543then :
9544
aefab64e
PR
9545 if test -n "$ac_tool_prefix"; then
9546 # Extract the first word of "${ac_tool_prefix}thin_check", so it can be a program name with args.
9547set dummy ${ac_tool_prefix}thin_check; ac_word=$2
6b2e4ec5
ZK
9548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9549printf %s "checking for $ac_word... " >&6; }
9550if test ${ac_cv_path_THIN_CHECK_CMD+y}
9551then :
9552 printf %s "(cached) " >&6
635df748
ZK
9553else case e in #(
9554 e) case $THIN_CHECK_CMD in
f61cacad
ZK
9555 [\\/]* | ?:[\\/]*)
9556 ac_cv_path_THIN_CHECK_CMD="$THIN_CHECK_CMD" # Let the user override the test with a path.
9557 ;;
9558 *)
9559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 9560for as_dir in $PATH_SBIN
f61cacad
ZK
9561do
9562 IFS=$as_save_IFS
6b2e4ec5
ZK
9563 case $as_dir in #(((
9564 '') as_dir=./ ;;
9565 */) ;;
9566 *) as_dir=$as_dir/ ;;
9567 esac
f61cacad 9568 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
9569 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9570 ac_cv_path_THIN_CHECK_CMD="$as_dir$ac_word$ac_exec_ext"
9571 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f61cacad
ZK
9572 break 2
9573 fi
9574done
9575 done
9576IFS=$as_save_IFS
9577
9578 ;;
635df748 9579esac ;;
f61cacad
ZK
9580esac
9581fi
9582THIN_CHECK_CMD=$ac_cv_path_THIN_CHECK_CMD
9583if test -n "$THIN_CHECK_CMD"; then
6b2e4ec5
ZK
9584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_CMD" >&5
9585printf "%s\n" "$THIN_CHECK_CMD" >&6; }
f61cacad 9586else
6b2e4ec5
ZK
9587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9588printf "%s\n" "no" >&6; }
f61cacad
ZK
9589fi
9590
9591
aefab64e
PR
9592fi
9593if test -z "$ac_cv_path_THIN_CHECK_CMD"; then
9594 ac_pt_THIN_CHECK_CMD=$THIN_CHECK_CMD
9595 # Extract the first word of "thin_check", so it can be a program name with args.
9596set dummy thin_check; ac_word=$2
6b2e4ec5
ZK
9597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9598printf %s "checking for $ac_word... " >&6; }
9599if test ${ac_cv_path_ac_pt_THIN_CHECK_CMD+y}
9600then :
9601 printf %s "(cached) " >&6
635df748
ZK
9602else case e in #(
9603 e) case $ac_pt_THIN_CHECK_CMD in
aefab64e
PR
9604 [\\/]* | ?:[\\/]*)
9605 ac_cv_path_ac_pt_THIN_CHECK_CMD="$ac_pt_THIN_CHECK_CMD" # Let the user override the test with a path.
9606 ;;
9607 *)
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 9609for as_dir in $PATH_SBIN
aefab64e
PR
9610do
9611 IFS=$as_save_IFS
6b2e4ec5
ZK
9612 case $as_dir in #(((
9613 '') as_dir=./ ;;
9614 */) ;;
9615 *) as_dir=$as_dir/ ;;
9616 esac
aefab64e 9617 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
9618 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9619 ac_cv_path_ac_pt_THIN_CHECK_CMD="$as_dir$ac_word$ac_exec_ext"
9620 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
aefab64e
PR
9621 break 2
9622 fi
9623done
9624 done
9625IFS=$as_save_IFS
22fc8098 9626
aefab64e 9627 ;;
635df748 9628esac ;;
aefab64e
PR
9629esac
9630fi
9631ac_pt_THIN_CHECK_CMD=$ac_cv_path_ac_pt_THIN_CHECK_CMD
9632if test -n "$ac_pt_THIN_CHECK_CMD"; then
6b2e4ec5
ZK
9633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_CHECK_CMD" >&5
9634printf "%s\n" "$ac_pt_THIN_CHECK_CMD" >&6; }
22fc8098 9635else
6b2e4ec5
ZK
9636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9637printf "%s\n" "no" >&6; }
aefab64e
PR
9638fi
9639
9640 if test "x$ac_pt_THIN_CHECK_CMD" = x; then
131693c4 9641 THIN_CHECK_CMD=""
aefab64e
PR
9642 else
9643 case $cross_compiling:$ac_tool_warned in
9644yes:)
6b2e4ec5
ZK
9645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9646printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
aefab64e
PR
9647ac_tool_warned=yes ;;
9648esac
9649 THIN_CHECK_CMD=$ac_pt_THIN_CHECK_CMD
9650 fi
9651else
9652 THIN_CHECK_CMD="$ac_cv_path_THIN_CHECK_CMD"
22fc8098
ZK
9653fi
9654
b681b774
ZK
9655 if test -z "$THIN_CHECK_CMD"
9656then :
9657
07cd341b
ZK
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: thin_check not found in path $PATH_SBIN" >&5
9659printf "%s\n" "$as_me: WARNING: thin_check not found in path $PATH_SBIN" >&2;}
b681b774
ZK
9660 THIN_CHECK_CMD="/usr/sbin/thin_check"
9661 THIN_CONFIGURE_WARN="y"
9662
9663fi
9664
9665fi
9666 if test "$THIN_CHECK_NEEDS_CHECK" = "yes" && test "$THIN_CONFIGURE_WARN" != "y"
9667then :
9668
9669 THIN_CHECK_VSN=$("$THIN_CHECK_CMD" -V 2>/dev/null)
8b8b8ac1 9670 THIN_CHECK_VSN=${THIN_CHECK_VSN##* } # trim away all before the first space
b681b774
ZK
9671 THIN_CHECK_VSN_MAJOR=$(echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $1}')
9672 THIN_CHECK_VSN_MINOR=$(echo "$THIN_CHECK_VSN" | $AWK -F '.' '{print $2}')
9673
9674 if test -z "$THIN_CHECK_VSN_MAJOR" || test -z "$THIN_CHECK_VSN_MINOR"
9675then :
2e1192f6 9676
6b2e4ec5
ZK
9677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&5
9678printf "%s\n" "$as_me: WARNING: $THIN_CHECK_CMD: Bad version \"$THIN_CHECK_VSN\" found" >&2;}
b681b774
ZK
9679 THIN_CHECK_VERSION_WARN="y"
9680 THIN_CHECK_NEEDS_CHECK="no"
9681
9682elif test "$THIN_CHECK_VSN_MAJOR" -eq 0 && test "$THIN_CHECK_VSN_MINOR" -lt 3
9683then :
9684
6b2e4ec5
ZK
9685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&5
9686printf "%s\n" "$as_me: WARNING: $THIN_CHECK_CMD: Old version \"$THIN_CHECK_VSN\" found" >&2;}
b681b774
ZK
9687 THIN_CHECK_VERSION_WARN="y"
9688 THIN_CHECK_NEEDS_CHECK="no"
9689
9690fi
9691
9692fi
39cb8aa3 9693 # Empty means a config way to ignore thin dumping
b681b774
ZK
9694 if test "$THIN_DUMP_CMD" = "autodetect"
9695then :
9696
aefab64e
PR
9697 if test -n "$ac_tool_prefix"; then
9698 # Extract the first word of "${ac_tool_prefix}thin_dump", so it can be a program name with args.
9699set dummy ${ac_tool_prefix}thin_dump; ac_word=$2
6b2e4ec5
ZK
9700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9701printf %s "checking for $ac_word... " >&6; }
9702if test ${ac_cv_path_THIN_DUMP_CMD+y}
9703then :
9704 printf %s "(cached) " >&6
635df748
ZK
9705else case e in #(
9706 e) case $THIN_DUMP_CMD in
22fc8098
ZK
9707 [\\/]* | ?:[\\/]*)
9708 ac_cv_path_THIN_DUMP_CMD="$THIN_DUMP_CMD" # Let the user override the test with a path.
9709 ;;
9710 *)
9711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 9712for as_dir in $PATH_SBIN
22fc8098
ZK
9713do
9714 IFS=$as_save_IFS
6b2e4ec5
ZK
9715 case $as_dir in #(((
9716 '') as_dir=./ ;;
9717 */) ;;
9718 *) as_dir=$as_dir/ ;;
9719 esac
22fc8098 9720 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
9721 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9722 ac_cv_path_THIN_DUMP_CMD="$as_dir$ac_word$ac_exec_ext"
9723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22fc8098
ZK
9724 break 2
9725 fi
9726done
9727 done
9728IFS=$as_save_IFS
9729
9730 ;;
635df748 9731esac ;;
22fc8098
ZK
9732esac
9733fi
9734THIN_DUMP_CMD=$ac_cv_path_THIN_DUMP_CMD
9735if test -n "$THIN_DUMP_CMD"; then
6b2e4ec5
ZK
9736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_DUMP_CMD" >&5
9737printf "%s\n" "$THIN_DUMP_CMD" >&6; }
22fc8098 9738else
6b2e4ec5
ZK
9739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9740printf "%s\n" "no" >&6; }
22fc8098
ZK
9741fi
9742
9743
aefab64e
PR
9744fi
9745if test -z "$ac_cv_path_THIN_DUMP_CMD"; then
9746 ac_pt_THIN_DUMP_CMD=$THIN_DUMP_CMD
9747 # Extract the first word of "thin_dump", so it can be a program name with args.
9748set dummy thin_dump; ac_word=$2
6b2e4ec5
ZK
9749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9750printf %s "checking for $ac_word... " >&6; }
9751if test ${ac_cv_path_ac_pt_THIN_DUMP_CMD+y}
9752then :
9753 printf %s "(cached) " >&6
635df748
ZK
9754else case e in #(
9755 e) case $ac_pt_THIN_DUMP_CMD in
aefab64e
PR
9756 [\\/]* | ?:[\\/]*)
9757 ac_cv_path_ac_pt_THIN_DUMP_CMD="$ac_pt_THIN_DUMP_CMD" # Let the user override the test with a path.
9758 ;;
9759 *)
9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 9761for as_dir in $PATH_SBIN
aefab64e
PR
9762do
9763 IFS=$as_save_IFS
6b2e4ec5
ZK
9764 case $as_dir in #(((
9765 '') as_dir=./ ;;
9766 */) ;;
9767 *) as_dir=$as_dir/ ;;
9768 esac
aefab64e 9769 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
9770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9771 ac_cv_path_ac_pt_THIN_DUMP_CMD="$as_dir$ac_word$ac_exec_ext"
9772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
aefab64e
PR
9773 break 2
9774 fi
9775done
9776 done
9777IFS=$as_save_IFS
22fc8098 9778
aefab64e 9779 ;;
635df748 9780esac ;;
aefab64e
PR
9781esac
9782fi
9783ac_pt_THIN_DUMP_CMD=$ac_cv_path_ac_pt_THIN_DUMP_CMD
9784if test -n "$ac_pt_THIN_DUMP_CMD"; then
6b2e4ec5
ZK
9785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_DUMP_CMD" >&5
9786printf "%s\n" "$ac_pt_THIN_DUMP_CMD" >&6; }
aefab64e 9787else
6b2e4ec5
ZK
9788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9789printf "%s\n" "no" >&6; }
aefab64e
PR
9790fi
9791
9792 if test "x$ac_pt_THIN_DUMP_CMD" = x; then
131693c4 9793 THIN_DUMP_CMD=""
aefab64e
PR
9794 else
9795 case $cross_compiling:$ac_tool_warned in
9796yes:)
6b2e4ec5
ZK
9797{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9798printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
aefab64e
PR
9799ac_tool_warned=yes ;;
9800esac
9801 THIN_DUMP_CMD=$ac_pt_THIN_DUMP_CMD
9802 fi
22fc8098 9803else
aefab64e 9804 THIN_DUMP_CMD="$ac_cv_path_THIN_DUMP_CMD"
22fc8098
ZK
9805fi
9806
b681b774
ZK
9807 if test -z "$THIN_DUMP_CMD"
9808then :
9809
07cd341b
ZK
9810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&5
9811printf "%s\n" "$as_me: WARNING: \"thin_dump not found in path $PATH_SBIN\"" >&2;}
b681b774
ZK
9812 THIN_DUMP_CMD="/usr/sbin/thin_dump"
9813 THIN_CONFIGURE_WARN="y"
9814
9815fi
9816
9817fi
39cb8aa3 9818 # Empty means a config way to ignore thin repairing
b681b774
ZK
9819 if test "$THIN_REPAIR_CMD" = "autodetect"
9820then :
9821
aefab64e
PR
9822 if test -n "$ac_tool_prefix"; then
9823 # Extract the first word of "${ac_tool_prefix}thin_repair", so it can be a program name with args.
9824set dummy ${ac_tool_prefix}thin_repair; ac_word=$2
6b2e4ec5
ZK
9825{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9826printf %s "checking for $ac_word... " >&6; }
9827if test ${ac_cv_path_THIN_REPAIR_CMD+y}
9828then :
9829 printf %s "(cached) " >&6
635df748
ZK
9830else case e in #(
9831 e) case $THIN_REPAIR_CMD in
22fc8098
ZK
9832 [\\/]* | ?:[\\/]*)
9833 ac_cv_path_THIN_REPAIR_CMD="$THIN_REPAIR_CMD" # Let the user override the test with a path.
9834 ;;
9835 *)
9836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 9837for as_dir in $PATH_SBIN
22fc8098
ZK
9838do
9839 IFS=$as_save_IFS
6b2e4ec5
ZK
9840 case $as_dir in #(((
9841 '') as_dir=./ ;;
9842 */) ;;
9843 *) as_dir=$as_dir/ ;;
9844 esac
22fc8098 9845 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
9846 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9847 ac_cv_path_THIN_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext"
9848 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22fc8098
ZK
9849 break 2
9850 fi
9851done
9852 done
9853IFS=$as_save_IFS
9854
9855 ;;
635df748 9856esac ;;
22fc8098
ZK
9857esac
9858fi
9859THIN_REPAIR_CMD=$ac_cv_path_THIN_REPAIR_CMD
9860if test -n "$THIN_REPAIR_CMD"; then
6b2e4ec5
ZK
9861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_REPAIR_CMD" >&5
9862printf "%s\n" "$THIN_REPAIR_CMD" >&6; }
22fc8098 9863else
6b2e4ec5
ZK
9864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9865printf "%s\n" "no" >&6; }
22fc8098
ZK
9866fi
9867
9868
aefab64e
PR
9869fi
9870if test -z "$ac_cv_path_THIN_REPAIR_CMD"; then
9871 ac_pt_THIN_REPAIR_CMD=$THIN_REPAIR_CMD
9872 # Extract the first word of "thin_repair", so it can be a program name with args.
9873set dummy thin_repair; ac_word=$2
6b2e4ec5
ZK
9874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9875printf %s "checking for $ac_word... " >&6; }
9876if test ${ac_cv_path_ac_pt_THIN_REPAIR_CMD+y}
9877then :
9878 printf %s "(cached) " >&6
635df748
ZK
9879else case e in #(
9880 e) case $ac_pt_THIN_REPAIR_CMD in
aefab64e
PR
9881 [\\/]* | ?:[\\/]*)
9882 ac_cv_path_ac_pt_THIN_REPAIR_CMD="$ac_pt_THIN_REPAIR_CMD" # Let the user override the test with a path.
9883 ;;
9884 *)
9885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 9886for as_dir in $PATH_SBIN
aefab64e
PR
9887do
9888 IFS=$as_save_IFS
6b2e4ec5
ZK
9889 case $as_dir in #(((
9890 '') as_dir=./ ;;
9891 */) ;;
9892 *) as_dir=$as_dir/ ;;
9893 esac
aefab64e 9894 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
9895 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9896 ac_cv_path_ac_pt_THIN_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext"
9897 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
aefab64e
PR
9898 break 2
9899 fi
9900done
9901 done
9902IFS=$as_save_IFS
9903
9904 ;;
635df748 9905esac ;;
aefab64e
PR
9906esac
9907fi
9908ac_pt_THIN_REPAIR_CMD=$ac_cv_path_ac_pt_THIN_REPAIR_CMD
9909if test -n "$ac_pt_THIN_REPAIR_CMD"; then
6b2e4ec5
ZK
9910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_REPAIR_CMD" >&5
9911printf "%s\n" "$ac_pt_THIN_REPAIR_CMD" >&6; }
aefab64e 9912else
6b2e4ec5
ZK
9913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9914printf "%s\n" "no" >&6; }
aefab64e
PR
9915fi
9916
9917 if test "x$ac_pt_THIN_REPAIR_CMD" = x; then
9918 THIN_REPAIR_CMD=""
9919 else
9920 case $cross_compiling:$ac_tool_warned in
9921yes:)
6b2e4ec5
ZK
9922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9923printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
aefab64e
PR
9924ac_tool_warned=yes ;;
9925esac
9926 THIN_REPAIR_CMD=$ac_pt_THIN_REPAIR_CMD
9927 fi
9928else
9929 THIN_REPAIR_CMD="$ac_cv_path_THIN_REPAIR_CMD"
9930fi
9931
b681b774
ZK
9932 if test -z "$THIN_REPAIR_CMD"
9933then :
9934
07cd341b
ZK
9935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&5
9936printf "%s\n" "$as_me: WARNING: \"thin_repair not found in path $PATH_SBIN\"" >&2;}
b681b774
ZK
9937 THIN_REPAIR_CMD="/usr/sbin/thin_repair"
9938 THIN_CONFIGURE_WARN="y"
9939
9940fi
9941
9942fi
39cb8aa3 9943 # Empty means a config way to ignore thin restoring
b681b774
ZK
9944 if test "$THIN_RESTORE_CMD" = "autodetect"
9945then :
9946
b3539907
ZK
9947 if test -n "$ac_tool_prefix"; then
9948 # Extract the first word of "${ac_tool_prefix}thin_restore", so it can be a program name with args.
9949set dummy ${ac_tool_prefix}thin_restore; ac_word=$2
6b2e4ec5
ZK
9950{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9951printf %s "checking for $ac_word... " >&6; }
9952if test ${ac_cv_path_THIN_RESTORE_CMD+y}
9953then :
9954 printf %s "(cached) " >&6
635df748
ZK
9955else case e in #(
9956 e) case $THIN_RESTORE_CMD in
b3539907
ZK
9957 [\\/]* | ?:[\\/]*)
9958 ac_cv_path_THIN_RESTORE_CMD="$THIN_RESTORE_CMD" # Let the user override the test with a path.
9959 ;;
9960 *)
9961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 9962for as_dir in $PATH_SBIN
b3539907
ZK
9963do
9964 IFS=$as_save_IFS
6b2e4ec5
ZK
9965 case $as_dir in #(((
9966 '') as_dir=./ ;;
9967 */) ;;
9968 *) as_dir=$as_dir/ ;;
9969 esac
b3539907 9970 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
9971 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9972 ac_cv_path_THIN_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext"
9973 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
b3539907
ZK
9974 break 2
9975 fi
9976done
9977 done
9978IFS=$as_save_IFS
9979
9980 ;;
635df748 9981esac ;;
b3539907
ZK
9982esac
9983fi
9984THIN_RESTORE_CMD=$ac_cv_path_THIN_RESTORE_CMD
9985if test -n "$THIN_RESTORE_CMD"; then
6b2e4ec5
ZK
9986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_RESTORE_CMD" >&5
9987printf "%s\n" "$THIN_RESTORE_CMD" >&6; }
b3539907 9988else
6b2e4ec5
ZK
9989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9990printf "%s\n" "no" >&6; }
b3539907
ZK
9991fi
9992
9993
9994fi
9995if test -z "$ac_cv_path_THIN_RESTORE_CMD"; then
9996 ac_pt_THIN_RESTORE_CMD=$THIN_RESTORE_CMD
9997 # Extract the first word of "thin_restore", so it can be a program name with args.
9998set dummy thin_restore; ac_word=$2
6b2e4ec5
ZK
9999{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10000printf %s "checking for $ac_word... " >&6; }
10001if test ${ac_cv_path_ac_pt_THIN_RESTORE_CMD+y}
10002then :
10003 printf %s "(cached) " >&6
635df748
ZK
10004else case e in #(
10005 e) case $ac_pt_THIN_RESTORE_CMD in
b3539907
ZK
10006 [\\/]* | ?:[\\/]*)
10007 ac_cv_path_ac_pt_THIN_RESTORE_CMD="$ac_pt_THIN_RESTORE_CMD" # Let the user override the test with a path.
10008 ;;
10009 *)
10010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10011for as_dir in $PATH_SBIN
b3539907
ZK
10012do
10013 IFS=$as_save_IFS
6b2e4ec5
ZK
10014 case $as_dir in #(((
10015 '') as_dir=./ ;;
10016 */) ;;
10017 *) as_dir=$as_dir/ ;;
10018 esac
b3539907 10019 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10021 ac_cv_path_ac_pt_THIN_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext"
10022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
b3539907
ZK
10023 break 2
10024 fi
10025done
10026 done
10027IFS=$as_save_IFS
10028
10029 ;;
635df748 10030esac ;;
b3539907
ZK
10031esac
10032fi
10033ac_pt_THIN_RESTORE_CMD=$ac_cv_path_ac_pt_THIN_RESTORE_CMD
10034if test -n "$ac_pt_THIN_RESTORE_CMD"; then
6b2e4ec5
ZK
10035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_THIN_RESTORE_CMD" >&5
10036printf "%s\n" "$ac_pt_THIN_RESTORE_CMD" >&6; }
b3539907 10037else
6b2e4ec5
ZK
10038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10039printf "%s\n" "no" >&6; }
b3539907
ZK
10040fi
10041
10042 if test "x$ac_pt_THIN_RESTORE_CMD" = x; then
10043 THIN_RESTORE_CMD=""
10044 else
10045 case $cross_compiling:$ac_tool_warned in
10046yes:)
6b2e4ec5
ZK
10047{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10048printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
b3539907
ZK
10049ac_tool_warned=yes ;;
10050esac
10051 THIN_RESTORE_CMD=$ac_pt_THIN_RESTORE_CMD
10052 fi
10053else
10054 THIN_RESTORE_CMD="$ac_cv_path_THIN_RESTORE_CMD"
10055fi
10056
b681b774
ZK
10057 if test -z "$THIN_RESTORE_CMD"
10058then :
10059
07cd341b
ZK
10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&5
10061printf "%s\n" "$as_me: WARNING: \"thin_restore not found in path $PATH_SBIN\"" >&2;}
b681b774
ZK
10062 THIN_RESTORE_CMD="/usr/sbin/thin_restore"
10063 THIN_CONFIGURE_WARN="y"
10064
10065fi
10066
10067fi
f61cacad 10068
8b8b8ac1
ZK
10069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $THIN_CHECK_CMD ($THIN_CHECK_VSN_MAJOR.$THIN_CHECK_VSN_MINOR) supports the needs-check flag" >&5
10070printf %s "checking whether $THIN_CHECK_CMD ($THIN_CHECK_VSN_MAJOR.$THIN_CHECK_VSN_MINOR) supports the needs-check flag... " >&6; }
6b2e4ec5
ZK
10071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $THIN_CHECK_NEEDS_CHECK" >&5
10072printf "%s\n" "$THIN_CHECK_NEEDS_CHECK" >&6; }
b681b774
ZK
10073 if test "$THIN_CHECK_NEEDS_CHECK" = "yes"
10074then :
10075
2e1192f6 10076
6b2e4ec5 10077printf "%s\n" "#define THIN_CHECK_NEEDS_CHECK 1" >>confdefs.h
2e1192f6 10078
b681b774
ZK
10079
10080fi
10081 ;; #(
10082 *) :
10083 ;;
e6e64748 10084esac
2e1192f6 10085
f61cacad 10086
6b2e4ec5 10087printf "%s\n" "#define THIN_CHECK_CMD \"$THIN_CHECK_CMD\"" >>confdefs.h
f61cacad 10088
f61cacad
ZK
10089
10090
6b2e4ec5 10091printf "%s\n" "#define THIN_DUMP_CMD \"$THIN_DUMP_CMD\"" >>confdefs.h
22fc8098
ZK
10092
10093
10094
6b2e4ec5 10095printf "%s\n" "#define THIN_REPAIR_CMD \"$THIN_REPAIR_CMD\"" >>confdefs.h
22fc8098
ZK
10096
10097
b3539907 10098
6b2e4ec5 10099printf "%s\n" "#define THIN_RESTORE_CMD \"$THIN_RESTORE_CMD\"" >>confdefs.h
b3539907
ZK
10100
10101
a0d64554 10102################################################################################
6b2e4ec5
ZK
10103{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include cache" >&5
10104printf %s "checking whether to include cache... " >&6; }
a0d64554
PR
10105
10106# Check whether --with-cache was given.
6b2e4ec5
ZK
10107if test ${with_cache+y}
10108then :
a0d64554 10109 withval=$with_cache; CACHE=$withval
635df748
ZK
10110else case e in #(
10111 e) CACHE="internal" ;;
10112esac
39cb8aa3
ZK
10113fi
10114
10115
10116# Check whether --with-cache-check was given.
6b2e4ec5
ZK
10117if test ${with_cache_check+y}
10118then :
39cb8aa3 10119 withval=$with_cache_check; CACHE_CHECK_CMD=$withval
635df748
ZK
10120else case e in #(
10121 e) CACHE_CHECK_CMD="autodetect" ;;
10122esac
39cb8aa3
ZK
10123fi
10124
10125
10126# Check whether --with-cache-dump was given.
6b2e4ec5
ZK
10127if test ${with_cache_dump+y}
10128then :
39cb8aa3 10129 withval=$with_cache_dump; CACHE_DUMP_CMD=$withval
635df748
ZK
10130else case e in #(
10131 e) CACHE_DUMP_CMD="autodetect" ;;
10132esac
39cb8aa3
ZK
10133fi
10134
10135
10136# Check whether --with-cache-repair was given.
6b2e4ec5
ZK
10137if test ${with_cache_repair+y}
10138then :
39cb8aa3 10139 withval=$with_cache_repair; CACHE_REPAIR_CMD=$withval
635df748
ZK
10140else case e in #(
10141 e) CACHE_REPAIR_CMD="autodetect" ;;
10142esac
39cb8aa3
ZK
10143fi
10144
10145
10146# Check whether --with-cache-restore was given.
6b2e4ec5
ZK
10147if test ${with_cache_restore+y}
10148then :
39cb8aa3 10149 withval=$with_cache_restore; CACHE_RESTORE_CMD=$withval
635df748
ZK
10150else case e in #(
10151 e) CACHE_RESTORE_CMD="autodetect" ;;
10152esac
a0d64554
PR
10153fi
10154
6b2e4ec5
ZK
10155{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE" >&5
10156printf "%s\n" "$CACHE" >&6; }
a0d64554 10157
b681b774
ZK
10158case "$CACHE" in #(
10159 no|none|shared) :
10160 ;; #(
10161 internal) :
10162
10163
6b2e4ec5 10164printf "%s\n" "#define CACHE_INTERNAL 1" >>confdefs.h
b681b774
ZK
10165 ;; #(
10166 *) :
10167 as_fn_error $? "--with-cache parameter invalid" "$LINENO" 5 ;;
1b59f5a9 10168esac
22fc8098 10169
0ac20a8f 10170# Check whether --enable-cache_check_needs_check was given.
6b2e4ec5
ZK
10171if test ${enable_cache_check_needs_check+y}
10172then :
0ac20a8f 10173 enableval=$enable_cache_check_needs_check; CACHE_CHECK_NEEDS_CHECK=$enableval
635df748
ZK
10174else case e in #(
10175 e) CACHE_CHECK_NEEDS_CHECK="yes" ;;
10176esac
0ac20a8f
ZK
10177fi
10178
10179
39cb8aa3
ZK
10180# Test if necessary cache tools are available
10181# if not - use plain defaults and warn user
b681b774
ZK
10182case "$CACHE" in #(
10183 internal|shared) :
10184
39cb8aa3 10185 # Empty means a config way to ignore cache checking
b681b774
ZK
10186 if test "$CACHE_CHECK_CMD" = "autodetect"
10187then :
10188
39cb8aa3
ZK
10189 if test -n "$ac_tool_prefix"; then
10190 # Extract the first word of "${ac_tool_prefix}cache_check", so it can be a program name with args.
10191set dummy ${ac_tool_prefix}cache_check; ac_word=$2
6b2e4ec5
ZK
10192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10193printf %s "checking for $ac_word... " >&6; }
10194if test ${ac_cv_path_CACHE_CHECK_CMD+y}
10195then :
10196 printf %s "(cached) " >&6
635df748
ZK
10197else case e in #(
10198 e) case $CACHE_CHECK_CMD in
39cb8aa3
ZK
10199 [\\/]* | ?:[\\/]*)
10200 ac_cv_path_CACHE_CHECK_CMD="$CACHE_CHECK_CMD" # Let the user override the test with a path.
10201 ;;
10202 *)
10203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10204for as_dir in $PATH_SBIN
39cb8aa3
ZK
10205do
10206 IFS=$as_save_IFS
6b2e4ec5
ZK
10207 case $as_dir in #(((
10208 '') as_dir=./ ;;
10209 */) ;;
10210 *) as_dir=$as_dir/ ;;
10211 esac
39cb8aa3 10212 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10213 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10214 ac_cv_path_CACHE_CHECK_CMD="$as_dir$ac_word$ac_exec_ext"
10215 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39cb8aa3
ZK
10216 break 2
10217 fi
10218done
10219 done
10220IFS=$as_save_IFS
10221
10222 ;;
635df748 10223esac ;;
39cb8aa3
ZK
10224esac
10225fi
10226CACHE_CHECK_CMD=$ac_cv_path_CACHE_CHECK_CMD
10227if test -n "$CACHE_CHECK_CMD"; then
6b2e4ec5
ZK
10228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_CMD" >&5
10229printf "%s\n" "$CACHE_CHECK_CMD" >&6; }
39cb8aa3 10230else
6b2e4ec5
ZK
10231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10232printf "%s\n" "no" >&6; }
39cb8aa3
ZK
10233fi
10234
10235
10236fi
10237if test -z "$ac_cv_path_CACHE_CHECK_CMD"; then
10238 ac_pt_CACHE_CHECK_CMD=$CACHE_CHECK_CMD
10239 # Extract the first word of "cache_check", so it can be a program name with args.
10240set dummy cache_check; ac_word=$2
6b2e4ec5
ZK
10241{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10242printf %s "checking for $ac_word... " >&6; }
10243if test ${ac_cv_path_ac_pt_CACHE_CHECK_CMD+y}
10244then :
10245 printf %s "(cached) " >&6
635df748
ZK
10246else case e in #(
10247 e) case $ac_pt_CACHE_CHECK_CMD in
39cb8aa3
ZK
10248 [\\/]* | ?:[\\/]*)
10249 ac_cv_path_ac_pt_CACHE_CHECK_CMD="$ac_pt_CACHE_CHECK_CMD" # Let the user override the test with a path.
10250 ;;
10251 *)
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10253for as_dir in $PATH_SBIN
39cb8aa3
ZK
10254do
10255 IFS=$as_save_IFS
6b2e4ec5
ZK
10256 case $as_dir in #(((
10257 '') as_dir=./ ;;
10258 */) ;;
10259 *) as_dir=$as_dir/ ;;
10260 esac
39cb8aa3 10261 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10262 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10263 ac_cv_path_ac_pt_CACHE_CHECK_CMD="$as_dir$ac_word$ac_exec_ext"
10264 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39cb8aa3
ZK
10265 break 2
10266 fi
10267done
10268 done
10269IFS=$as_save_IFS
10270
10271 ;;
635df748 10272esac ;;
39cb8aa3
ZK
10273esac
10274fi
10275ac_pt_CACHE_CHECK_CMD=$ac_cv_path_ac_pt_CACHE_CHECK_CMD
10276if test -n "$ac_pt_CACHE_CHECK_CMD"; then
6b2e4ec5
ZK
10277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_CHECK_CMD" >&5
10278printf "%s\n" "$ac_pt_CACHE_CHECK_CMD" >&6; }
39cb8aa3 10279else
6b2e4ec5
ZK
10280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10281printf "%s\n" "no" >&6; }
39cb8aa3
ZK
10282fi
10283
10284 if test "x$ac_pt_CACHE_CHECK_CMD" = x; then
10285 CACHE_CHECK_CMD=""
10286 else
10287 case $cross_compiling:$ac_tool_warned in
10288yes:)
6b2e4ec5
ZK
10289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10290printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39cb8aa3
ZK
10291ac_tool_warned=yes ;;
10292esac
10293 CACHE_CHECK_CMD=$ac_pt_CACHE_CHECK_CMD
10294 fi
10295else
10296 CACHE_CHECK_CMD="$ac_cv_path_CACHE_CHECK_CMD"
10297fi
10298
b681b774
ZK
10299 if test -z "$CACHE_CHECK_CMD"
10300then :
10301
07cd341b
ZK
10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache_check not found in path $PATH_SBIN" >&5
10303printf "%s\n" "$as_me: WARNING: cache_check not found in path $PATH_SBIN" >&2;}
b681b774
ZK
10304 CACHE_CHECK_CMD="/usr/sbin/cache_check"
10305 CACHE_CONFIGURE_WARN="y"
10306
10307fi
10308
10309fi
10310 if test "$CACHE_CHECK_NEEDS_CHECK" = "yes" && test "$CACHE_CONFIGURE_WARN" != "y"
10311then :
10312
8b8b8ac1 10313 "$CACHE_CHECK_CMD" -V 2>/dev/null >conftest.tmp
664a9f48 10314 read -r CACHE_CHECK_VSN < conftest.tmp
5ce33492 10315 IFS=.- read -r CACHE_CHECK_VSN_MAJOR CACHE_CHECK_VSN_MINOR CACHE_CHECK_VSN_PATCH LEFTOVER < conftest.tmp
664a9f48
ZK
10316 rm -f conftest.tmp
10317
10318 # Require version >= 0.5.4 for --clear-needs-check-flag
8b8b8ac1 10319 CACHE_CHECK_VSN_MAJOR=${CACHE_CHECK_VSN_MAJOR##* }
664a9f48
ZK
10320 if test -z "$CACHE_CHECK_VSN_MAJOR" \
10321 || test -z "$CACHE_CHECK_VSN_MINOR" \
b681b774
ZK
10322 || test -z "$CACHE_CHECK_VSN_PATCH"
10323then :
10324
6b2e4ec5
ZK
10325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&5
10326printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Bad version \"$CACHE_CHECK_VSN\" found" >&2;}
b681b774
ZK
10327 CACHE_CHECK_VERSION_WARN="y"
10328 CACHE_CHECK_NEEDS_CHECK="no"
10329
10330elif test "$CACHE_CHECK_VSN_MAJOR" -eq 0
10331then :
10332
664a9f48 10333 if test "$CACHE_CHECK_VSN_MINOR" -lt 5 \
b681b774
ZK
10334 || ( test "$CACHE_CHECK_VSN_MINOR" -eq 5 && test "$CACHE_CHECK_VSN_PATCH" -lt 4 )
10335then :
10336
6b2e4ec5
ZK
10337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&5
10338printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" found" >&2;}
b681b774
ZK
10339 CACHE_CHECK_VERSION_WARN="y"
10340 CACHE_CHECK_NEEDS_CHECK="no"
10341
10342fi
10343 if test "$CACHE_CHECK_VSN_MINOR" -lt 7
10344then :
10345
6b2e4ec5
ZK
10346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&5
10347printf "%s\n" "$as_me: WARNING: $CACHE_CHECK_CMD: Old version \"$CACHE_CHECK_VSN\" does not support new cache format V2" >&2;}
358eee15 10348 CACHE_CHECK_VERSION_WARN=y
b681b774
ZK
10349
10350fi
10351
10352fi
10353
10354fi
39cb8aa3 10355 # Empty means a config way to ignore cache dumping
b681b774
ZK
10356 if test "$CACHE_DUMP_CMD" = "autodetect"
10357then :
10358
39cb8aa3
ZK
10359 if test -n "$ac_tool_prefix"; then
10360 # Extract the first word of "${ac_tool_prefix}cache_dump", so it can be a program name with args.
10361set dummy ${ac_tool_prefix}cache_dump; ac_word=$2
6b2e4ec5
ZK
10362{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10363printf %s "checking for $ac_word... " >&6; }
10364if test ${ac_cv_path_CACHE_DUMP_CMD+y}
10365then :
10366 printf %s "(cached) " >&6
635df748
ZK
10367else case e in #(
10368 e) case $CACHE_DUMP_CMD in
39cb8aa3
ZK
10369 [\\/]* | ?:[\\/]*)
10370 ac_cv_path_CACHE_DUMP_CMD="$CACHE_DUMP_CMD" # Let the user override the test with a path.
10371 ;;
10372 *)
10373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10374for as_dir in $PATH_SBIN
39cb8aa3
ZK
10375do
10376 IFS=$as_save_IFS
6b2e4ec5
ZK
10377 case $as_dir in #(((
10378 '') as_dir=./ ;;
10379 */) ;;
10380 *) as_dir=$as_dir/ ;;
10381 esac
39cb8aa3 10382 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10383 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10384 ac_cv_path_CACHE_DUMP_CMD="$as_dir$ac_word$ac_exec_ext"
10385 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39cb8aa3
ZK
10386 break 2
10387 fi
10388done
10389 done
10390IFS=$as_save_IFS
10391
10392 ;;
635df748 10393esac ;;
39cb8aa3
ZK
10394esac
10395fi
10396CACHE_DUMP_CMD=$ac_cv_path_CACHE_DUMP_CMD
10397if test -n "$CACHE_DUMP_CMD"; then
6b2e4ec5
ZK
10398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_DUMP_CMD" >&5
10399printf "%s\n" "$CACHE_DUMP_CMD" >&6; }
39cb8aa3 10400else
6b2e4ec5
ZK
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10402printf "%s\n" "no" >&6; }
39cb8aa3
ZK
10403fi
10404
10405
10406fi
10407if test -z "$ac_cv_path_CACHE_DUMP_CMD"; then
10408 ac_pt_CACHE_DUMP_CMD=$CACHE_DUMP_CMD
10409 # Extract the first word of "cache_dump", so it can be a program name with args.
10410set dummy cache_dump; ac_word=$2
6b2e4ec5
ZK
10411{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10412printf %s "checking for $ac_word... " >&6; }
10413if test ${ac_cv_path_ac_pt_CACHE_DUMP_CMD+y}
10414then :
10415 printf %s "(cached) " >&6
635df748
ZK
10416else case e in #(
10417 e) case $ac_pt_CACHE_DUMP_CMD in
39cb8aa3
ZK
10418 [\\/]* | ?:[\\/]*)
10419 ac_cv_path_ac_pt_CACHE_DUMP_CMD="$ac_pt_CACHE_DUMP_CMD" # Let the user override the test with a path.
10420 ;;
10421 *)
10422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10423for as_dir in $PATH_SBIN
39cb8aa3
ZK
10424do
10425 IFS=$as_save_IFS
6b2e4ec5
ZK
10426 case $as_dir in #(((
10427 '') as_dir=./ ;;
10428 */) ;;
10429 *) as_dir=$as_dir/ ;;
10430 esac
39cb8aa3 10431 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10432 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10433 ac_cv_path_ac_pt_CACHE_DUMP_CMD="$as_dir$ac_word$ac_exec_ext"
10434 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39cb8aa3
ZK
10435 break 2
10436 fi
10437done
10438 done
10439IFS=$as_save_IFS
10440
10441 ;;
635df748 10442esac ;;
39cb8aa3
ZK
10443esac
10444fi
10445ac_pt_CACHE_DUMP_CMD=$ac_cv_path_ac_pt_CACHE_DUMP_CMD
10446if test -n "$ac_pt_CACHE_DUMP_CMD"; then
6b2e4ec5
ZK
10447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_DUMP_CMD" >&5
10448printf "%s\n" "$ac_pt_CACHE_DUMP_CMD" >&6; }
39cb8aa3 10449else
6b2e4ec5
ZK
10450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10451printf "%s\n" "no" >&6; }
39cb8aa3
ZK
10452fi
10453
10454 if test "x$ac_pt_CACHE_DUMP_CMD" = x; then
10455 CACHE_DUMP_CMD=""
10456 else
10457 case $cross_compiling:$ac_tool_warned in
10458yes:)
6b2e4ec5
ZK
10459{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10460printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39cb8aa3
ZK
10461ac_tool_warned=yes ;;
10462esac
10463 CACHE_DUMP_CMD=$ac_pt_CACHE_DUMP_CMD
10464 fi
10465else
10466 CACHE_DUMP_CMD="$ac_cv_path_CACHE_DUMP_CMD"
10467fi
10468
b681b774
ZK
10469 if test -z "$CACHE_DUMP_CMD"
10470then :
10471
07cd341b
ZK
10472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&5
10473printf "%s\n" "$as_me: WARNING: \"cache_dump not found in path $PATH_SBIN\"" >&2;}
b681b774
ZK
10474 CACHE_DUMP_CMD="/usr/sbin/cache_dump"
10475 CACHE_CONFIGURE_WARN="y"
10476
10477fi
10478
10479fi
39cb8aa3 10480 # Empty means a config way to ignore cache repairing
b681b774
ZK
10481 if test "$CACHE_REPAIR_CMD" = "autodetect"
10482then :
10483
39cb8aa3
ZK
10484 if test -n "$ac_tool_prefix"; then
10485 # Extract the first word of "${ac_tool_prefix}cache_repair", so it can be a program name with args.
10486set dummy ${ac_tool_prefix}cache_repair; ac_word=$2
6b2e4ec5
ZK
10487{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10488printf %s "checking for $ac_word... " >&6; }
10489if test ${ac_cv_path_CACHE_REPAIR_CMD+y}
10490then :
10491 printf %s "(cached) " >&6
635df748
ZK
10492else case e in #(
10493 e) case $CACHE_REPAIR_CMD in
39cb8aa3
ZK
10494 [\\/]* | ?:[\\/]*)
10495 ac_cv_path_CACHE_REPAIR_CMD="$CACHE_REPAIR_CMD" # Let the user override the test with a path.
10496 ;;
10497 *)
10498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10499for as_dir in $PATH_SBIN
39cb8aa3
ZK
10500do
10501 IFS=$as_save_IFS
6b2e4ec5
ZK
10502 case $as_dir in #(((
10503 '') as_dir=./ ;;
10504 */) ;;
10505 *) as_dir=$as_dir/ ;;
10506 esac
39cb8aa3 10507 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10509 ac_cv_path_CACHE_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext"
10510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39cb8aa3
ZK
10511 break 2
10512 fi
10513done
10514 done
10515IFS=$as_save_IFS
10516
10517 ;;
635df748 10518esac ;;
39cb8aa3
ZK
10519esac
10520fi
10521CACHE_REPAIR_CMD=$ac_cv_path_CACHE_REPAIR_CMD
10522if test -n "$CACHE_REPAIR_CMD"; then
6b2e4ec5
ZK
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_REPAIR_CMD" >&5
10524printf "%s\n" "$CACHE_REPAIR_CMD" >&6; }
39cb8aa3 10525else
6b2e4ec5
ZK
10526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10527printf "%s\n" "no" >&6; }
39cb8aa3
ZK
10528fi
10529
10530
10531fi
10532if test -z "$ac_cv_path_CACHE_REPAIR_CMD"; then
10533 ac_pt_CACHE_REPAIR_CMD=$CACHE_REPAIR_CMD
10534 # Extract the first word of "cache_repair", so it can be a program name with args.
10535set dummy cache_repair; ac_word=$2
6b2e4ec5
ZK
10536{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10537printf %s "checking for $ac_word... " >&6; }
10538if test ${ac_cv_path_ac_pt_CACHE_REPAIR_CMD+y}
10539then :
10540 printf %s "(cached) " >&6
635df748
ZK
10541else case e in #(
10542 e) case $ac_pt_CACHE_REPAIR_CMD in
39cb8aa3
ZK
10543 [\\/]* | ?:[\\/]*)
10544 ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$ac_pt_CACHE_REPAIR_CMD" # Let the user override the test with a path.
10545 ;;
10546 *)
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10548for as_dir in $PATH_SBIN
39cb8aa3
ZK
10549do
10550 IFS=$as_save_IFS
6b2e4ec5
ZK
10551 case $as_dir in #(((
10552 '') as_dir=./ ;;
10553 */) ;;
10554 *) as_dir=$as_dir/ ;;
10555 esac
39cb8aa3 10556 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10557 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10558 ac_cv_path_ac_pt_CACHE_REPAIR_CMD="$as_dir$ac_word$ac_exec_ext"
10559 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39cb8aa3
ZK
10560 break 2
10561 fi
10562done
10563 done
10564IFS=$as_save_IFS
10565
10566 ;;
635df748 10567esac ;;
39cb8aa3
ZK
10568esac
10569fi
10570ac_pt_CACHE_REPAIR_CMD=$ac_cv_path_ac_pt_CACHE_REPAIR_CMD
10571if test -n "$ac_pt_CACHE_REPAIR_CMD"; then
6b2e4ec5
ZK
10572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_REPAIR_CMD" >&5
10573printf "%s\n" "$ac_pt_CACHE_REPAIR_CMD" >&6; }
39cb8aa3 10574else
6b2e4ec5
ZK
10575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10576printf "%s\n" "no" >&6; }
39cb8aa3
ZK
10577fi
10578
10579 if test "x$ac_pt_CACHE_REPAIR_CMD" = x; then
10580 CACHE_REPAIR_CMD=""
10581 else
10582 case $cross_compiling:$ac_tool_warned in
10583yes:)
6b2e4ec5
ZK
10584{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10585printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39cb8aa3
ZK
10586ac_tool_warned=yes ;;
10587esac
10588 CACHE_REPAIR_CMD=$ac_pt_CACHE_REPAIR_CMD
10589 fi
10590else
10591 CACHE_REPAIR_CMD="$ac_cv_path_CACHE_REPAIR_CMD"
10592fi
10593
b681b774
ZK
10594 if test -z "$CACHE_REPAIR_CMD"
10595then :
10596
07cd341b
ZK
10597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&5
10598printf "%s\n" "$as_me: WARNING: \"cache_repair not found in path $PATH_SBIN\"" >&2;}
b681b774
ZK
10599 CACHE_REPAIR_CMD="/usr/sbin/cache_repair"
10600 CACHE_CONFIGURE_WARN="y"
10601
10602fi
10603
10604fi
39cb8aa3 10605 # Empty means a config way to ignore cache restoring
b681b774
ZK
10606 if test "$CACHE_RESTORE_CMD" = "autodetect"
10607then :
10608
39cb8aa3
ZK
10609 if test -n "$ac_tool_prefix"; then
10610 # Extract the first word of "${ac_tool_prefix}cache_restore", so it can be a program name with args.
10611set dummy ${ac_tool_prefix}cache_restore; ac_word=$2
6b2e4ec5
ZK
10612{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10613printf %s "checking for $ac_word... " >&6; }
10614if test ${ac_cv_path_CACHE_RESTORE_CMD+y}
10615then :
10616 printf %s "(cached) " >&6
635df748
ZK
10617else case e in #(
10618 e) case $CACHE_RESTORE_CMD in
39cb8aa3
ZK
10619 [\\/]* | ?:[\\/]*)
10620 ac_cv_path_CACHE_RESTORE_CMD="$CACHE_RESTORE_CMD" # Let the user override the test with a path.
10621 ;;
10622 *)
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10624for as_dir in $PATH_SBIN
39cb8aa3
ZK
10625do
10626 IFS=$as_save_IFS
6b2e4ec5
ZK
10627 case $as_dir in #(((
10628 '') as_dir=./ ;;
10629 */) ;;
10630 *) as_dir=$as_dir/ ;;
10631 esac
39cb8aa3 10632 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10634 ac_cv_path_CACHE_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext"
10635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39cb8aa3
ZK
10636 break 2
10637 fi
10638done
10639 done
10640IFS=$as_save_IFS
10641
10642 ;;
635df748 10643esac ;;
39cb8aa3
ZK
10644esac
10645fi
10646CACHE_RESTORE_CMD=$ac_cv_path_CACHE_RESTORE_CMD
10647if test -n "$CACHE_RESTORE_CMD"; then
6b2e4ec5
ZK
10648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_RESTORE_CMD" >&5
10649printf "%s\n" "$CACHE_RESTORE_CMD" >&6; }
39cb8aa3 10650else
6b2e4ec5
ZK
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10652printf "%s\n" "no" >&6; }
39cb8aa3
ZK
10653fi
10654
10655
10656fi
10657if test -z "$ac_cv_path_CACHE_RESTORE_CMD"; then
10658 ac_pt_CACHE_RESTORE_CMD=$CACHE_RESTORE_CMD
10659 # Extract the first word of "cache_restore", so it can be a program name with args.
10660set dummy cache_restore; ac_word=$2
6b2e4ec5
ZK
10661{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10662printf %s "checking for $ac_word... " >&6; }
10663if test ${ac_cv_path_ac_pt_CACHE_RESTORE_CMD+y}
10664then :
10665 printf %s "(cached) " >&6
635df748
ZK
10666else case e in #(
10667 e) case $ac_pt_CACHE_RESTORE_CMD in
39cb8aa3
ZK
10668 [\\/]* | ?:[\\/]*)
10669 ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$ac_pt_CACHE_RESTORE_CMD" # Let the user override the test with a path.
10670 ;;
10671 *)
10672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 10673for as_dir in $PATH_SBIN
39cb8aa3
ZK
10674do
10675 IFS=$as_save_IFS
6b2e4ec5
ZK
10676 case $as_dir in #(((
10677 '') as_dir=./ ;;
10678 */) ;;
10679 *) as_dir=$as_dir/ ;;
10680 esac
39cb8aa3 10681 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10683 ac_cv_path_ac_pt_CACHE_RESTORE_CMD="$as_dir$ac_word$ac_exec_ext"
10684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
39cb8aa3
ZK
10685 break 2
10686 fi
10687done
10688 done
10689IFS=$as_save_IFS
10690
10691 ;;
635df748 10692esac ;;
39cb8aa3
ZK
10693esac
10694fi
10695ac_pt_CACHE_RESTORE_CMD=$ac_cv_path_ac_pt_CACHE_RESTORE_CMD
10696if test -n "$ac_pt_CACHE_RESTORE_CMD"; then
6b2e4ec5
ZK
10697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_CACHE_RESTORE_CMD" >&5
10698printf "%s\n" "$ac_pt_CACHE_RESTORE_CMD" >&6; }
39cb8aa3 10699else
6b2e4ec5
ZK
10700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701printf "%s\n" "no" >&6; }
39cb8aa3
ZK
10702fi
10703
10704 if test "x$ac_pt_CACHE_RESTORE_CMD" = x; then
10705 CACHE_RESTORE_CMD=""
10706 else
10707 case $cross_compiling:$ac_tool_warned in
10708yes:)
6b2e4ec5
ZK
10709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10710printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
39cb8aa3
ZK
10711ac_tool_warned=yes ;;
10712esac
10713 CACHE_RESTORE_CMD=$ac_pt_CACHE_RESTORE_CMD
10714 fi
10715else
10716 CACHE_RESTORE_CMD="$ac_cv_path_CACHE_RESTORE_CMD"
10717fi
10718
b681b774
ZK
10719 if test -z "$CACHE_RESTORE_CMD"
10720then :
10721
07cd341b
ZK
10722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&5
10723printf "%s\n" "$as_me: WARNING: \"cache_restore not found in path $PATH_SBIN\"" >&2;}
b681b774
ZK
10724 CACHE_RESTORE_CMD="/usr/sbin/cache_restore"
10725 CACHE_CONFIGURE_WARN="y"
10726
10727fi
10728
10729fi
0ac20a8f 10730
8b8b8ac1
ZK
10731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CACHE_CHECK_CMD ($CACHE_CHECK_VSN_MAJOR.$CACHE_CHECK_VSN_MINOR.$CACHE_CHECK_VSN_PATCH) supports the needs-check flag" >&5
10732printf %s "checking whether $CACHE_CHECK_CMD ($CACHE_CHECK_VSN_MAJOR.$CACHE_CHECK_VSN_MINOR.$CACHE_CHECK_VSN_PATCH) supports the needs-check flag... " >&6; }
6b2e4ec5
ZK
10733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CACHE_CHECK_NEEDS_CHECK" >&5
10734printf "%s\n" "$CACHE_CHECK_NEEDS_CHECK" >&6; }
b681b774
ZK
10735 if test "$CACHE_CHECK_NEEDS_CHECK" = "yes"
10736then :
10737
0ac20a8f 10738
6b2e4ec5 10739printf "%s\n" "#define CACHE_CHECK_NEEDS_CHECK 1" >>confdefs.h
0ac20a8f 10740
b681b774
ZK
10741
10742fi
10743 ;; #(
10744 *) :
10745 ;;
39cb8aa3
ZK
10746esac
10747
10748
6b2e4ec5 10749printf "%s\n" "#define CACHE_CHECK_CMD \"$CACHE_CHECK_CMD\"" >>confdefs.h
39cb8aa3
ZK
10750
10751
10752
6b2e4ec5 10753printf "%s\n" "#define CACHE_DUMP_CMD \"$CACHE_DUMP_CMD\"" >>confdefs.h
39cb8aa3
ZK
10754
10755
10756
6b2e4ec5 10757printf "%s\n" "#define CACHE_REPAIR_CMD \"$CACHE_REPAIR_CMD\"" >>confdefs.h
39cb8aa3
ZK
10758
10759
10760
6b2e4ec5 10761printf "%s\n" "#define CACHE_RESTORE_CMD \"$CACHE_RESTORE_CMD\"" >>confdefs.h
39cb8aa3
ZK
10762
10763
4a90b0c4 10764################################################################################
6b2e4ec5
ZK
10765{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include vdo" >&5
10766printf %s "checking whether to include vdo... " >&6; }
4a90b0c4
ZK
10767
10768# Check whether --with-vdo was given.
6b2e4ec5
ZK
10769if test ${with_vdo+y}
10770then :
4a90b0c4 10771 withval=$with_vdo; VDO=$withval
635df748
ZK
10772else case e in #(
10773 e) VDO="internal" ;;
10774esac
4a90b0c4
ZK
10775fi
10776
10777
6b2e4ec5
ZK
10778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO" >&5
10779printf "%s\n" "$VDO" >&6; }
4a90b0c4
ZK
10780
10781
10782# Check whether --with-vdo-format was given.
6b2e4ec5
ZK
10783if test ${with_vdo_format+y}
10784then :
4a90b0c4 10785 withval=$with_vdo_format; VDO_FORMAT_CMD=$withval
635df748
ZK
10786else case e in #(
10787 e) VDO_FORMAT_CMD="autodetect" ;;
10788esac
4a90b0c4
ZK
10789fi
10790
b681b774
ZK
10791case "$VDO" in #(
10792 no|none) :
10793 ;; #(
10794 internal) :
10795
4a90b0c4 10796
6b2e4ec5 10797printf "%s\n" "#define VDO_INTERNAL 1" >>confdefs.h
4a90b0c4 10798
b681b774
ZK
10799 if test "$VDO_FORMAT_CMD" = "autodetect"
10800then :
10801
10802 if test -n "$ac_tool_prefix"; then
4a90b0c4
ZK
10803 # Extract the first word of "${ac_tool_prefix}vdoformat", so it can be a program name with args.
10804set dummy ${ac_tool_prefix}vdoformat; ac_word=$2
6b2e4ec5
ZK
10805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10806printf %s "checking for $ac_word... " >&6; }
10807if test ${ac_cv_path_VDO_FORMAT_CMD+y}
10808then :
10809 printf %s "(cached) " >&6
635df748
ZK
10810else case e in #(
10811 e) case $VDO_FORMAT_CMD in
4a90b0c4
ZK
10812 [\\/]* | ?:[\\/]*)
10813 ac_cv_path_VDO_FORMAT_CMD="$VDO_FORMAT_CMD" # Let the user override the test with a path.
10814 ;;
10815 *)
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817for as_dir in $PATH
10818do
10819 IFS=$as_save_IFS
6b2e4ec5
ZK
10820 case $as_dir in #(((
10821 '') as_dir=./ ;;
10822 */) ;;
10823 *) as_dir=$as_dir/ ;;
10824 esac
4a90b0c4 10825 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10827 ac_cv_path_VDO_FORMAT_CMD="$as_dir$ac_word$ac_exec_ext"
10828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4a90b0c4
ZK
10829 break 2
10830 fi
10831done
10832 done
10833IFS=$as_save_IFS
10834
10835 ;;
635df748 10836esac ;;
4a90b0c4
ZK
10837esac
10838fi
10839VDO_FORMAT_CMD=$ac_cv_path_VDO_FORMAT_CMD
10840if test -n "$VDO_FORMAT_CMD"; then
6b2e4ec5
ZK
10841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VDO_FORMAT_CMD" >&5
10842printf "%s\n" "$VDO_FORMAT_CMD" >&6; }
4a90b0c4 10843else
6b2e4ec5
ZK
10844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845printf "%s\n" "no" >&6; }
4a90b0c4
ZK
10846fi
10847
10848
10849fi
10850if test -z "$ac_cv_path_VDO_FORMAT_CMD"; then
10851 ac_pt_VDO_FORMAT_CMD=$VDO_FORMAT_CMD
10852 # Extract the first word of "vdoformat", so it can be a program name with args.
10853set dummy vdoformat; ac_word=$2
6b2e4ec5
ZK
10854{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10855printf %s "checking for $ac_word... " >&6; }
10856if test ${ac_cv_path_ac_pt_VDO_FORMAT_CMD+y}
10857then :
10858 printf %s "(cached) " >&6
635df748
ZK
10859else case e in #(
10860 e) case $ac_pt_VDO_FORMAT_CMD in
4a90b0c4
ZK
10861 [\\/]* | ?:[\\/]*)
10862 ac_cv_path_ac_pt_VDO_FORMAT_CMD="$ac_pt_VDO_FORMAT_CMD" # Let the user override the test with a path.
10863 ;;
10864 *)
10865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10866for as_dir in $PATH
10867do
10868 IFS=$as_save_IFS
6b2e4ec5
ZK
10869 case $as_dir in #(((
10870 '') as_dir=./ ;;
10871 */) ;;
10872 *) as_dir=$as_dir/ ;;
10873 esac
4a90b0c4 10874 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
10875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10876 ac_cv_path_ac_pt_VDO_FORMAT_CMD="$as_dir$ac_word$ac_exec_ext"
10877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4a90b0c4
ZK
10878 break 2
10879 fi
10880done
10881 done
10882IFS=$as_save_IFS
10883
10884 ;;
635df748 10885esac ;;
4a90b0c4
ZK
10886esac
10887fi
10888ac_pt_VDO_FORMAT_CMD=$ac_cv_path_ac_pt_VDO_FORMAT_CMD
10889if test -n "$ac_pt_VDO_FORMAT_CMD"; then
6b2e4ec5
ZK
10890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_VDO_FORMAT_CMD" >&5
10891printf "%s\n" "$ac_pt_VDO_FORMAT_CMD" >&6; }
4a90b0c4 10892else
6b2e4ec5
ZK
10893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10894printf "%s\n" "no" >&6; }
4a90b0c4
ZK
10895fi
10896
10897 if test "x$ac_pt_VDO_FORMAT_CMD" = x; then
10898 VDO_FORMAT_CMD=""
10899 else
10900 case $cross_compiling:$ac_tool_warned in
10901yes:)
6b2e4ec5
ZK
10902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10903printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4a90b0c4
ZK
10904ac_tool_warned=yes ;;
10905esac
10906 VDO_FORMAT_CMD=$ac_pt_VDO_FORMAT_CMD
10907 fi
10908else
10909 VDO_FORMAT_CMD="$ac_cv_path_VDO_FORMAT_CMD"
10910fi
10911
b681b774
ZK
10912 if test -z "$VDO_FORMAT_CMD"
10913then :
10914
10915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: vdoformat not found in path $PATH" >&5
6b2e4ec5 10916printf "%s\n" "$as_me: WARNING: vdoformat not found in path $PATH" >&2;}
b681b774
ZK
10917 VDO_FORMAT_CMD="/usr/bin/vdoformat"
10918 VDO_CONFIGURE_WARN=y
10919
10920fi
10921
10922fi ;; #(
10923 *) :
10924 as_fn_error $? "--with-vdo parameter invalid" "$LINENO" 5 ;;
4a90b0c4
ZK
10925esac
10926
10927
6b2e4ec5 10928printf "%s\n" "#define VDO_FORMAT_CMD \"$VDO_FORMAT_CMD\"" >>confdefs.h
4a90b0c4
ZK
10929
10930#
10931# Do we need to use the API??
418fb5a3 10932# Do we want to link lvm2 with a big library for VDO formatting ?
4a90b0c4
ZK
10933#
10934#AC_ARG_WITH(vdo-include,
b73e1cd4 10935# AS_HELP_STRING([--with-vdo-include=PATH],
4a90b0c4
ZK
10936# [vdo support: Path to utils headers: [/usr/include/vdo/utils]]),
10937# VDO_INCLUDE=$withval, VDO_INCLUDE="/usr/include/vdo/utils")
b681b774 10938#AC_MSG_RESULT([$VDO_INCLUDE])
4a90b0c4
ZK
10939#
10940#AC_ARG_WITH(vdo-lib,
b73e1cd4 10941# AS_HELP_STRING([--with-vdo-lib=PATH],
4a90b0c4
ZK
10942# [vdo support: Path to utils lib: [/usr/lib]]),
10943# VDO_LIB=$withval, VDO_LIB="/usr/lib")
b681b774 10944#AC_MSG_RESULT([$VDO_LIB])
39cb8aa3 10945
3a557dcf 10946################################################################################
6b2e4ec5
ZK
10947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include writecache" >&5
10948printf %s "checking whether to include writecache... " >&6; }
3a557dcf
ZK
10949
10950# Check whether --with-writecache was given.
6b2e4ec5
ZK
10951if test ${with_writecache+y}
10952then :
3a557dcf 10953 withval=$with_writecache; WRITECACHE=$withval
635df748
ZK
10954else case e in #(
10955 e) WRITECACHE="internal" ;;
10956esac
3a557dcf
ZK
10957fi
10958
10959
6b2e4ec5
ZK
10960{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WRITECACHE" >&5
10961printf "%s\n" "$WRITECACHE" >&6; }
3a557dcf 10962
b681b774
ZK
10963case "$WRITECACHE" in #(
10964 no|none) :
10965 ;; #(
10966 internal) :
3a557dcf 10967
3a557dcf 10968
b681b774
ZK
10969printf "%s\n" "#define WRITECACHE_INTERNAL 1" >>confdefs.h
10970 ;; #(
10971 *) :
10972 as_fn_error $? "--with-writecache parameter invalid" "$LINENO" 5 ;;
3a557dcf
ZK
10973esac
10974
d9e8895a 10975################################################################################
6b2e4ec5
ZK
10976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include integrity" >&5
10977printf %s "checking whether to include integrity... " >&6; }
d9e8895a
DT
10978
10979# Check whether --with-integrity was given.
6b2e4ec5
ZK
10980if test ${with_integrity+y}
10981then :
d9e8895a 10982 withval=$with_integrity; INTEGRITY=$withval
635df748
ZK
10983else case e in #(
10984 e) INTEGRITY="internal" ;;
10985esac
d9e8895a
DT
10986fi
10987
10988
6b2e4ec5
ZK
10989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTEGRITY" >&5
10990printf "%s\n" "$INTEGRITY" >&6; }
d9e8895a 10991
b681b774
ZK
10992case "$INTEGRITY" in #(
10993 no|none) :
10994 ;; #(
10995 internal) :
d9e8895a 10996
d9e8895a 10997
b681b774
ZK
10998printf "%s\n" "#define INTEGRITY_INTERNAL 1" >>confdefs.h
10999 ;; #(
11000 *) :
11001 as_fn_error $? "--with-integrity parameter invalid" "$LINENO" 5 ;;
d9e8895a
DT
11002esac
11003
f11781c5 11004################################################################################
f11781c5 11005# Check whether --enable-readline was given.
6b2e4ec5
ZK
11006if test ${enable_readline+y}
11007then :
f11781c5 11008 enableval=$enable_readline; READLINE=$enableval
635df748
ZK
11009else case e in #(
11010 e) READLINE="maybe" ;;
11011esac
fd4728e1
ZK
11012fi
11013
11014
65534242
ZK
11015################################################################################
11016# Check whether --enable-editline was given.
6b2e4ec5
ZK
11017if test ${enable_editline+y}
11018then :
65534242 11019 enableval=$enable_editline; EDITLINE=$enableval
635df748
ZK
11020else case e in #(
11021 e) EDITLINE="no" ;;
11022esac
65534242
ZK
11023fi
11024
11025
f11781c5 11026################################################################################
6b2e4ec5
ZK
11027{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable realtime support" >&5
11028printf %s "checking whether to enable realtime support... " >&6; }
f11781c5 11029# Check whether --enable-realtime was given.
6b2e4ec5
ZK
11030if test ${enable_realtime+y}
11031then :
f11781c5 11032 enableval=$enable_realtime; REALTIME=$enableval
635df748
ZK
11033else case e in #(
11034 e) REALTIME="yes" ;;
11035esac
5556819a 11036fi
d0191583 11037
6b2e4ec5
ZK
11038{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $REALTIME" >&5
11039printf "%s\n" "$REALTIME" >&6; }
f11781c5 11040
54b362f9 11041################################################################################
6b2e4ec5
ZK
11042{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable OCF resource agents" >&5
11043printf %s "checking whether to enable OCF resource agents... " >&6; }
f11781c5 11044# Check whether --enable-ocf was given.
6b2e4ec5
ZK
11045if test ${enable_ocf+y}
11046then :
f11781c5 11047 enableval=$enable_ocf; OCF=$enableval
635df748
ZK
11048else case e in #(
11049 e) OCF="no" ;;
11050esac
54b362f9
AK
11051fi
11052
6b2e4ec5
ZK
11053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCF" >&5
11054printf "%s\n" "$OCF" >&6; }
54b362f9 11055
606d0858 11056# Check whether --with-ocfdir was given.
6b2e4ec5
ZK
11057if test ${with_ocfdir+y}
11058then :
606d0858 11059 withval=$with_ocfdir; OCFDIR=$withval
635df748
ZK
11060else case e in #(
11061 e) OCFDIR='${prefix}/lib/ocf/resource.d/lvm2' ;;
11062esac
606d0858
AK
11063fi
11064
11065
f11781c5 11066################################################################################
b681b774
ZK
11067{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default run directory" >&5
11068printf %s "checking for default run directory... " >&6; }
11069RUN_DIR="/run"
86ac529b
ZK
11070if test ! -d "$RUN_DIR"
11071then :
11072 RUN_DIR="/var/run"
11073fi
b681b774
ZK
11074{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RUN_DIR" >&5
11075printf "%s\n" "$RUN_DIR" >&6; }
f11781c5
AK
11076
11077
b681b774
ZK
11078# Check whether --with-default-pid-dir was given.
11079if test ${with_default_pid_dir+y}
11080then :
11081 withval=$with_default_pid_dir; DEFAULT_PID_DIR="$withval"
635df748
ZK
11082else case e in #(
11083 e) DEFAULT_PID_DIR=$RUN_DIR ;;
11084esac
b681b774
ZK
11085fi
11086
f11781c5 11087
b681b774 11088printf "%s\n" "#define DEFAULT_PID_DIR \"$DEFAULT_PID_DIR\"" >>confdefs.h
f11781c5
AK
11089
11090
11091
4d0c3ed0 11092
b681b774
ZK
11093# Check whether --with-default-dm-run-dir was given.
11094if test ${with_default_dm_run_dir+y}
6b2e4ec5 11095then :
b681b774 11096 withval=$with_default_dm_run_dir; DEFAULT_DM_RUN_DIR="$withval"
635df748
ZK
11097else case e in #(
11098 e) DEFAULT_DM_RUN_DIR=$RUN_DIR ;;
11099esac
54b362f9
AK
11100fi
11101
11102
b681b774
ZK
11103printf "%s\n" "#define DEFAULT_DM_RUN_DIR \"$DEFAULT_DM_RUN_DIR\"" >>confdefs.h
11104
11105
11106
11107
11108# Check whether --with-default-run-dir was given.
11109if test ${with_default_run_dir+y}
11110then :
11111 withval=$with_default_run_dir; DEFAULT_RUN_DIR="$withval"
635df748
ZK
11112else case e in #(
11113 e) DEFAULT_RUN_DIR="$RUN_DIR/lvm" ;;
11114esac
b681b774
ZK
11115fi
11116
11117
11118printf "%s\n" "#define DEFAULT_RUN_DIR \"$DEFAULT_RUN_DIR\"" >>confdefs.h
11119
11120
11121################################################################################
11122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build cluster mirror log daemon" >&5
11123printf %s "checking whether to build cluster mirror log daemon... " >&6; }
11124# Check whether --enable-cmirrord was given.
11125if test ${enable_cmirrord+y}
11126then :
86ac529b 11127 enableval=$enable_cmirrord; BUILD_CMIRRORD=$enableval
635df748
ZK
11128else case e in #(
11129 e) BUILD_CMIRRORD="no" ;;
11130esac
b681b774
ZK
11131fi
11132
86ac529b
ZK
11133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CMIRRORD" >&5
11134printf "%s\n" "$BUILD_CMIRRORD" >&6; }
b681b774
ZK
11135
11136################################################################################
11137if test "$BUILD_CMIRRORD" = "yes"
11138then :
11139
11140
11141# Check whether --with-cmirrord-pidfile was given.
11142if test ${with_cmirrord_pidfile+y}
11143then :
11144 withval=$with_cmirrord_pidfile; CMIRRORD_PIDFILE=$withval
635df748
ZK
11145else case e in #(
11146 e) CMIRRORD_PIDFILE="$DEFAULT_PID_DIR/cmirrord.pid" ;;
11147esac
b681b774
ZK
11148fi
11149
11150
11151printf "%s\n" "#define CMIRRORD_PIDFILE \"$CMIRRORD_PIDFILE\"" >>confdefs.h
11152
11153
11154fi
11155
11156################################################################################
11157
11158
11159
11160
11161
11162
11163
11164if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
11165 if test -n "$ac_tool_prefix"; then
11166 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
11167set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
11168{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11169printf %s "checking for $ac_word... " >&6; }
11170if test ${ac_cv_path_PKG_CONFIG+y}
11171then :
11172 printf %s "(cached) " >&6
635df748
ZK
11173else case e in #(
11174 e) case $PKG_CONFIG in
b681b774
ZK
11175 [\\/]* | ?:[\\/]*)
11176 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11177 ;;
11178 *)
11179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11180for as_dir in $PATH
11181do
11182 IFS=$as_save_IFS
11183 case $as_dir in #(((
11184 '') as_dir=./ ;;
11185 */) ;;
11186 *) as_dir=$as_dir/ ;;
11187 esac
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11190 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11191 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11192 break 2
11193 fi
11194done
11195 done
11196IFS=$as_save_IFS
11197
11198 ;;
635df748 11199esac ;;
b681b774
ZK
11200esac
11201fi
11202PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11203if test -n "$PKG_CONFIG"; then
11204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11205printf "%s\n" "$PKG_CONFIG" >&6; }
11206else
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11208printf "%s\n" "no" >&6; }
11209fi
11210
11211
11212fi
11213if test -z "$ac_cv_path_PKG_CONFIG"; then
11214 ac_pt_PKG_CONFIG=$PKG_CONFIG
11215 # Extract the first word of "pkg-config", so it can be a program name with args.
11216set dummy pkg-config; ac_word=$2
11217{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11218printf %s "checking for $ac_word... " >&6; }
11219if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
11220then :
6b2e4ec5 11221 printf %s "(cached) " >&6
635df748
ZK
11222else case e in #(
11223 e) case $ac_pt_PKG_CONFIG in
54b362f9 11224 [\\/]* | ?:[\\/]*)
f11781c5 11225 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
54b362f9
AK
11226 ;;
11227 *)
11228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11229for as_dir in $PATH
11230do
11231 IFS=$as_save_IFS
6b2e4ec5
ZK
11232 case $as_dir in #(((
11233 '') as_dir=./ ;;
11234 */) ;;
11235 *) as_dir=$as_dir/ ;;
11236 esac
f11781c5 11237 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
11238 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11239 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
11240 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
54b362f9
AK
11241 break 2
11242 fi
11243done
f11781c5 11244 done
54b362f9
AK
11245IFS=$as_save_IFS
11246
11247 ;;
635df748 11248esac ;;
54b362f9
AK
11249esac
11250fi
f11781c5
AK
11251ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
11252if test -n "$ac_pt_PKG_CONFIG"; then
6b2e4ec5
ZK
11253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
11254printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
54b362f9 11255else
6b2e4ec5
ZK
11256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11257printf "%s\n" "no" >&6; }
54b362f9
AK
11258fi
11259
f11781c5
AK
11260 if test "x$ac_pt_PKG_CONFIG" = x; then
11261 PKG_CONFIG=""
11262 else
11263 case $cross_compiling:$ac_tool_warned in
11264yes:)
6b2e4ec5
ZK
11265{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11266printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
f11781c5
AK
11267ac_tool_warned=yes ;;
11268esac
11269 PKG_CONFIG=$ac_pt_PKG_CONFIG
11270 fi
d1e8046f 11271else
f11781c5 11272 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
d1e8046f
AK
11273fi
11274
f11781c5
AK
11275fi
11276if test -n "$PKG_CONFIG"; then
11277 _pkg_min_version=0.9.0
6b2e4ec5
ZK
11278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
11279printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
f11781c5 11280 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6b2e4ec5
ZK
11281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11282printf "%s\n" "yes" >&6; }
f11781c5 11283 else
6b2e4ec5
ZK
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11285printf "%s\n" "no" >&6; }
f11781c5
AK
11286 PKG_CONFIG=""
11287 fi
11288fi
418fb5a3
ZK
11289if test -z "$PKG_CONFIG"; then
11290 as_fn_error $? "pkg-config not found" "$LINENO" 5
11291fi
b681b774 11292if test "$BUILD_CMIRRORD" = "yes" && test "$HAVE_CPG" != "yes"
6b2e4ec5 11293then :
5723db01
PR
11294
11295
f11781c5 11296pkg_failed=no
a7cf55c6
ZK
11297{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpg" >&5
11298printf %s "checking for libcpg... " >&6; }
93bd259b 11299
0d22b581
JT
11300if test -n "$CPG_CFLAGS"; then
11301 pkg_cv_CPG_CFLAGS="$CPG_CFLAGS"
f11781c5
AK
11302 elif test -n "$PKG_CONFIG"; then
11303 if test -n "$PKG_CONFIG" && \
6b2e4ec5 11304 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
0d22b581 11305 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
f11781c5 11306 ac_status=$?
6b2e4ec5 11307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f11781c5 11308 test $ac_status = 0; }; then
0d22b581 11309 pkg_cv_CPG_CFLAGS=`$PKG_CONFIG --cflags "libcpg" 2>/dev/null`
4d0c3ed0 11310 test "x$?" != "x0" && pkg_failed=yes
f11781c5
AK
11311else
11312 pkg_failed=yes
ad6254c5 11313fi
f11781c5
AK
11314 else
11315 pkg_failed=untried
ad6254c5 11316fi
0d22b581
JT
11317if test -n "$CPG_LIBS"; then
11318 pkg_cv_CPG_LIBS="$CPG_LIBS"
f11781c5
AK
11319 elif test -n "$PKG_CONFIG"; then
11320 if test -n "$PKG_CONFIG" && \
6b2e4ec5 11321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpg\""; } >&5
0d22b581 11322 ($PKG_CONFIG --exists --print-errors "libcpg") 2>&5
93bd259b 11323 ac_status=$?
6b2e4ec5 11324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
f11781c5 11325 test $ac_status = 0; }; then
0d22b581 11326 pkg_cv_CPG_LIBS=`$PKG_CONFIG --libs "libcpg" 2>/dev/null`
4d0c3ed0 11327 test "x$?" != "x0" && pkg_failed=yes
93bd259b 11328else
f11781c5
AK
11329 pkg_failed=yes
11330fi
11331 else
11332 pkg_failed=untried
93bd259b
AK
11333fi
11334
f11781c5
AK
11335
11336
11337if test $pkg_failed = yes; then
a7cf55c6 11338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 11339printf "%s\n" "no" >&6; }
f11781c5
AK
11340
11341if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
11342 _pkg_short_errors_supported=yes
11343else
11344 _pkg_short_errors_supported=no
93bd259b 11345fi
f11781c5 11346 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 11347 CPG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcpg" 2>&1`
f11781c5 11348 else
a7cf55c6 11349 CPG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcpg" 2>&1`
f11781c5 11350 fi
a7cf55c6
ZK
11351 # Put the nasty error message in config.log where it belongs
11352 echo "$CPG_PKG_ERRORS" >&5
93bd259b 11353
a7cf55c6 11354 as_fn_error $? "Package requirements (libcpg) were not met:
93bd259b 11355
0d22b581 11356$CPG_PKG_ERRORS
93bd259b 11357
0d22b581
JT
11358Consider adjusting the PKG_CONFIG_PATH environment variable if you
11359installed software in a non-standard prefix.
93bd259b 11360
0d22b581
JT
11361Alternatively, you may set the environment variables CPG_CFLAGS
11362and CPG_LIBS to avoid the need to call pkg-config.
11363See the pkg-config man page for more details." "$LINENO" 5
f11781c5 11364elif test $pkg_failed = untried; then
a7cf55c6 11365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 11366printf "%s\n" "no" >&6; }
635df748
ZK
11367 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
11368printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
0d22b581
JT
11369as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
11370is in your PATH or set the PKG_CONFIG environment variable to the full
11371path to pkg-config.
93bd259b 11372
0d22b581
JT
11373Alternatively, you may set the environment variables CPG_CFLAGS
11374and CPG_LIBS to avoid the need to call pkg-config.
11375See the pkg-config man page for more details.
f11781c5 11376
0d22b581 11377To get pkg-config, see <http://pkg-config.freedesktop.org/>.
635df748 11378See 'config.log' for more details" "$LINENO" 5; }
f11781c5 11379else
a7cf55c6
ZK
11380 CPG_CFLAGS=$pkg_cv_CPG_CFLAGS
11381 CPG_LIBS=$pkg_cv_CPG_LIBS
6b2e4ec5
ZK
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11383printf "%s\n" "yes" >&6; }
0d22b581 11384
93bd259b 11385fi
b681b774 11386
93bd259b
AK
11387fi
11388
0d22b581 11389################################################################################
6b2e4ec5
ZK
11390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
11391printf %s "checking whether to enable debugging... " >&6; }
0d22b581 11392# Check whether --enable-debug was given.
6b2e4ec5
ZK
11393if test ${enable_debug+y}
11394then :
0d22b581 11395 enableval=$enable_debug; DEBUG=$enableval
635df748
ZK
11396else case e in #(
11397 e) DEBUG="no" ;;
11398esac
f11781c5 11399fi
0d22b581 11400
6b2e4ec5
ZK
11401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEBUG" >&5
11402printf "%s\n" "$DEBUG" >&6; }
0d22b581 11403
b681b774
ZK
11404if test "$DEBUG" = "yes"
11405then :
11406 COPTIMISE_FLAG=""
635df748
ZK
11407else case e in #(
11408 e) CSCOPE_CMD="" ;;
11409esac
ad6254c5 11410fi
ad6254c5 11411
72b2cb61 11412
72b2cb61 11413
0d22b581
JT
11414 ac_save_CFLAGS=$CFLAGS
11415 CFLAGS=-Wjump-misses-init
6b2e4ec5
ZK
11416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wjump-misses-init flag" >&5
11417printf %s "checking whether $CC accepts -Wjump-misses-init flag... " >&6; }
11418if test ${ac_cv_flag_HAVE_WJUMP+y}
11419then :
11420 printf %s "(cached) " >&6
635df748
ZK
11421else case e in #(
11422 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0d22b581 11423/* end confdefs.h. */
ad6254c5 11424
0d22b581 11425int
6b2e4ec5 11426main (void)
0d22b581
JT
11427{
11428
11429 ;
11430 return 0;
11431}
11432_ACEOF
6b2e4ec5
ZK
11433if ac_fn_c_try_compile "$LINENO"
11434then :
0d22b581 11435 ac_cv_flag_HAVE_WJUMP=yes
635df748
ZK
11436else case e in #(
11437 e) ac_cv_flag_HAVE_WJUMP=no ;;
11438esac
f11781c5 11439fi
635df748
ZK
11440rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11441esac
ad6254c5 11442fi
6b2e4ec5
ZK
11443{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WJUMP" >&5
11444printf "%s\n" "$ac_cv_flag_HAVE_WJUMP" >&6; }
0d22b581
JT
11445 CFLAGS=$ac_save_CFLAGS
11446 HAVE_WJUMP=$ac_cv_flag_HAVE_WJUMP
11447 if test "HAVE_WJUMP" = yes; then
11448 :
11449 else
11450 :
11451 fi
ad6254c5 11452
f30875db 11453
f11781c5 11454
f30875db 11455
0d22b581
JT
11456 ac_save_CFLAGS=$CFLAGS
11457 CFLAGS=-Wclobbered
6b2e4ec5
ZK
11458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wclobbered flag" >&5
11459printf %s "checking whether $CC accepts -Wclobbered flag... " >&6; }
11460if test ${ac_cv_flag_HAVE_WCLOBBERED+y}
11461then :
11462 printf %s "(cached) " >&6
635df748
ZK
11463else case e in #(
11464 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0d22b581 11465/* end confdefs.h. */
d0191583 11466
0d22b581 11467int
6b2e4ec5 11468main (void)
0d22b581 11469{
8a2fc586 11470
0d22b581
JT
11471 ;
11472 return 0;
11473}
11474_ACEOF
6b2e4ec5
ZK
11475if ac_fn_c_try_compile "$LINENO"
11476then :
0d22b581 11477 ac_cv_flag_HAVE_WCLOBBERED=yes
635df748
ZK
11478else case e in #(
11479 e) ac_cv_flag_HAVE_WCLOBBERED=no ;;
11480esac
8a2fc586 11481fi
635df748
ZK
11482rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11483esac
8a2fc586 11484fi
6b2e4ec5
ZK
11485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WCLOBBERED" >&5
11486printf "%s\n" "$ac_cv_flag_HAVE_WCLOBBERED" >&6; }
0d22b581
JT
11487 CFLAGS=$ac_save_CFLAGS
11488 HAVE_WCLOBBERED=$ac_cv_flag_HAVE_WCLOBBERED
11489 if test "HAVE_WCLOBBERED" = yes; then
11490 :
11491 else
11492 :
11493 fi
d0191583 11494
d0191583 11495
f8f6ec92 11496
8a2fc586 11497
0d22b581
JT
11498 ac_save_CFLAGS=$CFLAGS
11499 CFLAGS=-Wsync-nand
6b2e4ec5
ZK
11500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Wsync-nand flag" >&5
11501printf %s "checking whether $CC accepts -Wsync-nand flag... " >&6; }
11502if test ${ac_cv_flag_HAVE_WSYNCNAND+y}
11503then :
11504 printf %s "(cached) " >&6
635df748
ZK
11505else case e in #(
11506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
0d22b581 11507/* end confdefs.h. */
ad6254c5 11508
0d22b581 11509int
6b2e4ec5 11510main (void)
0d22b581
JT
11511{
11512
11513 ;
11514 return 0;
11515}
11516_ACEOF
6b2e4ec5
ZK
11517if ac_fn_c_try_compile "$LINENO"
11518then :
0d22b581 11519 ac_cv_flag_HAVE_WSYNCNAND=yes
635df748
ZK
11520else case e in #(
11521 e) ac_cv_flag_HAVE_WSYNCNAND=no ;;
11522esac
ad6254c5 11523fi
635df748
ZK
11524rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11525esac
ad6254c5 11526fi
6b2e4ec5
ZK
11527{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_flag_HAVE_WSYNCNAND" >&5
11528printf "%s\n" "$ac_cv_flag_HAVE_WSYNCNAND" >&6; }
0d22b581
JT
11529 CFLAGS=$ac_save_CFLAGS
11530 HAVE_WSYNCNAND=$ac_cv_flag_HAVE_WSYNCNAND
11531 if test "HAVE_WSYNCNAND" = yes; then
11532 :
11533 else
11534 :
11535 fi
ad6254c5 11536
72b2cb61 11537
f8f6ec92 11538
0d22b581 11539################################################################################
6b2e4ec5
ZK
11540{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C optimisation flag" >&5
11541printf %s "checking for C optimisation flag... " >&6; }
f8f6ec92 11542
0d22b581 11543# Check whether --with-optimisation was given.
6b2e4ec5
ZK
11544if test ${with_optimisation+y}
11545then :
0d22b581 11546 withval=$with_optimisation; COPTIMISE_FLAG=$withval
f8f6ec92
ZK
11547fi
11548
6b2e4ec5
ZK
11549{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COPTIMISE_FLAG" >&5
11550printf "%s\n" "$COPTIMISE_FLAG" >&6; }
f8f6ec92 11551
1cedbaf1 11552################################################################################
6b2e4ec5
ZK
11553{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use symbol versioning" >&5
11554printf %s "checking whether to use symbol versioning... " >&6; }
1cedbaf1
ZK
11555
11556# Check whether --with-symvers was given.
6b2e4ec5
ZK
11557if test ${with_symvers+y}
11558then :
b681b774
ZK
11559 withval=$with_symvers;
11560 case "$withval" in #(
11561 gnu|no) :
11562 symvers=$withval ;; #(
11563 *) :
11564 as_fn_error $? "--with-symvers parameter invalid" "$LINENO" 5 ;;
11565esac
635df748
ZK
11566else case e in #(
11567 e) symvers="gnu" ;;
11568esac
1cedbaf1
ZK
11569fi
11570
6b2e4ec5
ZK
11571{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $symvers" >&5
11572printf "%s\n" "$symvers" >&6; }
1cedbaf1 11573
b681b774
ZK
11574if test "$GCC" = "yes" && test "$symvers" = "gnu"
11575then :
11576
1cedbaf1 11577
6b2e4ec5 11578printf "%s\n" "#define GNU_SYMVER 1" >>confdefs.h
1cedbaf1 11579
b681b774
ZK
11580 case "$host_os" in #(
11581 linux*) :
11582
f569ac59 11583 CLDFLAGS="-Wl,--version-script,.export.sym"
b681b774
ZK
11584 LDDEPS="$LDDEPS .export.sym" ;; #(
11585 *) :
11586 ;;
11587esac
11588
1cedbaf1
ZK
11589fi
11590
0d22b581 11591################################################################################
6b2e4ec5
ZK
11592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to gather gcov profiling data" >&5
11593printf %s "checking whether to gather gcov profiling data... " >&6; }
0d22b581 11594# Check whether --enable-profiling was given.
6b2e4ec5
ZK
11595if test ${enable_profiling+y}
11596then :
0d22b581 11597 enableval=$enable_profiling; PROFILING=$enableval
635df748
ZK
11598else case e in #(
11599 e) PROFILING="no" ;;
11600esac
66e941e8
JM
11601fi
11602
6b2e4ec5
ZK
11603{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PROFILING" >&5
11604printf "%s\n" "$PROFILING" >&6; }
f11781c5 11605
b681b774
ZK
11606if test "$PROFILING" = "yes"
11607then :
11608
2b864aeb 11609 COPTIMISE_FLAG="$COPTIMISE_FLAG -fprofile-arcs -fprofile-update=atomic -ftest-coverage"
0d22b581
JT
11610 if test -n "$ac_tool_prefix"; then
11611 # Extract the first word of "${ac_tool_prefix}lcov", so it can be a program name with args.
11612set dummy ${ac_tool_prefix}lcov; ac_word=$2
6b2e4ec5
ZK
11613{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11614printf %s "checking for $ac_word... " >&6; }
11615if test ${ac_cv_path_LCOV+y}
11616then :
11617 printf %s "(cached) " >&6
635df748
ZK
11618else case e in #(
11619 e) case $LCOV in
0d22b581
JT
11620 [\\/]* | ?:[\\/]*)
11621 ac_cv_path_LCOV="$LCOV" # Let the user override the test with a path.
11622 ;;
11623 *)
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625for as_dir in $PATH
11626do
11627 IFS=$as_save_IFS
6b2e4ec5
ZK
11628 case $as_dir in #(((
11629 '') as_dir=./ ;;
11630 */) ;;
11631 *) as_dir=$as_dir/ ;;
11632 esac
0d22b581 11633 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
11634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11635 ac_cv_path_LCOV="$as_dir$ac_word$ac_exec_ext"
11636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
0d22b581
JT
11637 break 2
11638 fi
dd1f2c09 11639done
0d22b581
JT
11640 done
11641IFS=$as_save_IFS
dd1f2c09 11642
0d22b581 11643 ;;
635df748 11644esac ;;
0d22b581 11645esac
b6d7a484 11646fi
0d22b581
JT
11647LCOV=$ac_cv_path_LCOV
11648if test -n "$LCOV"; then
6b2e4ec5
ZK
11649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
11650printf "%s\n" "$LCOV" >&6; }
b6d7a484 11651else
6b2e4ec5
ZK
11652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653printf "%s\n" "no" >&6; }
b6d7a484 11654fi
0d22b581
JT
11655
11656
b6d7a484 11657fi
0d22b581
JT
11658if test -z "$ac_cv_path_LCOV"; then
11659 ac_pt_LCOV=$LCOV
11660 # Extract the first word of "lcov", so it can be a program name with args.
11661set dummy lcov; ac_word=$2
6b2e4ec5
ZK
11662{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11663printf %s "checking for $ac_word... " >&6; }
11664if test ${ac_cv_path_ac_pt_LCOV+y}
11665then :
11666 printf %s "(cached) " >&6
635df748
ZK
11667else case e in #(
11668 e) case $ac_pt_LCOV in
0d22b581
JT
11669 [\\/]* | ?:[\\/]*)
11670 ac_cv_path_ac_pt_LCOV="$ac_pt_LCOV" # Let the user override the test with a path.
11671 ;;
11672 *)
11673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11674for as_dir in $PATH
11675do
11676 IFS=$as_save_IFS
6b2e4ec5
ZK
11677 case $as_dir in #(((
11678 '') as_dir=./ ;;
11679 */) ;;
11680 *) as_dir=$as_dir/ ;;
11681 esac
0d22b581 11682 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
11683 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11684 ac_cv_path_ac_pt_LCOV="$as_dir$ac_word$ac_exec_ext"
11685 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
0d22b581
JT
11686 break 2
11687 fi
11688done
11689 done
11690IFS=$as_save_IFS
f11781c5 11691
0d22b581 11692 ;;
635df748 11693esac ;;
0d22b581 11694esac
b6d7a484 11695fi
0d22b581
JT
11696ac_pt_LCOV=$ac_cv_path_ac_pt_LCOV
11697if test -n "$ac_pt_LCOV"; then
6b2e4ec5
ZK
11698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LCOV" >&5
11699printf "%s\n" "$ac_pt_LCOV" >&6; }
b6d7a484 11700else
6b2e4ec5
ZK
11701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11702printf "%s\n" "no" >&6; }
b6d7a484
AK
11703fi
11704
0d22b581
JT
11705 if test "x$ac_pt_LCOV" = x; then
11706 LCOV=""
11707 else
11708 case $cross_compiling:$ac_tool_warned in
11709yes:)
6b2e4ec5
ZK
11710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11711printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
0d22b581
JT
11712ac_tool_warned=yes ;;
11713esac
11714 LCOV=$ac_pt_LCOV
11715 fi
b6d7a484 11716else
0d22b581 11717 LCOV="$ac_cv_path_LCOV"
b6d7a484
AK
11718fi
11719
0d22b581
JT
11720 if test -n "$ac_tool_prefix"; then
11721 # Extract the first word of "${ac_tool_prefix}genhtml", so it can be a program name with args.
11722set dummy ${ac_tool_prefix}genhtml; ac_word=$2
6b2e4ec5
ZK
11723{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724printf %s "checking for $ac_word... " >&6; }
11725if test ${ac_cv_path_GENHTML+y}
11726then :
11727 printf %s "(cached) " >&6
635df748
ZK
11728else case e in #(
11729 e) case $GENHTML in
0d22b581
JT
11730 [\\/]* | ?:[\\/]*)
11731 ac_cv_path_GENHTML="$GENHTML" # Let the user override the test with a path.
11732 ;;
11733 *)
11734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11735for as_dir in $PATH
11736do
11737 IFS=$as_save_IFS
6b2e4ec5
ZK
11738 case $as_dir in #(((
11739 '') as_dir=./ ;;
11740 */) ;;
11741 *) as_dir=$as_dir/ ;;
11742 esac
0d22b581 11743 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
11744 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11745 ac_cv_path_GENHTML="$as_dir$ac_word$ac_exec_ext"
11746 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
0d22b581
JT
11747 break 2
11748 fi
b6d7a484 11749done
0d22b581
JT
11750 done
11751IFS=$as_save_IFS
b6d7a484 11752
0d22b581 11753 ;;
635df748 11754esac ;;
0d22b581 11755esac
f11781c5 11756fi
0d22b581
JT
11757GENHTML=$ac_cv_path_GENHTML
11758if test -n "$GENHTML"; then
6b2e4ec5
ZK
11759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
11760printf "%s\n" "$GENHTML" >&6; }
f11781c5 11761else
6b2e4ec5
ZK
11762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11763printf "%s\n" "no" >&6; }
dd1f2c09
MB
11764fi
11765
f11781c5 11766
f11781c5 11767fi
0d22b581
JT
11768if test -z "$ac_cv_path_GENHTML"; then
11769 ac_pt_GENHTML=$GENHTML
11770 # Extract the first word of "genhtml", so it can be a program name with args.
11771set dummy genhtml; ac_word=$2
6b2e4ec5
ZK
11772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11773printf %s "checking for $ac_word... " >&6; }
11774if test ${ac_cv_path_ac_pt_GENHTML+y}
11775then :
11776 printf %s "(cached) " >&6
635df748
ZK
11777else case e in #(
11778 e) case $ac_pt_GENHTML in
0d22b581
JT
11779 [\\/]* | ?:[\\/]*)
11780 ac_cv_path_ac_pt_GENHTML="$ac_pt_GENHTML" # Let the user override the test with a path.
11781 ;;
11782 *)
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784for as_dir in $PATH
11785do
11786 IFS=$as_save_IFS
6b2e4ec5
ZK
11787 case $as_dir in #(((
11788 '') as_dir=./ ;;
11789 */) ;;
11790 *) as_dir=$as_dir/ ;;
11791 esac
0d22b581 11792 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
11793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11794 ac_cv_path_ac_pt_GENHTML="$as_dir$ac_word$ac_exec_ext"
11795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
0d22b581
JT
11796 break 2
11797 fi
11798done
11799 done
11800IFS=$as_save_IFS
f11781c5 11801
0d22b581 11802 ;;
635df748 11803esac ;;
0d22b581 11804esac
dd1f2c09 11805fi
0d22b581
JT
11806ac_pt_GENHTML=$ac_cv_path_ac_pt_GENHTML
11807if test -n "$ac_pt_GENHTML"; then
6b2e4ec5
ZK
11808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENHTML" >&5
11809printf "%s\n" "$ac_pt_GENHTML" >&6; }
c923dee8 11810else
6b2e4ec5
ZK
11811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11812printf "%s\n" "no" >&6; }
c923dee8
AK
11813fi
11814
0d22b581
JT
11815 if test "x$ac_pt_GENHTML" = x; then
11816 GENHTML=""
11817 else
11818 case $cross_compiling:$ac_tool_warned in
11819yes:)
6b2e4ec5
ZK
11820{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11821printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
0d22b581
JT
11822ac_tool_warned=yes ;;
11823esac
11824 GENHTML=$ac_pt_GENHTML
11825 fi
c923dee8 11826else
0d22b581 11827 GENHTML="$ac_cv_path_GENHTML"
c923dee8
AK
11828fi
11829
b681b774
ZK
11830 if test -z "$LCOV" || test -z "$GENHTML"
11831then :
11832
11833 as_fn_error $? "lcov and genhtml are required for profiling" "$LINENO" 5
11834
11835fi
0d22b581
JT
11836 if test -n "$ac_tool_prefix"; then
11837 # Extract the first word of "${ac_tool_prefix}genpng", so it can be a program name with args.
11838set dummy ${ac_tool_prefix}genpng; ac_word=$2
6b2e4ec5
ZK
11839{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11840printf %s "checking for $ac_word... " >&6; }
11841if test ${ac_cv_path_GENPNG+y}
11842then :
11843 printf %s "(cached) " >&6
635df748
ZK
11844else case e in #(
11845 e) case $GENPNG in
0d22b581
JT
11846 [\\/]* | ?:[\\/]*)
11847 ac_cv_path_GENPNG="$GENPNG" # Let the user override the test with a path.
11848 ;;
11849 *)
11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853 IFS=$as_save_IFS
6b2e4ec5
ZK
11854 case $as_dir in #(((
11855 '') as_dir=./ ;;
11856 */) ;;
11857 *) as_dir=$as_dir/ ;;
11858 esac
0d22b581 11859 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
11860 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11861 ac_cv_path_GENPNG="$as_dir$ac_word$ac_exec_ext"
11862 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
0d22b581
JT
11863 break 2
11864 fi
11865done
11866 done
11867IFS=$as_save_IFS
c923dee8 11868
0d22b581 11869 ;;
635df748 11870esac ;;
0d22b581
JT
11871esac
11872fi
11873GENPNG=$ac_cv_path_GENPNG
11874if test -n "$GENPNG"; then
6b2e4ec5
ZK
11875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GENPNG" >&5
11876printf "%s\n" "$GENPNG" >&6; }
c923dee8 11877else
6b2e4ec5
ZK
11878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11879printf "%s\n" "no" >&6; }
c923dee8
AK
11880fi
11881
c923dee8 11882
0d22b581
JT
11883fi
11884if test -z "$ac_cv_path_GENPNG"; then
11885 ac_pt_GENPNG=$GENPNG
11886 # Extract the first word of "genpng", so it can be a program name with args.
11887set dummy genpng; ac_word=$2
6b2e4ec5
ZK
11888{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11889printf %s "checking for $ac_word... " >&6; }
11890if test ${ac_cv_path_ac_pt_GENPNG+y}
11891then :
11892 printf %s "(cached) " >&6
635df748
ZK
11893else case e in #(
11894 e) case $ac_pt_GENPNG in
0d22b581
JT
11895 [\\/]* | ?:[\\/]*)
11896 ac_cv_path_ac_pt_GENPNG="$ac_pt_GENPNG" # Let the user override the test with a path.
11897 ;;
11898 *)
11899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11900for as_dir in $PATH
11901do
11902 IFS=$as_save_IFS
6b2e4ec5
ZK
11903 case $as_dir in #(((
11904 '') as_dir=./ ;;
11905 */) ;;
11906 *) as_dir=$as_dir/ ;;
11907 esac
0d22b581 11908 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
11909 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11910 ac_cv_path_ac_pt_GENPNG="$as_dir$ac_word$ac_exec_ext"
11911 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
0d22b581
JT
11912 break 2
11913 fi
11914done
11915 done
11916IFS=$as_save_IFS
c923dee8 11917
0d22b581 11918 ;;
635df748 11919esac ;;
0d22b581
JT
11920esac
11921fi
11922ac_pt_GENPNG=$ac_cv_path_ac_pt_GENPNG
11923if test -n "$ac_pt_GENPNG"; then
6b2e4ec5
ZK
11924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_GENPNG" >&5
11925printf "%s\n" "$ac_pt_GENPNG" >&6; }
658d524d 11926else
6b2e4ec5
ZK
11927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11928printf "%s\n" "no" >&6; }
8b789822
BR
11929fi
11930
0d22b581
JT
11931 if test "x$ac_pt_GENPNG" = x; then
11932 GENPNG=""
11933 else
11934 case $cross_compiling:$ac_tool_warned in
11935yes:)
6b2e4ec5
ZK
11936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11937printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
0d22b581
JT
11938ac_tool_warned=yes ;;
11939esac
11940 GENPNG=$ac_pt_GENPNG
11941 fi
af7a11bc 11942else
0d22b581 11943 GENPNG="$ac_cv_path_GENPNG"
af7a11bc
BR
11944fi
11945
b681b774
ZK
11946 if test -n "$GENPNG"
11947then :
11948
6b2e4ec5
ZK
11949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $GENPNG has all required modules" >&5
11950printf %s "checking whether $GENPNG has all required modules... " >&6; }
b681b774
ZK
11951 if "$GENPNG" --help > /dev/null 2>&1
11952then :
11953
6b2e4ec5
ZK
11954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
11955printf "%s\n" "ok" >&6; }
0d22b581 11956 GENHTML="$GENHTML --frames"
b681b774 11957
635df748
ZK
11958else case e in #(
11959 e)
6b2e4ec5
ZK
11960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not supported" >&5
11961printf "%s\n" "not supported" >&6; }
11962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: GD.pm perl module is not installed" >&5
11963printf "%s\n" "$as_me: WARNING: GD.pm perl module is not installed" >&2;}
0d22b581 11964 GENPNG=
635df748
ZK
11965 ;;
11966esac
b681b774
ZK
11967fi
11968
11969fi
11970
af7a11bc
BR
11971fi
11972
2159a142 11973################################################################################
0d22b581
JT
11974TESTSUITE_DATA='${datarootdir}/lvm2-testsuite'
11975# double eval needed ${datarootdir} -> ${prefix}/share -> real path
2159a142 11976
6b2e4ec5 11977printf "%s\n" "#define TESTSUITE_DATA \"$(eval echo $(eval echo $TESTSUITE_DATA))\"" >>confdefs.h
2159a142 11978
2159a142 11979
0d22b581 11980################################################################################
6b2e4ec5
ZK
11981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable valgrind awareness of pools" >&5
11982printf %s "checking whether to enable valgrind awareness of pools... " >&6; }
0d22b581 11983# Check whether --enable-valgrind_pool was given.
6b2e4ec5
ZK
11984if test ${enable_valgrind_pool+y}
11985then :
0d22b581 11986 enableval=$enable_valgrind_pool; VALGRIND_POOL=$enableval
635df748
ZK
11987else case e in #(
11988 e) VALGRIND_POOL="no" ;;
11989esac
2159a142
AK
11990fi
11991
6b2e4ec5
ZK
11992{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VALGRIND_POOL" >&5
11993printf "%s\n" "$VALGRIND_POOL" >&6; }
0d22b581 11994
2159a142
AK
11995
11996pkg_failed=no
a7cf55c6
ZK
11997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for valgrind" >&5
11998printf %s "checking for valgrind... " >&6; }
2159a142 11999
0d22b581
JT
12000if test -n "$VALGRIND_CFLAGS"; then
12001 pkg_cv_VALGRIND_CFLAGS="$VALGRIND_CFLAGS"
2159a142
AK
12002 elif test -n "$PKG_CONFIG"; then
12003 if test -n "$PKG_CONFIG" && \
6b2e4ec5 12004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
0d22b581 12005 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
2159a142 12006 ac_status=$?
6b2e4ec5 12007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159a142 12008 test $ac_status = 0; }; then
0d22b581 12009 pkg_cv_VALGRIND_CFLAGS=`$PKG_CONFIG --cflags "valgrind" 2>/dev/null`
2159a142
AK
12010 test "x$?" != "x0" && pkg_failed=yes
12011else
12012 pkg_failed=yes
12013fi
12014 else
12015 pkg_failed=untried
12016fi
0d22b581
JT
12017if test -n "$VALGRIND_LIBS"; then
12018 pkg_cv_VALGRIND_LIBS="$VALGRIND_LIBS"
2159a142
AK
12019 elif test -n "$PKG_CONFIG"; then
12020 if test -n "$PKG_CONFIG" && \
6b2e4ec5 12021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"valgrind\""; } >&5
0d22b581 12022 ($PKG_CONFIG --exists --print-errors "valgrind") 2>&5
2159a142 12023 ac_status=$?
6b2e4ec5 12024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2159a142 12025 test $ac_status = 0; }; then
0d22b581 12026 pkg_cv_VALGRIND_LIBS=`$PKG_CONFIG --libs "valgrind" 2>/dev/null`
2159a142
AK
12027 test "x$?" != "x0" && pkg_failed=yes
12028else
12029 pkg_failed=yes
12030fi
12031 else
12032 pkg_failed=untried
12033fi
12034
12035
12036
12037if test $pkg_failed = yes; then
a7cf55c6 12038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12039printf "%s\n" "no" >&6; }
2159a142
AK
12040
12041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12042 _pkg_short_errors_supported=yes
12043else
12044 _pkg_short_errors_supported=no
12045fi
12046 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 12047 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "valgrind" 2>&1`
2159a142 12048 else
a7cf55c6 12049 VALGRIND_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "valgrind" 2>&1`
2159a142 12050 fi
a7cf55c6
ZK
12051 # Put the nasty error message in config.log where it belongs
12052 echo "$VALGRIND_PKG_ERRORS" >&5
2159a142 12053
b681b774
ZK
12054
12055 if test "$VALGRIND_POOL" = "yes"
12056then :
12057 as_fn_error $? "bailing out" "$LINENO" 5
12058fi
12059
2159a142 12060elif test $pkg_failed = untried; then
a7cf55c6 12061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12062printf "%s\n" "no" >&6; }
b681b774
ZK
12063
12064 if test "$VALGRIND_POOL" = "yes"
12065then :
12066 as_fn_error $? "bailing out" "$LINENO" 5
12067fi
12068
2159a142 12069else
a7cf55c6
ZK
12070 VALGRIND_CFLAGS=$pkg_cv_VALGRIND_CFLAGS
12071 VALGRIND_LIBS=$pkg_cv_VALGRIND_LIBS
6b2e4ec5
ZK
12072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073printf "%s\n" "yes" >&6; }
a7cf55c6 12074 HAVE_VALGRIND="yes"
0d22b581
JT
12075fi
12076
12077
b681b774
ZK
12078if test "$HAVE_VALGRIND" = "yes"
12079then :
12080
0d22b581 12081
6b2e4ec5 12082printf "%s\n" "#define HAVE_VALGRIND 1" >>confdefs.h
0d22b581 12083
b681b774 12084
0d22b581
JT
12085fi
12086
b681b774
ZK
12087if test "$VALGRIND_POOL" = "yes"
12088then :
12089
0d22b581 12090
6b2e4ec5 12091printf "%s\n" "#define VALGRIND_POOL 1" >>confdefs.h
0d22b581 12092
b681b774 12093
0d22b581
JT
12094fi
12095
12096################################################################################
6b2e4ec5
ZK
12097{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use device-mapper" >&5
12098printf %s "checking whether to use device-mapper... " >&6; }
0d22b581 12099# Check whether --enable-devmapper was given.
6b2e4ec5
ZK
12100if test ${enable_devmapper+y}
12101then :
0d22b581
JT
12102 enableval=$enable_devmapper; DEVMAPPER=$enableval
12103fi
12104
6b2e4ec5
ZK
12105{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEVMAPPER" >&5
12106printf "%s\n" "$DEVMAPPER" >&6; }
0d22b581 12107
b681b774
ZK
12108if test "$DEVMAPPER" = "yes"
12109then :
12110
0d22b581 12111
6b2e4ec5 12112printf "%s\n" "#define DEVMAPPER_SUPPORT 1" >>confdefs.h
0d22b581 12113
b681b774 12114
2159a142 12115fi
0d22b581 12116
fe70b03d 12117################################################################################
6b2e4ec5
ZK
12118{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmpolld" >&5
12119printf %s "checking whether to build lvmpolld... " >&6; }
0d22b581 12120# Check whether --enable-lvmpolld was given.
6b2e4ec5
ZK
12121if test ${enable_lvmpolld+y}
12122then :
86ac529b 12123 enableval=$enable_lvmpolld; BUILD_LVMPOLLD=$enableval
635df748
ZK
12124else case e in #(
12125 e) BUILD_LVMPOLLD="no" ;;
12126esac
0d22b581 12127fi
fe70b03d 12128
6b2e4ec5
ZK
12129{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMPOLLD" >&5
12130printf "%s\n" "$BUILD_LVMPOLLD" >&6; }
0d22b581
JT
12131
12132################################################################################
12133BUILD_LVMLOCKD=no
12134
6b2e4ec5
ZK
12135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdsanlock" >&5
12136printf %s "checking whether to build lvmlockdsanlock... " >&6; }
0d22b581 12137# Check whether --enable-lvmlockd-sanlock was given.
6b2e4ec5
ZK
12138if test ${enable_lvmlockd_sanlock+y}
12139then :
07cd341b 12140 enableval=$enable_lvmlockd_sanlock; BUILD_LOCKDSANLOCK=$enableval
635df748
ZK
12141else case e in #(
12142 e) BUILD_LOCKDSANLOCK="no" ;;
12143esac
9bfc0be4
PR
12144fi
12145
07cd341b
ZK
12146{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDSANLOCK" >&5
12147printf "%s\n" "$BUILD_LOCKDSANLOCK" >&6; }
9bfc0be4 12148
b681b774
ZK
12149if test "$BUILD_LOCKDSANLOCK" = "yes"
12150then :
12151
9bfc0be4
PR
12152
12153pkg_failed=no
569dd5d0
ZK
12154{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsanlock_client >= 3.7.0" >&5
12155printf %s "checking for libsanlock_client >= 3.7.0... " >&6; }
9bfc0be4 12156
a861f042
ZK
12157if test -n "$LIBSANLOCKCLIENT_CFLAGS"; then
12158 pkg_cv_LIBSANLOCKCLIENT_CFLAGS="$LIBSANLOCKCLIENT_CFLAGS"
9bfc0be4
PR
12159 elif test -n "$PKG_CONFIG"; then
12160 if test -n "$PKG_CONFIG" && \
569dd5d0
ZK
12161 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client >= 3.7.0\""; } >&5
12162 ($PKG_CONFIG --exists --print-errors "libsanlock_client >= 3.7.0") 2>&5
9bfc0be4 12163 ac_status=$?
6b2e4ec5 12164 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9bfc0be4 12165 test $ac_status = 0; }; then
569dd5d0 12166 pkg_cv_LIBSANLOCKCLIENT_CFLAGS=`$PKG_CONFIG --cflags "libsanlock_client >= 3.7.0" 2>/dev/null`
4d0c3ed0 12167 test "x$?" != "x0" && pkg_failed=yes
9bfc0be4
PR
12168else
12169 pkg_failed=yes
12170fi
12171 else
12172 pkg_failed=untried
12173fi
a861f042
ZK
12174if test -n "$LIBSANLOCKCLIENT_LIBS"; then
12175 pkg_cv_LIBSANLOCKCLIENT_LIBS="$LIBSANLOCKCLIENT_LIBS"
9bfc0be4
PR
12176 elif test -n "$PKG_CONFIG"; then
12177 if test -n "$PKG_CONFIG" && \
569dd5d0
ZK
12178 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsanlock_client >= 3.7.0\""; } >&5
12179 ($PKG_CONFIG --exists --print-errors "libsanlock_client >= 3.7.0") 2>&5
9bfc0be4 12180 ac_status=$?
6b2e4ec5 12181 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9bfc0be4 12182 test $ac_status = 0; }; then
569dd5d0 12183 pkg_cv_LIBSANLOCKCLIENT_LIBS=`$PKG_CONFIG --libs "libsanlock_client >= 3.7.0" 2>/dev/null`
4d0c3ed0 12184 test "x$?" != "x0" && pkg_failed=yes
9bfc0be4
PR
12185else
12186 pkg_failed=yes
12187fi
12188 else
12189 pkg_failed=untried
12190fi
12191
12192
12193
12194if test $pkg_failed = yes; then
a7cf55c6 12195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12196printf "%s\n" "no" >&6; }
9bfc0be4
PR
12197
12198if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12199 _pkg_short_errors_supported=yes
12200else
12201 _pkg_short_errors_supported=no
12202fi
12203 if test $_pkg_short_errors_supported = yes; then
569dd5d0 12204 LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1`
9bfc0be4 12205 else
569dd5d0 12206 LIBSANLOCKCLIENT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsanlock_client >= 3.7.0" 2>&1`
9bfc0be4 12207 fi
a7cf55c6
ZK
12208 # Put the nasty error message in config.log where it belongs
12209 echo "$LIBSANLOCKCLIENT_PKG_ERRORS" >&5
9bfc0be4 12210
569dd5d0 12211 as_fn_error $? "Package requirements (libsanlock_client >= 3.7.0) were not met:
86ac529b
ZK
12212
12213$LIBSANLOCKCLIENT_PKG_ERRORS
12214
12215Consider adjusting the PKG_CONFIG_PATH environment variable if you
12216installed software in a non-standard prefix.
12217
12218Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS
12219and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config.
12220See the pkg-config man page for more details." "$LINENO" 5
9bfc0be4 12221elif test $pkg_failed = untried; then
a7cf55c6 12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12223printf "%s\n" "no" >&6; }
635df748
ZK
12224 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12225printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
86ac529b
ZK
12226as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12227is in your PATH or set the PKG_CONFIG environment variable to the full
12228path to pkg-config.
12229
12230Alternatively, you may set the environment variables LIBSANLOCKCLIENT_CFLAGS
12231and LIBSANLOCKCLIENT_LIBS to avoid the need to call pkg-config.
12232See the pkg-config man page for more details.
12233
12234To get pkg-config, see <http://pkg-config.freedesktop.org/>.
635df748 12235See 'config.log' for more details" "$LINENO" 5; }
9bfc0be4 12236else
a7cf55c6
ZK
12237 LIBSANLOCKCLIENT_CFLAGS=$pkg_cv_LIBSANLOCKCLIENT_CFLAGS
12238 LIBSANLOCKCLIENT_LIBS=$pkg_cv_LIBSANLOCKCLIENT_LIBS
6b2e4ec5
ZK
12239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12240printf "%s\n" "yes" >&6; }
a7cf55c6 12241 BUILD_LVMLOCKD="yes"
50172847 12242fi
9bfc0be4 12243
6b2e4ec5 12244printf "%s\n" "#define LOCKDSANLOCK_SUPPORT 1" >>confdefs.h
20e336f2 12245
b681b774 12246
0d22b581 12247fi
20e336f2 12248
546db1c4 12249################################################################################
6b2e4ec5
ZK
12250{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlm" >&5
12251printf %s "checking whether to build lvmlockddlm... " >&6; }
0d22b581 12252# Check whether --enable-lvmlockd-dlm was given.
6b2e4ec5
ZK
12253if test ${enable_lvmlockd_dlm+y}
12254then :
07cd341b 12255 enableval=$enable_lvmlockd_dlm; BUILD_LOCKDDLM=$enableval
635df748
ZK
12256else case e in #(
12257 e) BUILD_LOCKDDLM="no" ;;
12258esac
546db1c4
PR
12259fi
12260
07cd341b
ZK
12261{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM" >&5
12262printf "%s\n" "$BUILD_LOCKDDLM" >&6; }
0d22b581 12263
b681b774
ZK
12264if test "$BUILD_LOCKDDLM" = "yes"
12265then :
12266
74ed1ba9
PR
12267
12268pkg_failed=no
a7cf55c6
ZK
12269{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlm_lt" >&5
12270printf %s "checking for libdlm_lt... " >&6; }
74ed1ba9 12271
a861f042
ZK
12272if test -n "$LIBDLM_CFLAGS"; then
12273 pkg_cv_LIBDLM_CFLAGS="$LIBDLM_CFLAGS"
74ed1ba9
PR
12274 elif test -n "$PKG_CONFIG"; then
12275 if test -n "$PKG_CONFIG" && \
86ac529b
ZK
12276 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm_lt\""; } >&5
12277 ($PKG_CONFIG --exists --print-errors "libdlm_lt") 2>&5
74ed1ba9 12278 ac_status=$?
6b2e4ec5 12279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74ed1ba9 12280 test $ac_status = 0; }; then
86ac529b 12281 pkg_cv_LIBDLM_CFLAGS=`$PKG_CONFIG --cflags "libdlm_lt" 2>/dev/null`
74ed1ba9
PR
12282 test "x$?" != "x0" && pkg_failed=yes
12283else
12284 pkg_failed=yes
12285fi
12286 else
12287 pkg_failed=untried
12288fi
a861f042
ZK
12289if test -n "$LIBDLM_LIBS"; then
12290 pkg_cv_LIBDLM_LIBS="$LIBDLM_LIBS"
74ed1ba9
PR
12291 elif test -n "$PKG_CONFIG"; then
12292 if test -n "$PKG_CONFIG" && \
86ac529b
ZK
12293 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlm_lt\""; } >&5
12294 ($PKG_CONFIG --exists --print-errors "libdlm_lt") 2>&5
74ed1ba9 12295 ac_status=$?
6b2e4ec5 12296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
74ed1ba9 12297 test $ac_status = 0; }; then
86ac529b 12298 pkg_cv_LIBDLM_LIBS=`$PKG_CONFIG --libs "libdlm_lt" 2>/dev/null`
74ed1ba9
PR
12299 test "x$?" != "x0" && pkg_failed=yes
12300else
12301 pkg_failed=yes
12302fi
12303 else
12304 pkg_failed=untried
12305fi
12306
12307
12308
12309if test $pkg_failed = yes; then
a7cf55c6 12310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12311printf "%s\n" "no" >&6; }
74ed1ba9
PR
12312
12313if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12314 _pkg_short_errors_supported=yes
12315else
12316 _pkg_short_errors_supported=no
12317fi
12318 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 12319 LIBDLM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlm_lt" 2>&1`
74ed1ba9 12320 else
a7cf55c6 12321 LIBDLM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlm_lt" 2>&1`
74ed1ba9 12322 fi
a7cf55c6
ZK
12323 # Put the nasty error message in config.log where it belongs
12324 echo "$LIBDLM_PKG_ERRORS" >&5
74ed1ba9 12325
a7cf55c6 12326 as_fn_error $? "Package requirements (libdlm_lt) were not met:
86ac529b
ZK
12327
12328$LIBDLM_PKG_ERRORS
12329
12330Consider adjusting the PKG_CONFIG_PATH environment variable if you
12331installed software in a non-standard prefix.
12332
12333Alternatively, you may set the environment variables LIBDLM_CFLAGS
12334and LIBDLM_LIBS to avoid the need to call pkg-config.
12335See the pkg-config man page for more details." "$LINENO" 5
74ed1ba9 12336elif test $pkg_failed = untried; then
a7cf55c6 12337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12338printf "%s\n" "no" >&6; }
635df748
ZK
12339 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12340printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
86ac529b
ZK
12341as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12342is in your PATH or set the PKG_CONFIG environment variable to the full
12343path to pkg-config.
12344
12345Alternatively, you may set the environment variables LIBDLM_CFLAGS
12346and LIBDLM_LIBS to avoid the need to call pkg-config.
12347See the pkg-config man page for more details.
12348
12349To get pkg-config, see <http://pkg-config.freedesktop.org/>.
635df748 12350See 'config.log' for more details" "$LINENO" 5; }
74ed1ba9 12351else
a7cf55c6
ZK
12352 LIBDLM_CFLAGS=$pkg_cv_LIBDLM_CFLAGS
12353 LIBDLM_LIBS=$pkg_cv_LIBDLM_LIBS
6b2e4ec5
ZK
12354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12355printf "%s\n" "yes" >&6; }
a7cf55c6 12356 BUILD_LVMLOCKD="yes"
74ed1ba9
PR
12357fi
12358
6b2e4ec5 12359printf "%s\n" "#define LOCKDDLM_SUPPORT 1" >>confdefs.h
50172847 12360
86ac529b
ZK
12361 case "$LIBDLM_LIBS" in #(
12362 *lpthread*) :
12363
12364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&5
12365printf "%s\n" "replacing pkg-config --libs libdlm_lt \"$LIBDLM_LIBS\" with... -ldlm_lt" >&6; }
12366 LIBDLM_LIBS="${LIBDLM_LIBS%%ldlm*}ldlm_lt" ;; #(
12367 *) :
12368 ;;
12369esac
b681b774 12370
7a197a62 12371fi
ad6254c5 12372
07d41de7 12373################################################################################
6b2e4ec5
ZK
12374{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockddlmcontrol" >&5
12375printf %s "checking whether to build lvmlockddlmcontrol... " >&6; }
07d41de7 12376# Check whether --enable-lvmlockd-dlmcontrol was given.
6b2e4ec5
ZK
12377if test ${enable_lvmlockd_dlmcontrol+y}
12378then :
07cd341b 12379 enableval=$enable_lvmlockd_dlmcontrol; BUILD_LOCKDDLM_CONTROL=$enableval
635df748
ZK
12380else case e in #(
12381 e) BUILD_LOCKDDLM_CONTROL="no" ;;
12382esac
07d41de7
MC
12383fi
12384
07cd341b
ZK
12385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDDLM_CONTROL" >&5
12386printf "%s\n" "$BUILD_LOCKDDLM_CONTROL" >&6; }
07d41de7 12387
b681b774
ZK
12388if test "$BUILD_LOCKDDLM_CONTROL" = "yes"
12389then :
12390
07d41de7
MC
12391
12392pkg_failed=no
a7cf55c6
ZK
12393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libdlmcontrol >= 3.2" >&5
12394printf %s "checking for libdlmcontrol >= 3.2... " >&6; }
07d41de7 12395
a861f042
ZK
12396if test -n "$LIBDLMCONTROL_CFLAGS"; then
12397 pkg_cv_LIBDLMCONTROL_CFLAGS="$LIBDLMCONTROL_CFLAGS"
07d41de7
MC
12398 elif test -n "$PKG_CONFIG"; then
12399 if test -n "$PKG_CONFIG" && \
6b2e4ec5 12400 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlmcontrol >= 3.2\""; } >&5
07d41de7
MC
12401 ($PKG_CONFIG --exists --print-errors "libdlmcontrol >= 3.2") 2>&5
12402 ac_status=$?
6b2e4ec5 12403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
07d41de7 12404 test $ac_status = 0; }; then
a861f042 12405 pkg_cv_LIBDLMCONTROL_CFLAGS=`$PKG_CONFIG --cflags "libdlmcontrol >= 3.2" 2>/dev/null`
07d41de7
MC
12406 test "x$?" != "x0" && pkg_failed=yes
12407else
12408 pkg_failed=yes
12409fi
12410 else
12411 pkg_failed=untried
12412fi
a861f042
ZK
12413if test -n "$LIBDLMCONTROL_LIBS"; then
12414 pkg_cv_LIBDLMCONTROL_LIBS="$LIBDLMCONTROL_LIBS"
07d41de7
MC
12415 elif test -n "$PKG_CONFIG"; then
12416 if test -n "$PKG_CONFIG" && \
6b2e4ec5 12417 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libdlmcontrol >= 3.2\""; } >&5
07d41de7
MC
12418 ($PKG_CONFIG --exists --print-errors "libdlmcontrol >= 3.2") 2>&5
12419 ac_status=$?
6b2e4ec5 12420 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
07d41de7 12421 test $ac_status = 0; }; then
a861f042 12422 pkg_cv_LIBDLMCONTROL_LIBS=`$PKG_CONFIG --libs "libdlmcontrol >= 3.2" 2>/dev/null`
07d41de7
MC
12423 test "x$?" != "x0" && pkg_failed=yes
12424else
12425 pkg_failed=yes
12426fi
12427 else
12428 pkg_failed=untried
12429fi
12430
12431
12432
12433if test $pkg_failed = yes; then
a7cf55c6 12434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12435printf "%s\n" "no" >&6; }
07d41de7
MC
12436
12437if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12438 _pkg_short_errors_supported=yes
12439else
12440 _pkg_short_errors_supported=no
12441fi
12442 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 12443 LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1`
07d41de7 12444 else
a7cf55c6 12445 LIBDLMCONTROL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libdlmcontrol >= 3.2" 2>&1`
07d41de7 12446 fi
a7cf55c6
ZK
12447 # Put the nasty error message in config.log where it belongs
12448 echo "$LIBDLMCONTROL_PKG_ERRORS" >&5
07d41de7 12449
a7cf55c6 12450 as_fn_error $? "Package requirements (libdlmcontrol >= 3.2) were not met:
86ac529b
ZK
12451
12452$LIBDLMCONTROL_PKG_ERRORS
12453
12454Consider adjusting the PKG_CONFIG_PATH environment variable if you
12455installed software in a non-standard prefix.
12456
12457Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS
12458and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config.
12459See the pkg-config man page for more details." "$LINENO" 5
07d41de7 12460elif test $pkg_failed = untried; then
a7cf55c6 12461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12462printf "%s\n" "no" >&6; }
635df748
ZK
12463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12464printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
86ac529b
ZK
12465as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12466is in your PATH or set the PKG_CONFIG environment variable to the full
12467path to pkg-config.
12468
12469Alternatively, you may set the environment variables LIBDLMCONTROL_CFLAGS
12470and LIBDLMCONTROL_LIBS to avoid the need to call pkg-config.
12471See the pkg-config man page for more details.
12472
12473To get pkg-config, see <http://pkg-config.freedesktop.org/>.
635df748 12474See 'config.log' for more details" "$LINENO" 5; }
07d41de7 12475else
a7cf55c6
ZK
12476 LIBDLMCONTROL_CFLAGS=$pkg_cv_LIBDLMCONTROL_CFLAGS
12477 LIBDLMCONTROL_LIBS=$pkg_cv_LIBDLMCONTROL_LIBS
6b2e4ec5
ZK
12478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12479printf "%s\n" "yes" >&6; }
a7cf55c6 12480 BUILD_LVMLOCKD="yes"
07d41de7
MC
12481fi
12482
6b2e4ec5 12483printf "%s\n" "#define LOCKDDLM_CONTROL_SUPPORT 1" >>confdefs.h
07d41de7 12484
b681b774 12485
07d41de7
MC
12486fi
12487
7a8b7b4a 12488################################################################################
6b2e4ec5
ZK
12489{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockdidm" >&5
12490printf %s "checking whether to build lvmlockdidm... " >&6; }
7a8b7b4a 12491# Check whether --enable-lvmlockd-idm was given.
6b2e4ec5
ZK
12492if test ${enable_lvmlockd_idm+y}
12493then :
07cd341b 12494 enableval=$enable_lvmlockd_idm; BUILD_LOCKDIDM=$enableval
635df748
ZK
12495else case e in #(
12496 e) BUILD_LOCKDIDM="no" ;;
12497esac
7a8b7b4a
LY
12498fi
12499
07cd341b
ZK
12500{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LOCKDIDM" >&5
12501printf "%s\n" "$BUILD_LOCKDIDM" >&6; }
7a8b7b4a 12502
b681b774
ZK
12503if test "$BUILD_LOCKDIDM" = "yes"
12504then :
12505
a861f042
ZK
12506 if test -n "$PKG_CONFIG" && \
12507 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
12508 ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
12509 ac_status=$?
12510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12511 test $ac_status = 0; }; then
12512
7a8b7b4a
LY
12513
12514pkg_failed=no
a7cf55c6
ZK
12515{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libseagate_ilm >= 0.1.0" >&5
12516printf %s "checking for libseagate_ilm >= 0.1.0... " >&6; }
7a8b7b4a 12517
a861f042
ZK
12518if test -n "$LIBSEAGATEILM_CFLAGS"; then
12519 pkg_cv_LIBSEAGATEILM_CFLAGS="$LIBSEAGATEILM_CFLAGS"
7a8b7b4a
LY
12520 elif test -n "$PKG_CONFIG"; then
12521 if test -n "$PKG_CONFIG" && \
6b2e4ec5 12522 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseagate_ilm >= 0.1.0\""; } >&5
7a8b7b4a
LY
12523 ($PKG_CONFIG --exists --print-errors "libseagate_ilm >= 0.1.0") 2>&5
12524 ac_status=$?
6b2e4ec5 12525 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7a8b7b4a 12526 test $ac_status = 0; }; then
a861f042 12527 pkg_cv_LIBSEAGATEILM_CFLAGS=`$PKG_CONFIG --cflags "libseagate_ilm >= 0.1.0" 2>/dev/null`
7a8b7b4a
LY
12528 test "x$?" != "x0" && pkg_failed=yes
12529else
12530 pkg_failed=yes
12531fi
12532 else
12533 pkg_failed=untried
12534fi
a861f042
ZK
12535if test -n "$LIBSEAGATEILM_LIBS"; then
12536 pkg_cv_LIBSEAGATEILM_LIBS="$LIBSEAGATEILM_LIBS"
7a8b7b4a
LY
12537 elif test -n "$PKG_CONFIG"; then
12538 if test -n "$PKG_CONFIG" && \
6b2e4ec5 12539 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libseagate_ilm >= 0.1.0\""; } >&5
7a8b7b4a
LY
12540 ($PKG_CONFIG --exists --print-errors "libseagate_ilm >= 0.1.0") 2>&5
12541 ac_status=$?
6b2e4ec5 12542 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7a8b7b4a 12543 test $ac_status = 0; }; then
a861f042 12544 pkg_cv_LIBSEAGATEILM_LIBS=`$PKG_CONFIG --libs "libseagate_ilm >= 0.1.0" 2>/dev/null`
7a8b7b4a
LY
12545 test "x$?" != "x0" && pkg_failed=yes
12546else
12547 pkg_failed=yes
12548fi
12549 else
12550 pkg_failed=untried
12551fi
12552
12553
12554
12555if test $pkg_failed = yes; then
a7cf55c6 12556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12557printf "%s\n" "no" >&6; }
7a8b7b4a
LY
12558
12559if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12560 _pkg_short_errors_supported=yes
12561else
12562 _pkg_short_errors_supported=no
12563fi
12564 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 12565 LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1`
7a8b7b4a 12566 else
a7cf55c6 12567 LIBSEAGATEILM_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libseagate_ilm >= 0.1.0" 2>&1`
7a8b7b4a 12568 fi
a7cf55c6
ZK
12569 # Put the nasty error message in config.log where it belongs
12570 echo "$LIBSEAGATEILM_PKG_ERRORS" >&5
7a8b7b4a 12571
a7cf55c6 12572 as_fn_error $? "Package requirements (libseagate_ilm >= 0.1.0) were not met:
86ac529b
ZK
12573
12574$LIBSEAGATEILM_PKG_ERRORS
12575
12576Consider adjusting the PKG_CONFIG_PATH environment variable if you
12577installed software in a non-standard prefix.
12578
12579Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS
12580and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config.
12581See the pkg-config man page for more details." "$LINENO" 5
7a8b7b4a 12582elif test $pkg_failed = untried; then
a7cf55c6 12583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 12584printf "%s\n" "no" >&6; }
635df748
ZK
12585 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12586printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
86ac529b
ZK
12587as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
12588is in your PATH or set the PKG_CONFIG environment variable to the full
12589path to pkg-config.
12590
12591Alternatively, you may set the environment variables LIBSEAGATEILM_CFLAGS
12592and LIBSEAGATEILM_LIBS to avoid the need to call pkg-config.
12593See the pkg-config man page for more details.
12594
12595To get pkg-config, see <http://pkg-config.freedesktop.org/>.
635df748 12596See 'config.log' for more details" "$LINENO" 5; }
7a8b7b4a 12597else
a7cf55c6
ZK
12598 LIBSEAGATEILM_CFLAGS=$pkg_cv_LIBSEAGATEILM_CFLAGS
12599 LIBSEAGATEILM_LIBS=$pkg_cv_LIBSEAGATEILM_LIBS
6b2e4ec5
ZK
12600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12601printf "%s\n" "yes" >&6; }
a7cf55c6 12602 BUILD_LVMLOCKD="yes"
7a8b7b4a
LY
12603fi
12604
6b2e4ec5 12605printf "%s\n" "#define LOCKDIDM_SUPPORT 1" >>confdefs.h
7a8b7b4a 12606
86ac529b
ZK
12607 if test -z "$LIBSEAGATEILM_LIBS"
12608then :
12609 LIBSEAGATEILM_LIBS="-lseagate_ilm"
12610fi
a861f042
ZK
12611
12612else
12613 $bailout
12614fi
b681b774 12615
7a8b7b4a
LY
12616fi
12617
0d22b581 12618################################################################################
6b2e4ec5
ZK
12619{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build lvmlockd" >&5
12620printf %s "checking whether to build lvmlockd... " >&6; }
12621{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMLOCKD" >&5
12622printf "%s\n" "$BUILD_LVMLOCKD" >&6; }
d93275eb 12623
a7cf55c6 12624DEFAULT_USE_LVMLOCKD=0
b681b774
ZK
12625if test "$BUILD_LVMLOCKD" = "yes"
12626then :
12627
12628 if test "$LVMPOLLD" = "no"
6b2e4ec5 12629then :
0d22b581 12630 as_fn_error $? "cannot build lvmlockd with --disable-lvmpolld." "$LINENO" 5
f11781c5 12631fi
b681b774 12632 if test "$BUILD_LVMPOLLD" = "no"
6b2e4ec5
ZK
12633then :
12634 BUILD_LVMPOLLD=yes; { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Enabling lvmpolld - required by lvmlockd." >&5
12635printf "%s\n" "$as_me: WARNING: Enabling lvmpolld - required by lvmlockd." >&2;}
0d22b581 12636fi
6b2e4ec5
ZK
12637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmlockd" >&5
12638printf %s "checking defaults for use_lvmlockd... " >&6; }
0d22b581 12639 # Check whether --enable-use_lvmlockd was given.
6b2e4ec5
ZK
12640if test ${enable_use_lvmlockd+y}
12641then :
a7cf55c6 12642 enableval=$enable_use_lvmlockd; use_lvmlockd=$enableval
635df748
ZK
12643else case e in #(
12644 e) use_lvmlockd="yes" ;;
12645esac
b681b774 12646fi
a7cf55c6
ZK
12647
12648 if test "$use_lvmlockd" = "yes"
12649then :
0d22b581 12650 DEFAULT_USE_LVMLOCKD=1
d93275eb 12651fi
6b2e4ec5
ZK
12652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMLOCKD" >&5
12653printf "%s\n" "$DEFAULT_USE_LVMLOCKD" >&6; }
d93275eb 12654
6b2e4ec5 12655printf "%s\n" "#define LVMLOCKD_SUPPORT 1" >>confdefs.h
d93275eb 12656
d93275eb 12657
0d22b581
JT
12658
12659# Check whether --with-lvmlockd-pidfile was given.
6b2e4ec5
ZK
12660if test ${with_lvmlockd_pidfile+y}
12661then :
0d22b581 12662 withval=$with_lvmlockd_pidfile; LVMLOCKD_PIDFILE=$withval
635df748
ZK
12663else case e in #(
12664 e) LVMLOCKD_PIDFILE="$DEFAULT_PID_DIR/lvmlockd.pid" ;;
12665esac
d93275eb 12666fi
d93275eb 12667
d93275eb 12668
6b2e4ec5 12669printf "%s\n" "#define LVMLOCKD_PIDFILE \"$LVMLOCKD_PIDFILE\"" >>confdefs.h
d93275eb 12670
b681b774 12671
0d22b581 12672fi
d93275eb 12673
6b2e4ec5 12674printf "%s\n" "#define DEFAULT_USE_LVMLOCKD $DEFAULT_USE_LVMLOCKD" >>confdefs.h
d93275eb 12675
d93275eb 12676
0d22b581 12677################################################################################
a7cf55c6 12678DEFAULT_USE_LVMPOLLD=0
b681b774
ZK
12679if test "$BUILD_LVMPOLLD" = "yes"
12680then :
12681
6b2e4ec5
ZK
12682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking defaults for use_lvmpolld" >&5
12683printf %s "checking defaults for use_lvmpolld... " >&6; }
0d22b581 12684 # Check whether --enable-use_lvmpolld was given.
6b2e4ec5
ZK
12685if test ${enable_use_lvmpolld+y}
12686then :
a7cf55c6 12687 enableval=$enable_use_lvmpolld; use_lvmpolld=$enableval
635df748
ZK
12688else case e in #(
12689 e) use_lvmpolld="yes" ;;
12690esac
b681b774 12691fi
a7cf55c6
ZK
12692
12693 if test "$use_lvmpolld" = "yes"
12694then :
0d22b581 12695 DEFAULT_USE_LVMPOLLD=1
f11781c5 12696fi
6b2e4ec5
ZK
12697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_USE_LVMPOLLD" >&5
12698printf "%s\n" "$DEFAULT_USE_LVMPOLLD" >&6; }
0d22b581 12699
6b2e4ec5 12700printf "%s\n" "#define LVMPOLLD_SUPPORT 1" >>confdefs.h
0d22b581
JT
12701
12702
12703
12704# Check whether --with-lvmpolld-pidfile was given.
6b2e4ec5
ZK
12705if test ${with_lvmpolld_pidfile+y}
12706then :
0d22b581 12707 withval=$with_lvmpolld_pidfile; LVMPOLLD_PIDFILE=$withval
635df748
ZK
12708else case e in #(
12709 e) LVMPOLLD_PIDFILE="$DEFAULT_PID_DIR/lvmpolld.pid" ;;
12710esac
68f2de6d
AK
12711fi
12712
12713
6b2e4ec5 12714printf "%s\n" "#define LVMPOLLD_PIDFILE \"$LVMPOLLD_PIDFILE\"" >>confdefs.h
0d22b581 12715
b681b774 12716
5723db01
PR
12717fi
12718
6b2e4ec5 12719printf "%s\n" "#define DEFAULT_USE_LVMPOLLD $DEFAULT_USE_LVMPOLLD" >>confdefs.h
5723db01 12720
b559a1e6 12721
2061c0ec 12722
bf87b835 12723SYSTEMD_MIN_VERSION=0
0627716f 12724NOTIFYDBUS_SUPPORT="no"
8b8b8ac1
ZK
12725SYSTEMD_JOURNAL_SUPPORT="no"
12726APP_MACHINEID_SUPPORT="no"
8b8b8ac1
ZK
12727if test "$with_systemd" = "yes"
12728then :
12729 if test -n "$PKG_CONFIG" && \
a7cf55c6
ZK
12730 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 221\""; } >&5
12731 ($PKG_CONFIG --exists --print-errors "systemd >= 221") 2>&5
bf87b835 12732 ac_status=$?
6b2e4ec5 12733 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
bf87b835 12734 test $ac_status = 0; }; then
0627716f 12735 SYSTEMD_MIN_VERSION=221 NOTIFYDBUS_SUPPORT="maybe" SYSTEMD_JOURNAL_SUPPORT="maybe"
bf87b835 12736fi
8b8b8ac1 12737 if test -n "$PKG_CONFIG" && \
a7cf55c6
ZK
12738 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd >= 234\""; } >&5
12739 ($PKG_CONFIG --exists --print-errors "systemd >= 234") 2>&5
bf87b835 12740 ac_status=$?
6b2e4ec5 12741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
bf87b835 12742 test $ac_status = 0; }; then
8b8b8ac1
ZK
12743 SYSTEMD_MIN_VERSION=234 APP_MACHINEID_SUPPORT="maybe"
12744fi
bf87b835 12745fi
a7cf55c6 12746
f11781c5 12747################################################################################
8b8b8ac1 12748if test "$SYSTEMD_JOURNAL_SUPPORT" != "no"
6b2e4ec5 12749then :
8b8b8ac1 12750 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-journal.h" "ac_cv_header_systemd_sd_journal_h" "$ac_includes_default"
6b2e4ec5 12751if test "x$ac_cv_header_systemd_sd_journal_h" = xyes
6b2e4ec5 12752then :
b681b774 12753 SYSTEMD_JOURNAL_SUPPORT="yes"
635df748
ZK
12754else case e in #(
12755 e) SYSTEMD_JOURNAL_SUPPORT="no" ;;
12756esac
0d22b581 12757fi
b73e1cd4 12758
8b8b8ac1 12759fi
b73e1cd4 12760# Check whether --enable-systemd-journal was given.
6b2e4ec5
ZK
12761if test ${enable_systemd_journal+y}
12762then :
b681b774 12763 enableval=$enable_systemd_journal; if test "$enableval" = "yes" && test "$SYSTEMD_JOURNAL_SUPPORT" = "no"
6b2e4ec5 12764then :
8b8b8ac1 12765 as_fn_error $? "--enable-systemd-journal requires systemd/sd-journal.h and systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5
fe00b163 12766fi
b73e1cd4 12767 SYSTEMD_JOURNAL_SUPPORT=$enableval
f11781c5 12768fi
ad6254c5 12769
8b8b8ac1
ZK
12770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to log to systemd journal" >&5
12771printf %s "checking whether to log to systemd journal... " >&6; }
6b2e4ec5
ZK
12772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_JOURNAL_SUPPORT" >&5
12773printf "%s\n" "$SYSTEMD_JOURNAL_SUPPORT" >&6; }
f11781c5 12774
b681b774 12775if test "$SYSTEMD_JOURNAL_SUPPORT" = "yes"
6b2e4ec5 12776then :
f11781c5 12777
6b2e4ec5 12778printf "%s\n" "#define SYSTEMD_JOURNAL_SUPPORT 1" >>confdefs.h
ad6254c5 12779
ad6254c5 12780fi
ad6254c5 12781
b73e1cd4 12782################################################################################
8b8b8ac1 12783if test "$APP_MACHINEID_SUPPORT" != "no"
a7cf55c6 12784then :
8b8b8ac1 12785 ac_fn_c_check_header_compile "$LINENO" "systemd/sd-id128.h" "ac_cv_header_systemd_sd_id128_h" "$ac_includes_default"
6b2e4ec5 12786if test "x$ac_cv_header_systemd_sd_id128_h" = xyes
6b2e4ec5 12787then :
b681b774 12788 APP_MACHINEID_SUPPORT="yes"
635df748
ZK
12789else case e in #(
12790 e) APP_MACHINEID_SUPPORT="no" ;;
12791esac
0c46f9cf 12792fi
ad6254c5 12793
8b8b8ac1 12794fi
5ac4b662 12795# Check whether --enable-app-machineid was given.
6b2e4ec5
ZK
12796if test ${enable_app_machineid+y}
12797then :
b681b774 12798 enableval=$enable_app_machineid; if test "$enableval" = "yes" && test "$APP_MACHINEID_SUPPORT" = "no"
6b2e4ec5 12799then :
8b8b8ac1 12800 as_fn_error $? "--enable-app-machineid requires systemd/sd-id128.h and systemd >= 234. (--with-systemd=$with_systemd)" "$LINENO" 5
b73e1cd4
ZK
12801fi
12802 APP_MACHINEID_SUPPORT=$enableval
5ac4b662
MC
12803fi
12804
8b8b8ac1
ZK
12805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support systemd appmachineid" >&5
12806printf %s "checking whether to support systemd appmachineid... " >&6; }
6b2e4ec5
ZK
12807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $APP_MACHINEID_SUPPORT" >&5
12808printf "%s\n" "$APP_MACHINEID_SUPPORT" >&6; }
5ac4b662 12809
b681b774 12810if test "$APP_MACHINEID_SUPPORT" = "yes"
6b2e4ec5 12811then :
5ac4b662 12812
6b2e4ec5 12813printf "%s\n" "#define APP_MACHINEID_SUPPORT 1" >>confdefs.h
5ac4b662 12814
5ac4b662
MC
12815fi
12816
f11781c5 12817################################################################################
f11781c5 12818
21edfc4a
ZK
12819# Check whether --with-systemd-run was given.
12820if test ${with_systemd_run+y}
12821then :
12822 withval=$with_systemd_run; SYSTEMD_RUN_CMD=$withval
635df748
ZK
12823else case e in #(
12824 e) SYSTEMD_RUN_CMD="autodetect" ;;
12825esac
21edfc4a
ZK
12826fi
12827
21edfc4a
ZK
12828if test "$SYSTEMD_RUN_CMD" = "autodetect"
12829then :
12830 if test -n "$ac_tool_prefix"; then
12831 # Extract the first word of "${ac_tool_prefix}systemd-run", so it can be a program name with args.
12832set dummy ${ac_tool_prefix}systemd-run; ac_word=$2
12833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12834printf %s "checking for $ac_word... " >&6; }
12835if test ${ac_cv_path_SYSTEMD_RUN_CMD+y}
12836then :
12837 printf %s "(cached) " >&6
635df748
ZK
12838else case e in #(
12839 e) case $SYSTEMD_RUN_CMD in
21edfc4a
ZK
12840 [\\/]* | ?:[\\/]*)
12841 ac_cv_path_SYSTEMD_RUN_CMD="$SYSTEMD_RUN_CMD" # Let the user override the test with a path.
12842 ;;
12843 *)
12844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12845for as_dir in $PATH
12846do
12847 IFS=$as_save_IFS
12848 case $as_dir in #(((
12849 '') as_dir=./ ;;
12850 */) ;;
12851 *) as_dir=$as_dir/ ;;
12852 esac
12853 for ac_exec_ext in '' $ac_executable_extensions; do
12854 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12855 ac_cv_path_SYSTEMD_RUN_CMD="$as_dir$ac_word$ac_exec_ext"
12856 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12857 break 2
12858 fi
12859done
12860 done
12861IFS=$as_save_IFS
12862
12863 ;;
635df748 12864esac ;;
21edfc4a
ZK
12865esac
12866fi
12867SYSTEMD_RUN_CMD=$ac_cv_path_SYSTEMD_RUN_CMD
12868if test -n "$SYSTEMD_RUN_CMD"; then
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5
12870printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; }
12871else
12872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12873printf "%s\n" "no" >&6; }
12874fi
12875
12876
12877fi
12878if test -z "$ac_cv_path_SYSTEMD_RUN_CMD"; then
12879 ac_pt_SYSTEMD_RUN_CMD=$SYSTEMD_RUN_CMD
12880 # Extract the first word of "systemd-run", so it can be a program name with args.
12881set dummy systemd-run; ac_word=$2
12882{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12883printf %s "checking for $ac_word... " >&6; }
12884if test ${ac_cv_path_ac_pt_SYSTEMD_RUN_CMD+y}
12885then :
12886 printf %s "(cached) " >&6
635df748
ZK
12887else case e in #(
12888 e) case $ac_pt_SYSTEMD_RUN_CMD in
21edfc4a
ZK
12889 [\\/]* | ?:[\\/]*)
12890 ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$ac_pt_SYSTEMD_RUN_CMD" # Let the user override the test with a path.
12891 ;;
12892 *)
12893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12894for as_dir in $PATH
12895do
12896 IFS=$as_save_IFS
12897 case $as_dir in #(((
12898 '') as_dir=./ ;;
12899 */) ;;
12900 *) as_dir=$as_dir/ ;;
12901 esac
12902 for ac_exec_ext in '' $ac_executable_extensions; do
12903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12904 ac_cv_path_ac_pt_SYSTEMD_RUN_CMD="$as_dir$ac_word$ac_exec_ext"
12905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12906 break 2
12907 fi
12908done
12909 done
12910IFS=$as_save_IFS
12911
12912 ;;
635df748 12913esac ;;
21edfc4a
ZK
12914esac
12915fi
12916ac_pt_SYSTEMD_RUN_CMD=$ac_cv_path_ac_pt_SYSTEMD_RUN_CMD
12917if test -n "$ac_pt_SYSTEMD_RUN_CMD"; then
12918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_SYSTEMD_RUN_CMD" >&5
12919printf "%s\n" "$ac_pt_SYSTEMD_RUN_CMD" >&6; }
12920else
12921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12922printf "%s\n" "no" >&6; }
12923fi
12924
12925 if test "x$ac_pt_SYSTEMD_RUN_CMD" = x; then
12926 SYSTEMD_RUN_CMD=""
12927 else
12928 case $cross_compiling:$ac_tool_warned in
12929yes:)
12930{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12931printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12932ac_tool_warned=yes ;;
12933esac
12934 SYSTEMD_RUN_CMD=$ac_pt_SYSTEMD_RUN_CMD
12935 fi
12936else
12937 SYSTEMD_RUN_CMD="$ac_cv_path_SYSTEMD_RUN_CMD"
12938fi
12939
a7cf55c6
ZK
12940fi
12941{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for app running udev background service" >&5
12942printf %s "checking for app running udev background service... " >&6; }
12943if test -z "$SYSTEMD_RUN_CMD"
21edfc4a
ZK
12944then :
12945 SYSTEMD_RUN_CMD="/usr/bin/systemd-run"
12946fi
a7cf55c6 12947{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMD_RUN_CMD" >&5
21edfc4a 12948printf "%s\n" "$SYSTEMD_RUN_CMD" >&6; }
21edfc4a
ZK
12949
12950################################################################################
12951
8b8b8ac1
ZK
12952# TODO: possibly detect right version of blkid with BLKID_SUBLKS_FSINFO support
12953# so lvresize can check detected flag here
12954#
12955DEFAULT_USE_BLKID_WIPING=0
0d22b581 12956# Check whether --enable-blkid_wiping was given.
6b2e4ec5
ZK
12957if test ${enable_blkid_wiping+y}
12958then :
0d22b581 12959 enableval=$enable_blkid_wiping; BLKID_WIPING=$enableval
635df748
ZK
12960else case e in #(
12961 e) if test "$with_blkid" = "yes"
8b8b8ac1 12962then :
b681b774 12963 BLKID_WIPING="maybe"
635df748
ZK
12964else case e in #(
12965 e) BLKID_WIPING="no" ;;
12966esac
12967fi ;;
12968esac
615347da
ZK
12969fi
12970
8b8b8ac1
ZK
12971
12972if test "$BLKID_WIPING" != "no"
615347da 12973then :
b681b774 12974
ee3cfa41 12975
0d22b581 12976pkg_failed=no
a7cf55c6
ZK
12977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid >= 2.24" >&5
12978printf %s "checking for blkid >= 2.24... " >&6; }
ee3cfa41 12979
0d22b581
JT
12980if test -n "$BLKID_CFLAGS"; then
12981 pkg_cv_BLKID_CFLAGS="$BLKID_CFLAGS"
12982 elif test -n "$PKG_CONFIG"; then
12983 if test -n "$PKG_CONFIG" && \
21edfc4a
ZK
12984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
12985 ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
0d22b581 12986 ac_status=$?
6b2e4ec5 12987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0d22b581 12988 test $ac_status = 0; }; then
21edfc4a 12989 pkg_cv_BLKID_CFLAGS=`$PKG_CONFIG --cflags "blkid >= 2.24" 2>/dev/null`
0d22b581 12990 test "x$?" != "x0" && pkg_failed=yes
5987562c 12991else
0d22b581 12992 pkg_failed=yes
5987562c 12993fi
0d22b581
JT
12994 else
12995 pkg_failed=untried
12996fi
12997if test -n "$BLKID_LIBS"; then
12998 pkg_cv_BLKID_LIBS="$BLKID_LIBS"
12999 elif test -n "$PKG_CONFIG"; then
13000 if test -n "$PKG_CONFIG" && \
21edfc4a
ZK
13001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"blkid >= 2.24\""; } >&5
13002 ($PKG_CONFIG --exists --print-errors "blkid >= 2.24") 2>&5
0d22b581 13003 ac_status=$?
6b2e4ec5 13004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0d22b581 13005 test $ac_status = 0; }; then
21edfc4a 13006 pkg_cv_BLKID_LIBS=`$PKG_CONFIG --libs "blkid >= 2.24" 2>/dev/null`
0d22b581 13007 test "x$?" != "x0" && pkg_failed=yes
5987562c 13008else
0d22b581 13009 pkg_failed=yes
5987562c 13010fi
0d22b581
JT
13011 else
13012 pkg_failed=untried
5987562c 13013fi
ee3cfa41 13014
5987562c
AK
13015
13016
0d22b581 13017if test $pkg_failed = yes; then
a7cf55c6 13018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 13019printf "%s\n" "no" >&6; }
5987562c 13020
0d22b581
JT
13021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13022 _pkg_short_errors_supported=yes
5987562c 13023else
0d22b581 13024 _pkg_short_errors_supported=no
5987562c 13025fi
b681b774 13026 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 13027 BLKID_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
b681b774 13028 else
a7cf55c6 13029 BLKID_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "blkid >= 2.24" 2>&1`
b681b774 13030 fi
a7cf55c6
ZK
13031 # Put the nasty error message in config.log where it belongs
13032 echo "$BLKID_PKG_ERRORS" >&5
b681b774 13033
8b8b8ac1
ZK
13034 if test "$BLKID_WIPING" = "yes"
13035then :
13036 BLKID_WIPING="error"
635df748
ZK
13037else case e in #(
13038 e) BLKID_WIPING="no" ;;
13039esac
8b8b8ac1 13040fi
b681b774 13041elif test $pkg_failed = untried; then
a7cf55c6 13042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
b681b774 13043printf "%s\n" "no" >&6; }
8b8b8ac1
ZK
13044 if test "$BLKID_WIPING" = "yes"
13045then :
13046 BLKID_WIPING="error"
635df748
ZK
13047else case e in #(
13048 e) BLKID_WIPING="no" ;;
13049esac
8b8b8ac1 13050fi
b681b774 13051else
a7cf55c6
ZK
13052 BLKID_CFLAGS=$pkg_cv_BLKID_CFLAGS
13053 BLKID_LIBS=$pkg_cv_BLKID_LIBS
b681b774
ZK
13054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13055printf "%s\n" "yes" >&6; }
13056
8b8b8ac1 13057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid.h defines BLKID_SUBLKS_FSINFO." >&5
615347da 13058printf %s "checking for blkid.h defines BLKID_SUBLKS_FSINFO.... " >&6; }
b681b774
ZK
13059if test ${ac_cv_have_blkid_sublks_fsinfo+y}
13060then :
13061 printf %s "(cached) " >&6
635df748
ZK
13062else case e in #(
13063 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b681b774
ZK
13064/* end confdefs.h. */
13065#include <blkid/blkid.h>
13066#ifndef BLKID_SUBLKS_FSINFO
13067#error BLKID_SUBLKS_FSINFO is missing
13068#endif
8b8b8ac1 13069
b681b774
ZK
13070int
13071main (void)
13072{
13073
13074 ;
13075 return 0;
13076}
13077_ACEOF
13078if ac_fn_c_try_compile "$LINENO"
13079then :
13080 ac_cv_have_blkid_sublks_fsinfo="yes"
635df748
ZK
13081else case e in #(
13082 e) ac_cv_have_blkid_sublks_fsinfo="no" ;;
13083esac
b681b774 13084fi
635df748
ZK
13085rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13086esac
b681b774
ZK
13087fi
13088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkid_sublks_fsinfo" >&5
13089printf "%s\n" "$ac_cv_have_blkid_sublks_fsinfo" >&6; }
0d22b581 13090
8b8b8ac1 13091 if test $ac_cv_have_blkid_sublks_fsinfo = yes
b681b774 13092then :
0d22b581 13093
b681b774 13094printf "%s\n" "#define HAVE_BLKID_SUBLKS_FSINFO 1" >>confdefs.h
ee3cfa41 13095
ee3cfa41 13096fi
0d22b581 13097
8b8b8ac1 13098 if test "$with_blkid" = "no"
b681b774 13099then :
8b8b8ac1 13100 BLKID_WIPING="error"
635df748
ZK
13101else case e in #(
13102 e)
8b8b8ac1
ZK
13103 BLKID_WIPING="yes"
13104 BLKID_PC="blkid"
13105 DEFAULT_USE_BLKID_WIPING=1
13106 # pkg_config --static does not really work ATM...
13107 BLKID_STATIC_LIBS=$("$PKG_CONFIG" --static --libs blkid)
b681b774 13108
8b8b8ac1 13109printf "%s\n" "#define BLKID_WIPING_SUPPORT 1" >>confdefs.h
b681b774 13110
635df748
ZK
13111 ;;
13112esac
8b8b8ac1 13113fi
b681b774 13114
0d22b581 13115fi
b681b774 13116
0d22b581 13117fi
b681b774 13118
8b8b8ac1
ZK
13119if test "$BLKID_WIPING" = "error"
13120then :
13121 as_fn_error $? "--enable-blkid_wiping requires blkid library >= 2.24. (--with-blkid=$with_blkid)" "$LINENO" 5
0d22b581 13122fi
8b8b8ac1 13123
b681b774
ZK
13124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable libblkid detection of signatures when wiping" >&5
13125printf %s "checking whether to enable libblkid detection of signatures when wiping... " >&6; }
13126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKID_WIPING" >&5
13127printf "%s\n" "$BLKID_WIPING" >&6; }
13128
13129printf "%s\n" "#define DEFAULT_USE_BLKID_WIPING $DEFAULT_USE_BLKID_WIPING" >>confdefs.h
5987562c
AK
13130
13131
0d22b581 13132################################################################################
96123b90
ZK
13133{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable synchronization with udev processing" >&5
13134printf %s "checking whether to enable synchronization with udev processing... " >&6; }
0d22b581 13135# Check whether --enable-udev_sync was given.
6b2e4ec5
ZK
13136if test ${enable_udev_sync+y}
13137then :
0d22b581 13138 enableval=$enable_udev_sync; UDEV_SYNC=$enableval
635df748
ZK
13139else case e in #(
13140 e) UDEV_SYNC="no" ;;
13141esac
5987562c 13142fi
5987562c 13143
6b2e4ec5
ZK
13144{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_SYNC" >&5
13145printf "%s\n" "$UDEV_SYNC" >&6; }
8b8b8ac1
ZK
13146if test "$UDEV_SYNC" = "yes" && test "$with_udev" = "no"
13147then :
13148 as_fn_error $? "--enable-udev_sync requires udev >= 143. (--with-udev=$with_udev)" "$LINENO" 5
13149fi
5987562c 13150
b681b774
ZK
13151if test "$UDEV_SYNC" = "yes"
13152then :
13153
5987562c 13154
0d22b581 13155pkg_failed=no
a7cf55c6
ZK
13156{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libudev >= 143" >&5
13157printf %s "checking for libudev >= 143... " >&6; }
5987562c 13158
0d22b581
JT
13159if test -n "$UDEV_CFLAGS"; then
13160 pkg_cv_UDEV_CFLAGS="$UDEV_CFLAGS"
13161 elif test -n "$PKG_CONFIG"; then
13162 if test -n "$PKG_CONFIG" && \
6b2e4ec5 13163 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
0d22b581
JT
13164 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13165 ac_status=$?
6b2e4ec5 13166 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0d22b581
JT
13167 test $ac_status = 0; }; then
13168 pkg_cv_UDEV_CFLAGS=`$PKG_CONFIG --cflags "libudev >= 143" 2>/dev/null`
13169 test "x$?" != "x0" && pkg_failed=yes
5987562c 13170else
0d22b581
JT
13171 pkg_failed=yes
13172fi
13173 else
13174 pkg_failed=untried
13175fi
13176if test -n "$UDEV_LIBS"; then
13177 pkg_cv_UDEV_LIBS="$UDEV_LIBS"
13178 elif test -n "$PKG_CONFIG"; then
13179 if test -n "$PKG_CONFIG" && \
6b2e4ec5 13180 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 143\""; } >&5
0d22b581
JT
13181 ($PKG_CONFIG --exists --print-errors "libudev >= 143") 2>&5
13182 ac_status=$?
6b2e4ec5 13183 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
0d22b581
JT
13184 test $ac_status = 0; }; then
13185 pkg_cv_UDEV_LIBS=`$PKG_CONFIG --libs "libudev >= 143" 2>/dev/null`
13186 test "x$?" != "x0" && pkg_failed=yes
13187else
13188 pkg_failed=yes
13189fi
13190 else
13191 pkg_failed=untried
5987562c 13192fi
5987562c
AK
13193
13194
5987562c 13195
0d22b581 13196if test $pkg_failed = yes; then
a7cf55c6 13197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 13198printf "%s\n" "no" >&6; }
5987562c 13199
0d22b581
JT
13200if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13201 _pkg_short_errors_supported=yes
5987562c 13202else
0d22b581
JT
13203 _pkg_short_errors_supported=no
13204fi
13205 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 13206 UDEV_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libudev >= 143" 2>&1`
0d22b581 13207 else
a7cf55c6 13208 UDEV_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libudev >= 143" 2>&1`
0d22b581 13209 fi
a7cf55c6
ZK
13210 # Put the nasty error message in config.log where it belongs
13211 echo "$UDEV_PKG_ERRORS" >&5
5987562c 13212
a7cf55c6 13213 as_fn_error $? "Package requirements (libudev >= 143) were not met:
5987562c 13214
0d22b581 13215$UDEV_PKG_ERRORS
5987562c 13216
0d22b581
JT
13217Consider adjusting the PKG_CONFIG_PATH environment variable if you
13218installed software in a non-standard prefix.
5987562c 13219
0d22b581
JT
13220Alternatively, you may set the environment variables UDEV_CFLAGS
13221and UDEV_LIBS to avoid the need to call pkg-config.
13222See the pkg-config man page for more details." "$LINENO" 5
13223elif test $pkg_failed = untried; then
a7cf55c6 13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 13225printf "%s\n" "no" >&6; }
635df748
ZK
13226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13227printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
0d22b581
JT
13228as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13229is in your PATH or set the PKG_CONFIG environment variable to the full
13230path to pkg-config.
5987562c 13231
0d22b581
JT
13232Alternatively, you may set the environment variables UDEV_CFLAGS
13233and UDEV_LIBS to avoid the need to call pkg-config.
13234See the pkg-config man page for more details.
5987562c 13235
0d22b581 13236To get pkg-config, see <http://pkg-config.freedesktop.org/>.
635df748 13237See 'config.log' for more details" "$LINENO" 5; }
0d22b581 13238else
a7cf55c6
ZK
13239 UDEV_CFLAGS=$pkg_cv_UDEV_CFLAGS
13240 UDEV_LIBS=$pkg_cv_UDEV_LIBS
6b2e4ec5
ZK
13241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13242printf "%s\n" "yes" >&6; }
a7cf55c6 13243 UDEV_PC="libudev"
0d22b581 13244fi
86ac529b 13245 UDEV_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libudev)
5987562c 13246
6b2e4ec5 13247printf "%s\n" "#define UDEV_SYNC_SUPPORT 1" >>confdefs.h
5987562c
AK
13248
13249
6b2e4ec5
ZK
13250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev_device_get_is_initialized in -ludev" >&5
13251printf %s "checking for udev_device_get_is_initialized in -ludev... " >&6; }
13252if test ${ac_cv_lib_udev_udev_device_get_is_initialized+y}
13253then :
13254 printf %s "(cached) " >&6
635df748
ZK
13255else case e in #(
13256 e) ac_check_lib_save_LIBS=$LIBS
0d22b581
JT
13257LIBS="-ludev $LIBS"
13258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259/* end confdefs.h. */
ee3cfa41 13260
0d22b581
JT
13261/* Override any GCC internal prototype to avoid an error.
13262 Use char because int might match the return type of a GCC
635df748
ZK
13263 builtin and then its argument prototype would still apply.
13264 The 'extern "C"' is for builds by C++ compilers;
13265 although this is not generally supported in C code supporting it here
13266 has little cost and some practical benefit (sr 110532). */
13267#ifdef __cplusplus
13268extern "C"
13269#endif
13270char udev_device_get_is_initialized (void);
0d22b581 13271int
6b2e4ec5 13272main (void)
0d22b581
JT
13273{
13274return udev_device_get_is_initialized ();
13275 ;
13276 return 0;
13277}
13278_ACEOF
6b2e4ec5
ZK
13279if ac_fn_c_try_link "$LINENO"
13280then :
0d22b581 13281 ac_cv_lib_udev_udev_device_get_is_initialized=yes
635df748
ZK
13282else case e in #(
13283 e) ac_cv_lib_udev_udev_device_get_is_initialized=no ;;
13284esac
0d22b581 13285fi
6b2e4ec5 13286rm -f core conftest.err conftest.$ac_objext conftest.beam \
0d22b581 13287 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
13288LIBS=$ac_check_lib_save_LIBS ;;
13289esac
1b59f5a9 13290fi
6b2e4ec5
ZK
13291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_device_get_is_initialized" >&5
13292printf "%s\n" "$ac_cv_lib_udev_udev_device_get_is_initialized" >&6; }
13293if test "x$ac_cv_lib_udev_udev_device_get_is_initialized" = xyes
13294then :
1b59f5a9 13295
6b2e4ec5 13296printf "%s\n" "#define HAVE_LIBUDEV_UDEV_DEVICE_GET_IS_INITIALIZED 1" >>confdefs.h
5987562c
AK
13297
13298fi
5987562c 13299
0d22b581 13300 LIBS=$ac_check_lib_save_LIBS
b681b774 13301
5987562c 13302fi
0d22b581 13303
96123b90
ZK
13304{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable installation of udev rules required for synchronization" >&5
13305printf %s "checking whether to enable installation of udev rules required for synchronization... " >&6; }
0d22b581 13306# Check whether --enable-udev_rules was given.
6b2e4ec5
ZK
13307if test ${enable_udev_rules+y}
13308then :
0d22b581 13309 enableval=$enable_udev_rules; UDEV_RULES=$enableval
635df748
ZK
13310else case e in #(
13311 e) UDEV_RULES=$UDEV_SYNC ;;
13312esac
5987562c
AK
13313fi
13314
6b2e4ec5
ZK
13315{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULES" >&5
13316printf "%s\n" "$UDEV_RULES" >&6; }
0d22b581 13317
6b2e4ec5
ZK
13318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable executable path detection in udev rules" >&5
13319printf %s "checking whether to enable executable path detection in udev rules... " >&6; }
0d22b581 13320# Check whether --enable-udev_rule_exec_detection was given.
6b2e4ec5
ZK
13321if test ${enable_udev_rule_exec_detection+y}
13322then :
0d22b581 13323 enableval=$enable_udev_rule_exec_detection; UDEV_RULE_EXEC_DETECTION=$enableval
635df748
ZK
13324else case e in #(
13325 e) UDEV_RULE_EXEC_DETECTION="no" ;;
13326esac
1b59f5a9
ZK
13327fi
13328
6b2e4ec5
ZK
13329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_RULE_EXEC_DETECTION" >&5
13330printf "%s\n" "$UDEV_RULE_EXEC_DETECTION" >&6; }
5987562c 13331
b681b774
ZK
13332if test "$UDEV_RULE" != "no"
13333then :
13334
13335 if test -n "$PKG_CONFIG" && \
13336 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libudev >= 176\""; } >&5
13337 ($PKG_CONFIG --exists --print-errors "libudev >= 176") 2>&5
13338 ac_status=$?
13339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13340 test $ac_status = 0; }; then
13341
13342 UDEV_HAS_BUILTIN_BLKID="yes"
13343
13344else
13345
13346 UDEV_HAS_BUILTIN_BLKID="no"
13347
13348fi
6b2e4ec5
ZK
13349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether udev supports built-in blkid" >&5
13350printf %s "checking whether udev supports built-in blkid... " >&6; }
6b2e4ec5
ZK
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UDEV_HAS_BUILTIN_BLKID" >&5
13352printf "%s\n" "$UDEV_HAS_BUILTIN_BLKID" >&6; }
b681b774 13353
5987562c 13354fi
0d22b581 13355
0d22b581
JT
13356################################################################################
13357# Check whether --enable-units-compat was given.
6b2e4ec5
ZK
13358if test ${enable_units_compat+y}
13359then :
0d22b581 13360 enableval=$enable_units_compat; UNITS_COMPAT=$enableval
635df748
ZK
13361else case e in #(
13362 e) UNITS_COMPAT="no" ;;
13363esac
e5fc4841
AK
13364fi
13365
e5fc4841 13366
b681b774
ZK
13367if test "$UNITS_COMPAT" = "yes"
13368then :
13369
0d22b581 13370
6b2e4ec5 13371printf "%s\n" "#define DEFAULT_SI_UNIT_CONSISTENCY 0" >>confdefs.h
0d22b581 13372
b681b774 13373
e5fc4841 13374fi
0d22b581
JT
13375
13376################################################################################
13377# Check whether --enable-ioctl was given.
6b2e4ec5
ZK
13378if test ${enable_ioctl+y}
13379then :
0d22b581 13380 enableval=$enable_ioctl; DM_IOCTLS=$enableval
e5fc4841
AK
13381fi
13382
b681b774 13383if test "$DM_IOCTLS" = "yes"
6b2e4ec5 13384then :
0d22b581 13385
6b2e4ec5 13386printf "%s\n" "#define DM_IOCTLS 1" >>confdefs.h
e5fc4841
AK
13387
13388fi
5987562c 13389
0d22b581 13390################################################################################
6b2e4ec5
ZK
13391{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable O_DIRECT" >&5
13392printf %s "checking whether to enable O_DIRECT... " >&6; }
0d22b581 13393# Check whether --enable-o_direct was given.
6b2e4ec5
ZK
13394if test ${enable_o_direct+y}
13395then :
0d22b581
JT
13396 enableval=$enable_o_direct; ODIRECT=$enableval
13397fi
13398
6b2e4ec5
ZK
13399{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ODIRECT" >&5
13400printf "%s\n" "$ODIRECT" >&6; }
0d22b581 13401
b681b774
ZK
13402if test "$ODIRECT" = "yes"
13403then :
13404
0d22b581 13405
6b2e4ec5 13406printf "%s\n" "#define O_DIRECT_SUPPORT 1" >>confdefs.h
0d22b581 13407
b681b774 13408
5987562c 13409fi
0d22b581
JT
13410
13411################################################################################
0627716f
ZK
13412{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to include Python D-Bus support" >&5
13413printf %s "checking whether to include Python D-Bus support... " >&6; }
13414# Check whether --enable-dbus-service was given.
13415if test ${enable_dbus_service+y}
6b2e4ec5 13416then :
0627716f 13417 enableval=$enable_dbus_service; BUILD_LVMDBUSD=$enableval
635df748
ZK
13418else case e in #(
13419 e) BUILD_LVMDBUSD="no" ;;
13420esac
5987562c 13421fi
1b59f5a9 13422
0627716f
ZK
13423{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_LVMDBUSD" >&5
13424printf "%s\n" "$BUILD_LVMDBUSD" >&6; }
0d22b581 13425
0627716f
ZK
13426################################################################################
13427# Check whether --enable-notify-dbus was given.
13428if test ${enable_notify_dbus+y}
8b8b8ac1 13429then :
0627716f 13430 enableval=$enable_notify_dbus; NOTIFYDBUS_SUPPORT=$enableval
8b8b8ac1 13431fi
0627716f
ZK
13432
13433
13434if test "$NOTIFYDBUS_SUPPORT" = "maybe"
13435then :
13436 if test "$BUILD_LVMDBUSD" = "yes"
13437then :
13438 NOTIFYDBUS_SUPPORT="yes"
635df748
ZK
13439else case e in #(
13440 e) NOTIFYDBUS_SUPPORT="no" ;;
13441esac
0627716f 13442fi
b681b774 13443fi
0d22b581 13444
0627716f 13445if test "$NOTIFYDBUS_SUPPORT" = "yes"
6b2e4ec5 13446then :
0627716f
ZK
13447 if test "$SYSTEMD_MIN_VERSION" -lt 221
13448then :
13449 as_fn_error $? "--enable-notify-dbus requires systemd >= 221. (--with-systemd=$with_systemd)" "$LINENO" 5
5987562c
AK
13450fi
13451
0627716f
ZK
13452printf "%s\n" "#define NOTIFYDBUS_SUPPORT 1" >>confdefs.h
13453
13454fi
13455
13456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build notifydbus" >&5
13457printf %s "checking whether to build notifydbus... " >&6; }
13458{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NOTIFYDBUS_SUPPORT" >&5
13459printf "%s\n" "$NOTIFYDBUS_SUPPORT" >&6; }
13460
13461################################################################################
13462if test "$NOTIFYDBUS_SUPPORT" = "yes" || test "$SYSTEMD_JOURNAL_SUPPORT" = "yes" || test "$APP_MACHINEID_SUPPORT" = "yes"
6b2e4ec5 13463then :
0627716f
ZK
13464
13465
13466pkg_failed=no
13467{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libsystemd" >&5
13468printf %s "checking for libsystemd... " >&6; }
13469
13470if test -n "$LIBSYSTEMD_CFLAGS"; then
13471 pkg_cv_LIBSYSTEMD_CFLAGS="$LIBSYSTEMD_CFLAGS"
13472 elif test -n "$PKG_CONFIG"; then
13473 if test -n "$PKG_CONFIG" && \
13474 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
13475 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
13476 ac_status=$?
13477 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13478 test $ac_status = 0; }; then
13479 pkg_cv_LIBSYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
13480 test "x$?" != "x0" && pkg_failed=yes
13481else
13482 pkg_failed=yes
13483fi
13484 else
13485 pkg_failed=untried
13486fi
13487if test -n "$LIBSYSTEMD_LIBS"; then
13488 pkg_cv_LIBSYSTEMD_LIBS="$LIBSYSTEMD_LIBS"
13489 elif test -n "$PKG_CONFIG"; then
13490 if test -n "$PKG_CONFIG" && \
13491 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
13492 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
13493 ac_status=$?
13494 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13495 test $ac_status = 0; }; then
13496 pkg_cv_LIBSYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
13497 test "x$?" != "x0" && pkg_failed=yes
13498else
13499 pkg_failed=yes
13500fi
13501 else
13502 pkg_failed=untried
13503fi
13504
13505
13506
13507if test $pkg_failed = yes; then
13508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13509printf "%s\n" "no" >&6; }
13510
13511if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13512 _pkg_short_errors_supported=yes
13513else
13514 _pkg_short_errors_supported=no
13515fi
13516 if test $_pkg_short_errors_supported = yes; then
13517 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
13518 else
13519 LIBSYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
13520 fi
13521 # Put the nasty error message in config.log where it belongs
13522 echo "$LIBSYSTEMD_PKG_ERRORS" >&5
13523
13524 as_fn_error $? "Package requirements (libsystemd) were not met:
13525
13526$LIBSYSTEMD_PKG_ERRORS
13527
13528Consider adjusting the PKG_CONFIG_PATH environment variable if you
13529installed software in a non-standard prefix.
13530
13531Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
13532and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
13533See the pkg-config man page for more details." "$LINENO" 5
13534elif test $pkg_failed = untried; then
13535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13536printf "%s\n" "no" >&6; }
635df748
ZK
13537 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
13538printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
0627716f
ZK
13539as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
13540is in your PATH or set the PKG_CONFIG environment variable to the full
13541path to pkg-config.
13542
13543Alternatively, you may set the environment variables LIBSYSTEMD_CFLAGS
13544and LIBSYSTEMD_LIBS to avoid the need to call pkg-config.
13545See the pkg-config man page for more details.
13546
13547To get pkg-config, see <http://pkg-config.freedesktop.org/>.
635df748 13548See 'config.log' for more details" "$LINENO" 5; }
0627716f
ZK
13549else
13550 LIBSYSTEMD_CFLAGS=$pkg_cv_LIBSYSTEMD_CFLAGS
13551 LIBSYSTEMD_LIBS=$pkg_cv_LIBSYSTEMD_LIBS
13552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13553printf "%s\n" "yes" >&6; }
13554
13555fi
13556
5987562c
AK
13557fi
13558
0d22b581
JT
13559################################################################################
13560
b681b774
ZK
13561if test "$BUILD_LVMDBUSD" = "yes"
13562then :
13563
5987562c
AK
13564 unset am_cv_pathless_PYTHON ac_cv_path_PYTHON am_cv_python_platform
13565 unset am_cv_python_pythondir am_cv_python_version am_cv_python_pyexecdir
13566 unset ac_cv_path_PYTHON_CONFIG ac_cv_path_ac_pt_PYTHON_CONFIG
13567
13568
13569
13570
13571
13572
2df7ef58 13573
5987562c
AK
13574 if test -n "$PYTHON"; then
13575 # If the user set $PYTHON, use it and don't search something else.
6b2e4ec5
ZK
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version is >= 3" >&5
13577printf %s "checking whether $PYTHON version is >= 3... " >&6; }
5987562c
AK
13578 prog="import sys
13579# split strings by '.' and convert to numeric. Append some zeros
13580# because we need at least 4 digits for the hex conversion.
13581# map returns an iterator in Python 3.0 and a list in 2.x
13582minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
13583minverhex = 0
13584# xrange is not present in Python 3.0 and range returns an iterator
13585for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13586sys.exit(sys.hexversion < minverhex)"
13587 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
13588 ($PYTHON -c "$prog") >&5 2>&5
13589 ac_status=$?
13590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b2e4ec5
ZK
13591 (exit $ac_status); }
13592then :
13593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13594printf "%s\n" "yes" >&6; }
635df748
ZK
13595else case e in #(
13596 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 13597printf "%s\n" "no" >&6; }
635df748
ZK
13598 as_fn_error $? "Python interpreter is too old" "$LINENO" 5 ;;
13599esac
5987562c
AK
13600fi
13601 am_display_PYTHON=$PYTHON
13602 else
13603 # Otherwise, try each interpreter until we find one that satisfies
13604 # VERSION.
6b2e4ec5
ZK
13605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 3" >&5
13606printf %s "checking for a Python interpreter with version >= 3... " >&6; }
13607if test ${am_cv_pathless_PYTHON+y}
13608then :
13609 printf %s "(cached) " >&6
635df748
ZK
13610else case e in #(
13611 e)
a861f042 13612 for am_cv_pathless_PYTHON in python3 python2 python python3.12 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2.7 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 none; do
5987562c
AK
13613 test "$am_cv_pathless_PYTHON" = none && break
13614 prog="import sys
13615# split strings by '.' and convert to numeric. Append some zeros
13616# because we need at least 4 digits for the hex conversion.
13617# map returns an iterator in Python 3.0 and a list in 2.x
13618minver = list(map(int, '3'.split('.'))) + [0, 0, 0]
13619minverhex = 0
13620# xrange is not present in Python 3.0 and range returns an iterator
13621for i in list(range(0, 4)): minverhex = (minverhex << 8) + minver[i]
13622sys.exit(sys.hexversion < minverhex)"
13623 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
13624 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
13625 ac_status=$?
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6b2e4ec5
ZK
13627 (exit $ac_status); }
13628then :
5987562c
AK
13629 break
13630fi
635df748
ZK
13631 done ;;
13632esac
5987562c 13633fi
6b2e4ec5
ZK
13634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
13635printf "%s\n" "$am_cv_pathless_PYTHON" >&6; }
5987562c
AK
13636 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
13637 if test "$am_cv_pathless_PYTHON" = none; then
13638 PYTHON=:
13639 else
13640 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
13641set dummy $am_cv_pathless_PYTHON; ac_word=$2
6b2e4ec5
ZK
13642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13643printf %s "checking for $ac_word... " >&6; }
13644if test ${ac_cv_path_PYTHON+y}
13645then :
13646 printf %s "(cached) " >&6
635df748
ZK
13647else case e in #(
13648 e) case $PYTHON in
5987562c
AK
13649 [\\/]* | ?:[\\/]*)
13650 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
13651 ;;
13652 *)
13653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654for as_dir in $PATH
13655do
13656 IFS=$as_save_IFS
6b2e4ec5
ZK
13657 case $as_dir in #(((
13658 '') as_dir=./ ;;
13659 */) ;;
13660 *) as_dir=$as_dir/ ;;
13661 esac
5987562c 13662 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
13663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
13664 ac_cv_path_PYTHON="$as_dir$ac_word$ac_exec_ext"
13665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5987562c
AK
13666 break 2
13667 fi
13668done
13669 done
13670IFS=$as_save_IFS
13671
13672 ;;
635df748 13673esac ;;
5987562c
AK
13674esac
13675fi
13676PYTHON=$ac_cv_path_PYTHON
13677if test -n "$PYTHON"; then
6b2e4ec5
ZK
13678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
13679printf "%s\n" "$PYTHON" >&6; }
5987562c 13680else
6b2e4ec5
ZK
13681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13682printf "%s\n" "no" >&6; }
5987562c
AK
13683fi
13684
13685
13686 fi
13687 am_display_PYTHON=$am_cv_pathless_PYTHON
13688 fi
13689
13690
13691 if test "$PYTHON" = :; then
6b2e4ec5 13692 as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
5987562c
AK
13693 else
13694
6b2e4ec5
ZK
13695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
13696printf %s "checking for $am_display_PYTHON version... " >&6; }
13697if test ${am_cv_python_version+y}
13698then :
13699 printf %s "(cached) " >&6
635df748
ZK
13700else case e in #(
13701 e) am_cv_python_version=`$PYTHON -c "import sys; print ('%u.%u' % sys.version_info[:2])"` ;;
13702esac
5987562c 13703fi
6b2e4ec5
ZK
13704{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
13705printf "%s\n" "$am_cv_python_version" >&6; }
5987562c
AK
13706 PYTHON_VERSION=$am_cv_python_version
13707
13708
6b2e4ec5
ZK
13709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
13710printf %s "checking for $am_display_PYTHON platform... " >&6; }
13711if test ${am_cv_python_platform+y}
13712then :
13713 printf %s "(cached) " >&6
635df748
ZK
13714else case e in #(
13715 e) am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"` ;;
13716esac
6b2e4ec5
ZK
13717fi
13718{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
13719printf "%s\n" "$am_cv_python_platform" >&6; }
13720 PYTHON_PLATFORM=$am_cv_python_platform
5987562c 13721
5987562c 13722
6b2e4ec5
ZK
13723 if test "x$prefix" = xNONE; then
13724 am__usable_prefix=$ac_default_prefix
13725 else
13726 am__usable_prefix=$prefix
13727 fi
5987562c 13728
6b2e4ec5
ZK
13729 # Allow user to request using sys.* values from Python,
13730 # instead of the GNU $prefix values.
13731
13732# Check whether --with-python-sys-prefix was given.
13733if test ${with_python_sys_prefix+y}
13734then :
13735 withval=$with_python_sys_prefix; am_use_python_sys=:
635df748
ZK
13736else case e in #(
13737 e) am_use_python_sys=false ;;
13738esac
6b2e4ec5
ZK
13739fi
13740
13741
13742 # Allow user to override whatever the default Python prefix is.
13743
13744# Check whether --with-python_prefix was given.
13745if test ${with_python_prefix+y}
13746then :
13747 withval=$with_python_prefix; am_python_prefix_subst=$withval
13748 am_cv_python_prefix=$withval
13749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON prefix" >&5
13750printf %s "checking for explicit $am_display_PYTHON prefix... " >&6; }
13751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
13752printf "%s\n" "$am_cv_python_prefix" >&6; }
635df748
ZK
13753else case e in #(
13754 e)
6b2e4ec5
ZK
13755 if $am_use_python_sys; then
13756 # using python sys.prefix value, not GNU
13757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON prefix" >&5
13758printf %s "checking for python default $am_display_PYTHON prefix... " >&6; }
13759if test ${am_cv_python_prefix+y}
13760then :
13761 printf %s "(cached) " >&6
635df748
ZK
13762else case e in #(
13763 e) am_cv_python_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.prefix)"` ;;
13764esac
6b2e4ec5
ZK
13765fi
13766{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_prefix" >&5
13767printf "%s\n" "$am_cv_python_prefix" >&6; }
13768
13769 case $am_cv_python_prefix in
13770 $am__usable_prefix*)
13771 am__strip_prefix=`echo "$am__usable_prefix" | sed 's|.|.|g'`
13772 am_python_prefix_subst=`echo "$am_cv_python_prefix" | sed "s,^$am__strip_prefix,\\${prefix},"`
13773 ;;
13774 *)
13775 am_python_prefix_subst=$am_cv_python_prefix
13776 ;;
13777 esac
13778 else # using GNU prefix value, not python sys.prefix
13779 am_python_prefix_subst='${prefix}'
13780 am_python_prefix=$am_python_prefix_subst
13781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON prefix" >&5
13782printf %s "checking for GNU default $am_display_PYTHON prefix... " >&6; }
13783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_prefix" >&5
13784printf "%s\n" "$am_python_prefix" >&6; }
635df748
ZK
13785 fi ;;
13786esac
6b2e4ec5 13787fi
5987562c 13788
6b2e4ec5
ZK
13789 # Substituting python_prefix_subst value.
13790 PYTHON_PREFIX=$am_python_prefix_subst
13791
13792
13793 # emacs-page Now do it all over again for Python exec_prefix, but with yet
13794 # another conditional: fall back to regular prefix if that was specified.
13795
13796# Check whether --with-python_exec_prefix was given.
13797if test ${with_python_exec_prefix+y}
13798then :
13799 withval=$with_python_exec_prefix; am_python_exec_prefix_subst=$withval
13800 am_cv_python_exec_prefix=$withval
13801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for explicit $am_display_PYTHON exec_prefix" >&5
13802printf %s "checking for explicit $am_display_PYTHON exec_prefix... " >&6; }
13803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
13804printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
635df748
ZK
13805else case e in #(
13806 e)
6b2e4ec5
ZK
13807 # no explicit --with-python_exec_prefix, but if
13808 # --with-python_prefix was given, use its value for python_exec_prefix too.
13809 if test -n "$with_python_prefix"
13810then :
13811 am_python_exec_prefix_subst=$with_python_prefix
13812 am_cv_python_exec_prefix=$with_python_prefix
13813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python_prefix-given $am_display_PYTHON exec_prefix" >&5
13814printf %s "checking for python_prefix-given $am_display_PYTHON exec_prefix... " >&6; }
13815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
13816printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
635df748
ZK
13817else case e in #(
13818 e)
6b2e4ec5
ZK
13819 # Set am__usable_exec_prefix whether using GNU or Python values,
13820 # since we use that variable for pyexecdir.
13821 if test "x$exec_prefix" = xNONE; then
13822 am__usable_exec_prefix=$am__usable_prefix
13823 else
13824 am__usable_exec_prefix=$exec_prefix
13825 fi
13826 #
13827 if $am_use_python_sys; then # using python sys.exec_prefix, not GNU
13828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for python default $am_display_PYTHON exec_prefix" >&5
13829printf %s "checking for python default $am_display_PYTHON exec_prefix... " >&6; }
13830if test ${am_cv_python_exec_prefix+y}
13831then :
13832 printf %s "(cached) " >&6
635df748
ZK
13833else case e in #(
13834 e) am_cv_python_exec_prefix=`$PYTHON -c "import sys; sys.stdout.write(sys.exec_prefix)"` ;;
13835esac
6b2e4ec5
ZK
13836fi
13837{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_exec_prefix" >&5
13838printf "%s\n" "$am_cv_python_exec_prefix" >&6; }
13839 case $am_cv_python_exec_prefix in
13840 $am__usable_exec_prefix*)
13841 am__strip_prefix=`echo "$am__usable_exec_prefix" | sed 's|.|.|g'`
13842 am_python_exec_prefix_subst=`echo "$am_cv_python_exec_prefix" | sed "s,^$am__strip_prefix,\\${exec_prefix},"`
13843 ;;
13844 *)
13845 am_python_exec_prefix_subst=$am_cv_python_exec_prefix
13846 ;;
13847 esac
13848 else # using GNU $exec_prefix, not python sys.exec_prefix
13849 am_python_exec_prefix_subst='${exec_prefix}'
13850 am_python_exec_prefix=$am_python_exec_prefix_subst
13851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU default $am_display_PYTHON exec_prefix" >&5
13852printf %s "checking for GNU default $am_display_PYTHON exec_prefix... " >&6; }
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_python_exec_prefix" >&5
13854printf "%s\n" "$am_python_exec_prefix" >&6; }
635df748
ZK
13855 fi ;;
13856esac
13857fi ;;
13858esac
5987562c 13859fi
5987562c 13860
6b2e4ec5
ZK
13861 # Substituting python_exec_prefix_subst.
13862 PYTHON_EXEC_PREFIX=$am_python_exec_prefix_subst
5987562c 13863
6b2e4ec5
ZK
13864
13865 # Factor out some code duplication into this shell variable.
5987562c
AK
13866 am_python_setup_sysconfig="\
13867import sys
13868# Prefer sysconfig over distutils.sysconfig, for better compatibility
13869# with python 3.x. See automake bug#10227.
13870try:
13871 import sysconfig
13872except ImportError:
13873 can_use_sysconfig = 0
13874else:
13875 can_use_sysconfig = 1
13876# Can't use sysconfig in CPython 2.7, since it's broken in virtualenvs:
13877# <https://github.com/pypa/virtualenv/issues/118>
13878try:
13879 from platform import python_implementation
13880 if python_implementation() == 'CPython' and sys.version[:3] == '2.7':
13881 can_use_sysconfig = 0
13882except ImportError:
13883 pass"
13884
13885
6b2e4ec5
ZK
13886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory (pythondir)" >&5
13887printf %s "checking for $am_display_PYTHON script directory (pythondir)... " >&6; }
13888if test ${am_cv_python_pythondir+y}
13889then :
13890 printf %s "(cached) " >&6
635df748
ZK
13891else case e in #(
13892 e) if test "x$am_cv_python_prefix" = x; then
6b2e4ec5
ZK
13893 am_py_prefix=$am__usable_prefix
13894 else
13895 am_py_prefix=$am_cv_python_prefix
13896 fi
13897 am_cv_python_pythondir=`$PYTHON -c "
5987562c
AK
13898$am_python_setup_sysconfig
13899if can_use_sysconfig:
6b2e4ec5 13900 sitedir = sysconfig.get_path('purelib', vars={'base':'$am_py_prefix'})
5987562c 13901else:
6b2e4ec5
ZK
13902 from distutils import sysconfig
13903 sitedir = sysconfig.get_python_lib(0, 0, prefix='$am_py_prefix')
5987562c 13904sys.stdout.write(sitedir)"`
6b2e4ec5
ZK
13905 #
13906 case $am_cv_python_pythondir in
13907 $am_py_prefix*)
13908 am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
13909 am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,\\${PYTHON_PREFIX},"`
13910 ;;
13911 *)
13912 case $am_py_prefix in
13913 /usr|/System*) ;;
13914 *) am_cv_python_pythondir="\${PYTHON_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
13915 ;;
5987562c 13916 esac
6b2e4ec5
ZK
13917 ;;
13918 esac
635df748
ZK
13919 ;;
13920esac
5987562c 13921fi
6b2e4ec5
ZK
13922{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
13923printf "%s\n" "$am_cv_python_pythondir" >&6; }
5987562c
AK
13924 pythondir=$am_cv_python_pythondir
13925
13926
6b2e4ec5 13927 pkgpythondir=\${pythondir}/$PACKAGE
5987562c
AK
13928
13929
6b2e4ec5
ZK
13930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory (pyexecdir)" >&5
13931printf %s "checking for $am_display_PYTHON extension module directory (pyexecdir)... " >&6; }
13932if test ${am_cv_python_pyexecdir+y}
13933then :
13934 printf %s "(cached) " >&6
635df748
ZK
13935else case e in #(
13936 e) if test "x$am_cv_python_exec_prefix" = x; then
6b2e4ec5
ZK
13937 am_py_exec_prefix=$am__usable_exec_prefix
13938 else
13939 am_py_exec_prefix=$am_cv_python_exec_prefix
13940 fi
13941 am_cv_python_pyexecdir=`$PYTHON -c "
5987562c
AK
13942$am_python_setup_sysconfig
13943if can_use_sysconfig:
6b2e4ec5 13944 sitedir = sysconfig.get_path('platlib', vars={'platbase':'$am_py_exec_prefix'})
5987562c 13945else:
6b2e4ec5
ZK
13946 from distutils import sysconfig
13947 sitedir = sysconfig.get_python_lib(1, 0, prefix='$am_py_exec_prefix')
5987562c 13948sys.stdout.write(sitedir)"`
6b2e4ec5
ZK
13949 #
13950 case $am_cv_python_pyexecdir in
13951 $am_py_exec_prefix*)
13952 am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
13953 am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,\\${PYTHON_EXEC_PREFIX},"`
13954 ;;
13955 *)
13956 case $am_py_exec_prefix in
13957 /usr|/System*) ;;
13958 *) am_cv_python_pyexecdir="\${PYTHON_EXEC_PREFIX}/lib/python$PYTHON_VERSION/site-packages"
13959 ;;
5987562c 13960 esac
6b2e4ec5
ZK
13961 ;;
13962 esac
635df748
ZK
13963 ;;
13964esac
5987562c 13965fi
6b2e4ec5
ZK
13966{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
13967printf "%s\n" "$am_cv_python_pyexecdir" >&6; }
5987562c
AK
13968 pyexecdir=$am_cv_python_pyexecdir
13969
13970
6b2e4ec5 13971 pkgpyexecdir=\${pyexecdir}/$PACKAGE
5987562c
AK
13972
13973
13974
13975 fi
13976
5987562c 13977 PYTHON3=$PYTHON
b681b774
ZK
13978 if test -z "$PYTHON3"
13979then :
13980
13981 as_fn_error $? "python3 is required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5
13982
13983fi
1b59f5a9 13984 if test -n "$ac_tool_prefix"; then
5987562c
AK
13985 # Extract the first word of "${ac_tool_prefix}python3-config", so it can be a program name with args.
13986set dummy ${ac_tool_prefix}python3-config; ac_word=$2
6b2e4ec5
ZK
13987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13988printf %s "checking for $ac_word... " >&6; }
13989if test ${ac_cv_path_PYTHON3_CONFIG+y}
13990then :
13991 printf %s "(cached) " >&6
635df748
ZK
13992else case e in #(
13993 e) case $PYTHON3_CONFIG in
ee3cfa41 13994 [\\/]* | ?:[\\/]*)
5987562c 13995 ac_cv_path_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test with a path.
ee3cfa41
AK
13996 ;;
13997 *)
13998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13999for as_dir in $PATH
14000do
14001 IFS=$as_save_IFS
6b2e4ec5
ZK
14002 case $as_dir in #(((
14003 '') as_dir=./ ;;
14004 */) ;;
14005 *) as_dir=$as_dir/ ;;
14006 esac
ee3cfa41 14007 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
14008 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14009 ac_cv_path_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext"
14010 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
ee3cfa41
AK
14011 break 2
14012 fi
14013done
14014 done
14015IFS=$as_save_IFS
14016
ee3cfa41 14017 ;;
635df748 14018esac ;;
ee3cfa41
AK
14019esac
14020fi
5987562c
AK
14021PYTHON3_CONFIG=$ac_cv_path_PYTHON3_CONFIG
14022if test -n "$PYTHON3_CONFIG"; then
6b2e4ec5
ZK
14023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5
14024printf "%s\n" "$PYTHON3_CONFIG" >&6; }
ee3cfa41 14025else
6b2e4ec5
ZK
14026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14027printf "%s\n" "no" >&6; }
ee3cfa41
AK
14028fi
14029
14030
1b59f5a9 14031fi
5987562c
AK
14032if test -z "$ac_cv_path_PYTHON3_CONFIG"; then
14033 ac_pt_PYTHON3_CONFIG=$PYTHON3_CONFIG
14034 # Extract the first word of "python3-config", so it can be a program name with args.
14035set dummy python3-config; ac_word=$2
6b2e4ec5
ZK
14036{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14037printf %s "checking for $ac_word... " >&6; }
14038if test ${ac_cv_path_ac_pt_PYTHON3_CONFIG+y}
14039then :
14040 printf %s "(cached) " >&6
635df748
ZK
14041else case e in #(
14042 e) case $ac_pt_PYTHON3_CONFIG in
1b59f5a9 14043 [\\/]* | ?:[\\/]*)
5987562c 14044 ac_cv_path_ac_pt_PYTHON3_CONFIG="$ac_pt_PYTHON3_CONFIG" # Let the user override the test with a path.
1b59f5a9
ZK
14045 ;;
14046 *)
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048for as_dir in $PATH
14049do
14050 IFS=$as_save_IFS
6b2e4ec5
ZK
14051 case $as_dir in #(((
14052 '') as_dir=./ ;;
14053 */) ;;
14054 *) as_dir=$as_dir/ ;;
14055 esac
1b59f5a9 14056 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
14057 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14058 ac_cv_path_ac_pt_PYTHON3_CONFIG="$as_dir$ac_word$ac_exec_ext"
14059 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1b59f5a9
ZK
14060 break 2
14061 fi
14062done
14063 done
14064IFS=$as_save_IFS
ee3cfa41 14065
1b59f5a9 14066 ;;
635df748 14067esac ;;
1b59f5a9
ZK
14068esac
14069fi
5987562c
AK
14070ac_pt_PYTHON3_CONFIG=$ac_cv_path_ac_pt_PYTHON3_CONFIG
14071if test -n "$ac_pt_PYTHON3_CONFIG"; then
6b2e4ec5
ZK
14072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PYTHON3_CONFIG" >&5
14073printf "%s\n" "$ac_pt_PYTHON3_CONFIG" >&6; }
1b59f5a9 14074else
6b2e4ec5
ZK
14075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14076printf "%s\n" "no" >&6; }
1b59f5a9 14077fi
ee3cfa41 14078
5987562c
AK
14079 if test "x$ac_pt_PYTHON3_CONFIG" = x; then
14080 PYTHON3_CONFIG=""
1b59f5a9
ZK
14081 else
14082 case $cross_compiling:$ac_tool_warned in
14083yes:)
6b2e4ec5
ZK
14084{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14085printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1b59f5a9
ZK
14086ac_tool_warned=yes ;;
14087esac
5987562c 14088 PYTHON3_CONFIG=$ac_pt_PYTHON3_CONFIG
1b59f5a9
ZK
14089 fi
14090else
5987562c
AK
14091 PYTHON3_CONFIG="$ac_cv_path_PYTHON3_CONFIG"
14092fi
14093
b681b774
ZK
14094 if test -z "$PYTHON3_CONFIG"
14095then :
14096
14097 as_fn_error $? "python3 headers are required for --enable-python3_bindings or --enable-dbus-service but cannot be found" "$LINENO" 5
14098
14099fi
5987562c 14100 PYTHON3DIR=$pythondir
b681b774
ZK
14101 if test "$PYTHON3_BINDINGS" = "yes"
14102then :
a861f042 14103 PYTHON_BINDINGS="yes"
b681b774 14104fi
1b59f5a9 14105
5987562c 14106 # To get this macro, install autoconf-archive package then run autoreconf
1b59f5a9 14107
5987562c
AK
14108 if test -z $PYTHON;
14109 then
14110 if test -z "python3";
14111 then
14112 PYTHON="python3"
14113 else
14114 PYTHON="python3"
14115 fi
14116 fi
14117 PYTHON_NAME=`basename $PYTHON`
6b2e4ec5
ZK
14118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: pyudev" >&5
14119printf %s "checking $PYTHON_NAME module: pyudev... " >&6; }
5987562c
AK
14120 $PYTHON -c "import pyudev" 2>/dev/null
14121 if test $? -eq 0;
14122 then
6b2e4ec5
ZK
14123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14124printf "%s\n" "yes" >&6; }
5987562c
AK
14125 eval HAVE_PYMOD_PYUDEV=yes
14126 else
6b2e4ec5
ZK
14127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128printf "%s\n" "no" >&6; }
5987562c
AK
14129 eval HAVE_PYMOD_PYUDEV=no
14130 #
14131 if test -n "Required"
14132 then
14133 as_fn_error $? "failed to find required module pyudev" "$LINENO" 5
14134 exit 1
14135 fi
14136 fi
14137
14138
14139 if test -z $PYTHON;
14140 then
14141 if test -z "python3";
14142 then
14143 PYTHON="python3"
14144 else
14145 PYTHON="python3"
14146 fi
14147 fi
14148 PYTHON_NAME=`basename $PYTHON`
6b2e4ec5
ZK
14149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking $PYTHON_NAME module: dbus" >&5
14150printf %s "checking $PYTHON_NAME module: dbus... " >&6; }
5987562c
AK
14151 $PYTHON -c "import dbus" 2>/dev/null
14152 if test $? -eq 0;
14153 then
6b2e4ec5
ZK
14154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14155printf "%s\n" "yes" >&6; }
5987562c
AK
14156 eval HAVE_PYMOD_DBUS=yes
14157 else
6b2e4ec5
ZK
14158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14159printf "%s\n" "no" >&6; }
5987562c
AK
14160 eval HAVE_PYMOD_DBUS=no
14161 #
14162 if test -n "Required"
14163 then
14164 as_fn_error $? "failed to find required module dbus" "$LINENO" 5
14165 exit 1
14166 fi
14167 fi
14168
b681b774 14169
5987562c
AK
14170fi
14171
f11781c5
AK
14172################################################################################
14173# Check whether --enable-pkgconfig was given.
6b2e4ec5
ZK
14174if test ${enable_pkgconfig+y}
14175then :
f11781c5 14176 enableval=$enable_pkgconfig; PKGCONFIG=$enableval
635df748
ZK
14177else case e in #(
14178 e) PKGCONFIG="no" ;;
14179esac
ad6254c5 14180fi
ad6254c5 14181
ad6254c5 14182
f11781c5
AK
14183################################################################################
14184# Check whether --enable-write_install was given.
6b2e4ec5
ZK
14185if test ${enable_write_install+y}
14186then :
f11781c5 14187 enableval=$enable_write_install; WRITE_INSTALL=$enableval
635df748
ZK
14188else case e in #(
14189 e) WRITE_INSTALL="no" ;;
14190esac
ad6254c5
AK
14191fi
14192
ad6254c5 14193
f11781c5 14194################################################################################
6b2e4ec5
ZK
14195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install fsadm" >&5
14196printf %s "checking whether to install fsadm... " >&6; }
f11781c5 14197# Check whether --enable-fsadm was given.
6b2e4ec5
ZK
14198if test ${enable_fsadm+y}
14199then :
f11781c5 14200 enableval=$enable_fsadm; FSADM=$enableval
ad6254c5
AK
14201fi
14202
6b2e4ec5
ZK
14203{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FSADM" >&5
14204printf "%s\n" "$FSADM" >&6; }
ad6254c5 14205
ed48cb26
ZK
14206
14207################################################################################
6b2e4ec5
ZK
14208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install lvm_import_vdo" >&5
14209printf %s "checking whether to install lvm_import_vdo... " >&6; }
12ba43cc 14210# Check whether --enable-lvmimportvdo was given.
6b2e4ec5
ZK
14211if test ${enable_lvmimportvdo+y}
14212then :
12ba43cc 14213 enableval=$enable_lvmimportvdo; LVMIMPORTVDO=$enableval
ed48cb26
ZK
14214fi
14215
6b2e4ec5
ZK
14216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LVMIMPORTVDO" >&5
14217printf "%s\n" "$LVMIMPORTVDO" >&6; }
ed48cb26 14218
a70d6b35 14219################################################################################
6b2e4ec5
ZK
14220{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to install blkdeactivate" >&5
14221printf %s "checking whether to install blkdeactivate... " >&6; }
a70d6b35 14222# Check whether --enable-blkdeactivate was given.
6b2e4ec5
ZK
14223if test ${enable_blkdeactivate+y}
14224then :
a70d6b35
PR
14225 enableval=$enable_blkdeactivate; BLKDEACTIVATE=$enableval
14226fi
14227
6b2e4ec5
ZK
14228{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKDEACTIVATE" >&5
14229printf "%s\n" "$BLKDEACTIVATE" >&6; }
a70d6b35 14230
f11781c5 14231################################################################################
6b2e4ec5
ZK
14232{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use dmeventd" >&5
14233printf %s "checking whether to use dmeventd... " >&6; }
f11781c5 14234# Check whether --enable-dmeventd was given.
6b2e4ec5
ZK
14235if test ${enable_dmeventd+y}
14236then :
95dd5bc7 14237 enableval=$enable_dmeventd; BUILD_DMEVENTD=$enableval
635df748
ZK
14238else case e in #(
14239 e) BUILD_DMEVENTD="no" ;;
14240esac
f11781c5 14241fi
ad6254c5 14242
6b2e4ec5
ZK
14243{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMEVENTD" >&5
14244printf "%s\n" "$BUILD_DMEVENTD" >&6; }
ad6254c5 14245
b681b774
ZK
14246if test "$BUILD_DMEVENTD" = "yes"
14247then :
14248
0627716f 14249 if test "$MIRRORS" != "internal"
b681b774 14250then :
0627716f
ZK
14251 as_fn_error $? "--enable-dmeventd currently requires --with-mirrors=internal" "$LINENO" 5
14252fi
b681b774 14253
0627716f 14254printf "%s\n" "#define DMEVENTD 1" >>confdefs.h
b681b774
ZK
14255
14256fi
0627716f
ZK
14257
14258################################################################################
14259# Check whether --enable-cmdlib was given.
14260if test ${enable_cmdlib+y}
b681b774 14261then :
0627716f 14262 enableval=$enable_cmdlib; CMDLIB=$enableval
635df748
ZK
14263else case e in #(
14264 e) CMDLIB="maybe" ;;
14265esac
0627716f 14266fi
b681b774 14267
b681b774 14268
0627716f
ZK
14269if test "$BUILD_DMEVENTD" = "yes"
14270then :
14271 if test "$CMDLIB" = "no"
14272then :
14273 as_fn_error $? "--enable-dmeventd requires --enable-cmdlib to be used as well" "$LINENO" 5
635df748
ZK
14274else case e in #(
14275 e) CMDLIB="yes" ;;
14276esac
0627716f 14277fi
b681b774 14278fi
ad6254c5 14279
0627716f
ZK
14280if test "$CMDLIB" != "yes"
14281then :
14282 CMDLIB="no" LVM2CMD_LIB=
635df748
ZK
14283else case e in #(
14284 e) LVM2CMD_LIB="-llvm2cmd" ;;
14285esac
0627716f 14286fi
ad6254c5 14287
0627716f
ZK
14288{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to compile liblvm2cmd.so" >&5
14289printf %s "checking whether to compile liblvm2cmd.so... " >&6; }
14290{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CMDLIB" >&5
14291printf "%s\n" "$CMDLIB" >&6; }
b681b774 14292
0627716f
ZK
14293if test "$CMDLIB" == "yes" && test "$SHARED_LINK" = "no"
14294then :
14295 as_fn_error $? "--enable-cmdlib requires dynamic linking." "$LINENO" 5
a7cf55c6
ZK
14296fi
14297
0627716f 14298
a7cf55c6
ZK
14299################################################################################
14300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build dmfilemapd" >&5
14301printf %s "checking whether to build dmfilemapd... " >&6; }
14302# Check whether --enable-dmfilemapd was given.
14303if test ${enable_dmfilemapd+y}
14304then :
14305 enableval=$enable_dmfilemapd; BUILD_DMFILEMAPD=$enableval
635df748
ZK
14306else case e in #(
14307 e) BUILD_DMFILEMAPD="no" ;;
14308esac
a7cf55c6
ZK
14309fi
14310
14311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_DMFILEMAPD" >&5
14312printf "%s\n" "$BUILD_DMFILEMAPD" >&6; }
14313
14314if test "$BUILD_DMFILEMAPD" = "yes"
14315then :
0627716f 14316 ac_fn_c_check_header_compile "$LINENO" "linux/fiemap.h" "ac_cv_header_linux_fiemap_h" "$ac_includes_default"
a7cf55c6
ZK
14317if test "x$ac_cv_header_linux_fiemap_h" = xyes
14318then :
14319
635df748
ZK
14320else case e in #(
14321 e) as_fn_error $? "--enable-dmfilemapd requires fiemap.h" "$LINENO" 5 ;;
14322esac
a7cf55c6
ZK
14323fi
14324
14325
14326printf "%s\n" "#define DMFILEMAPD 1" >>confdefs.h
14327
f11781c5 14328fi
ad6254c5 14329
f11781c5 14330################################################################################
ad6254c5 14331
6b2e4ec5
ZK
14332{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getline in -lc" >&5
14333printf %s "checking for getline in -lc... " >&6; }
14334if test ${ac_cv_lib_c_getline+y}
14335then :
14336 printf %s "(cached) " >&6
635df748
ZK
14337else case e in #(
14338 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
14339LIBS="-lc $LIBS"
14340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 14341/* end confdefs.h. */
f11781c5
AK
14342
14343/* Override any GCC internal prototype to avoid an error.
14344 Use char because int might match the return type of a GCC
635df748
ZK
14345 builtin and then its argument prototype would still apply.
14346 The 'extern "C"' is for builds by C++ compilers;
14347 although this is not generally supported in C code supporting it here
14348 has little cost and some practical benefit (sr 110532). */
14349#ifdef __cplusplus
14350extern "C"
14351#endif
14352char getline (void);
f11781c5 14353int
6b2e4ec5 14354main (void)
f11781c5
AK
14355{
14356return getline ();
14357 ;
14358 return 0;
14359}
ad6254c5 14360_ACEOF
6b2e4ec5
ZK
14361if ac_fn_c_try_link "$LINENO"
14362then :
f11781c5 14363 ac_cv_lib_c_getline=yes
635df748
ZK
14364else case e in #(
14365 e) ac_cv_lib_c_getline=no ;;
14366esac
f11781c5 14367fi
6b2e4ec5 14368rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 14369 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
14370LIBS=$ac_check_lib_save_LIBS ;;
14371esac
f11781c5 14372fi
6b2e4ec5
ZK
14373{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getline" >&5
14374printf "%s\n" "$ac_cv_lib_c_getline" >&6; }
14375if test "x$ac_cv_lib_c_getline" = xyes
14376then :
f11781c5 14377
6b2e4ec5 14378printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
ad6254c5 14379
ad6254c5 14380fi
7a197a62 14381
ad6254c5 14382
f11781c5
AK
14383################################################################################
14384
6b2e4ec5
ZK
14385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for canonicalize_file_name in -lc" >&5
14386printf %s "checking for canonicalize_file_name in -lc... " >&6; }
14387if test ${ac_cv_lib_c_canonicalize_file_name+y}
14388then :
14389 printf %s "(cached) " >&6
635df748
ZK
14390else case e in #(
14391 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
14392LIBS="-lc $LIBS"
14393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 14394/* end confdefs.h. */
f11781c5
AK
14395
14396/* Override any GCC internal prototype to avoid an error.
14397 Use char because int might match the return type of a GCC
635df748
ZK
14398 builtin and then its argument prototype would still apply.
14399 The 'extern "C"' is for builds by C++ compilers;
14400 although this is not generally supported in C code supporting it here
14401 has little cost and some practical benefit (sr 110532). */
14402#ifdef __cplusplus
14403extern "C"
14404#endif
14405char canonicalize_file_name (void);
f11781c5 14406int
6b2e4ec5 14407main (void)
f11781c5
AK
14408{
14409return canonicalize_file_name ();
14410 ;
14411 return 0;
14412}
ad6254c5 14413_ACEOF
6b2e4ec5
ZK
14414if ac_fn_c_try_link "$LINENO"
14415then :
f11781c5 14416 ac_cv_lib_c_canonicalize_file_name=yes
635df748
ZK
14417else case e in #(
14418 e) ac_cv_lib_c_canonicalize_file_name=no ;;
14419esac
f11781c5 14420fi
6b2e4ec5 14421rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 14422 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
14423LIBS=$ac_check_lib_save_LIBS ;;
14424esac
f11781c5 14425fi
6b2e4ec5
ZK
14426{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_canonicalize_file_name" >&5
14427printf "%s\n" "$ac_cv_lib_c_canonicalize_file_name" >&6; }
14428if test "x$ac_cv_lib_c_canonicalize_file_name" = xyes
14429then :
f11781c5 14430
6b2e4ec5 14431printf "%s\n" "#define HAVE_CANONICALIZE_FILE_NAME 1" >>confdefs.h
ad6254c5 14432
ad6254c5 14433fi
7a197a62 14434
ad6254c5 14435
f11781c5 14436################################################################################
6b2e4ec5
ZK
14437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14438printf %s "checking for dlopen in -ldl... " >&6; }
14439if test ${ac_cv_lib_dl_dlopen+y}
14440then :
14441 printf %s "(cached) " >&6
635df748
ZK
14442else case e in #(
14443 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
14444LIBS="-ldl $LIBS"
14445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446/* end confdefs.h. */
ad6254c5 14447
f11781c5
AK
14448/* Override any GCC internal prototype to avoid an error.
14449 Use char because int might match the return type of a GCC
635df748
ZK
14450 builtin and then its argument prototype would still apply.
14451 The 'extern "C"' is for builds by C++ compilers;
14452 although this is not generally supported in C code supporting it here
14453 has little cost and some practical benefit (sr 110532). */
14454#ifdef __cplusplus
14455extern "C"
14456#endif
14457char dlopen (void);
f11781c5 14458int
6b2e4ec5 14459main (void)
f11781c5
AK
14460{
14461return dlopen ();
14462 ;
14463 return 0;
14464}
ad6254c5 14465_ACEOF
6b2e4ec5
ZK
14466if ac_fn_c_try_link "$LINENO"
14467then :
f11781c5 14468 ac_cv_lib_dl_dlopen=yes
635df748
ZK
14469else case e in #(
14470 e) ac_cv_lib_dl_dlopen=no ;;
14471esac
795ca3e5 14472fi
6b2e4ec5 14473rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 14474 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
14475LIBS=$ac_check_lib_save_LIBS ;;
14476esac
f11781c5 14477fi
6b2e4ec5
ZK
14478{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14479printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
14480if test "x$ac_cv_lib_dl_dlopen" = xyes
14481then :
795ca3e5 14482
6b2e4ec5 14483printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h
ad6254c5 14484
1b59f5a9 14485 DL_LIBS="-ldl"
b681b774 14486 HAVE_LIBDL="yes"
635df748
ZK
14487else case e in #(
14488 e) DL_LIBS=
14489 HAVE_LIBDL="no" ;;
14490esac
f11781c5 14491fi
8106cdd5 14492
ad6254c5 14493
f11781c5 14494################################################################################
b681b774
ZK
14495if ( test "$LVM1" = "shared" || test "$POOL" = "shared" ) && test "$STATIC_LINK" = "yes"
14496then :
14497
1b59f5a9 14498 as_fn_error $? "Features cannot be 'shared' when building statically" "$LINENO" 5
b681b774 14499
f11781c5 14500fi
ad6254c5 14501
c1bd76d6 14502################################################################################
6b2e4ec5
ZK
14503{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
14504printf %s "checking for log10 in -lm... " >&6; }
14505if test ${ac_cv_lib_m_log10+y}
14506then :
14507 printf %s "(cached) " >&6
635df748
ZK
14508else case e in #(
14509 e) ac_check_lib_save_LIBS=$LIBS
c1bd76d6
BR
14510LIBS="-lm $LIBS"
14511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14512/* end confdefs.h. */
14513
14514/* Override any GCC internal prototype to avoid an error.
14515 Use char because int might match the return type of a GCC
635df748
ZK
14516 builtin and then its argument prototype would still apply.
14517 The 'extern "C"' is for builds by C++ compilers;
14518 although this is not generally supported in C code supporting it here
14519 has little cost and some practical benefit (sr 110532). */
14520#ifdef __cplusplus
14521extern "C"
14522#endif
14523char log10 (void);
c1bd76d6 14524int
6b2e4ec5 14525main (void)
c1bd76d6
BR
14526{
14527return log10 ();
14528 ;
14529 return 0;
14530}
14531_ACEOF
6b2e4ec5
ZK
14532if ac_fn_c_try_link "$LINENO"
14533then :
c1bd76d6 14534 ac_cv_lib_m_log10=yes
635df748
ZK
14535else case e in #(
14536 e) ac_cv_lib_m_log10=no ;;
14537esac
c1bd76d6 14538fi
6b2e4ec5 14539rm -f core conftest.err conftest.$ac_objext conftest.beam \
c1bd76d6 14540 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
14541LIBS=$ac_check_lib_save_LIBS ;;
14542esac
c1bd76d6 14543fi
6b2e4ec5
ZK
14544{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
14545printf "%s\n" "$ac_cv_lib_m_log10" >&6; }
14546if test "x$ac_cv_lib_m_log10" = xyes
14547then :
c1bd76d6 14548 M_LIBS="-lm"
635df748
ZK
14549else case e in #(
14550 e) hard_bailout ;;
14551esac
c1bd76d6
BR
14552fi
14553
14554
f11781c5 14555################################################################################
6b2e4ec5
ZK
14556{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
14557printf %s "checking for pthread_mutex_lock in -lpthread... " >&6; }
14558if test ${ac_cv_lib_pthread_pthread_mutex_lock+y}
14559then :
14560 printf %s "(cached) " >&6
635df748
ZK
14561else case e in #(
14562 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
14563LIBS="-lpthread $LIBS"
14564cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 14565/* end confdefs.h. */
8a2fc586 14566
f11781c5
AK
14567/* Override any GCC internal prototype to avoid an error.
14568 Use char because int might match the return type of a GCC
635df748
ZK
14569 builtin and then its argument prototype would still apply.
14570 The 'extern "C"' is for builds by C++ compilers;
14571 although this is not generally supported in C code supporting it here
14572 has little cost and some practical benefit (sr 110532). */
14573#ifdef __cplusplus
14574extern "C"
14575#endif
14576char pthread_mutex_lock (void);
f11781c5 14577int
6b2e4ec5 14578main (void)
f11781c5
AK
14579{
14580return pthread_mutex_lock ();
14581 ;
14582 return 0;
14583}
14584_ACEOF
6b2e4ec5
ZK
14585if ac_fn_c_try_link "$LINENO"
14586then :
f11781c5 14587 ac_cv_lib_pthread_pthread_mutex_lock=yes
635df748
ZK
14588else case e in #(
14589 e) ac_cv_lib_pthread_pthread_mutex_lock=no ;;
14590esac
f11781c5 14591fi
6b2e4ec5 14592rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 14593 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
14594LIBS=$ac_check_lib_save_LIBS ;;
14595esac
f11781c5 14596fi
6b2e4ec5
ZK
14597{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
14598printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
14599if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes
14600then :
f11781c5 14601 PTHREAD_LIBS="-lpthread"
635df748
ZK
14602else case e in #(
14603 e) hard_bailout ;;
14604esac
f11781c5
AK
14605fi
14606
f11781c5
AK
14607
14608################################################################################
6b2e4ec5
ZK
14609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable selinux support" >&5
14610printf %s "checking whether to enable selinux support... " >&6; }
f11781c5 14611# Check whether --enable-selinux was given.
6b2e4ec5
ZK
14612if test ${enable_selinux+y}
14613then :
f11781c5
AK
14614 enableval=$enable_selinux; SELINUX=$enableval
14615fi
14616
6b2e4ec5
ZK
14617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SELINUX" >&5
14618printf "%s\n" "$SELINUX" >&6; }
8a2fc586 14619
f11781c5 14620################################################################################
b681b774
ZK
14621if test "$SELINUX" = "yes"
14622then :
14623
6b2e4ec5
ZK
14624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sepol_check_context in -lsepol" >&5
14625printf %s "checking for sepol_check_context in -lsepol... " >&6; }
14626if test ${ac_cv_lib_sepol_sepol_check_context+y}
14627then :
14628 printf %s "(cached) " >&6
635df748
ZK
14629else case e in #(
14630 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
14631LIBS="-lsepol $LIBS"
14632cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14633/* end confdefs.h. */
8a2fc586 14634
7a197a62
AK
14635/* Override any GCC internal prototype to avoid an error.
14636 Use char because int might match the return type of a GCC
635df748
ZK
14637 builtin and then its argument prototype would still apply.
14638 The 'extern "C"' is for builds by C++ compilers;
14639 although this is not generally supported in C code supporting it here
14640 has little cost and some practical benefit (sr 110532). */
14641#ifdef __cplusplus
14642extern "C"
14643#endif
14644char sepol_check_context (void);
ad6254c5 14645int
6b2e4ec5 14646main (void)
ad6254c5 14647{
f11781c5 14648return sepol_check_context ();
ad6254c5
AK
14649 ;
14650 return 0;
14651}
14652_ACEOF
6b2e4ec5
ZK
14653if ac_fn_c_try_link "$LINENO"
14654then :
f11781c5 14655 ac_cv_lib_sepol_sepol_check_context=yes
635df748
ZK
14656else case e in #(
14657 e) ac_cv_lib_sepol_sepol_check_context=no ;;
14658esac
f11781c5 14659fi
6b2e4ec5 14660rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 14661 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
14662LIBS=$ac_check_lib_save_LIBS ;;
14663esac
80992638 14664fi
6b2e4ec5
ZK
14665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sepol_sepol_check_context" >&5
14666printf "%s\n" "$ac_cv_lib_sepol_sepol_check_context" >&6; }
14667if test "x$ac_cv_lib_sepol_sepol_check_context" = xyes
14668then :
7a197a62 14669
80992638 14670
6b2e4ec5 14671printf "%s\n" "#define HAVE_SEPOL 1" >>confdefs.h
f11781c5 14672
86ac529b
ZK
14673 SEPOL_LIBS="-lsepol"
14674fi
14675
14676
14677 if test -n "$PKG_CONFIG" && \
14678 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14679 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14680 ac_status=$?
14681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14682 test $ac_status = 0; }; then
14683
14684pkg_failed=no
a7cf55c6
ZK
14685{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libselinux" >&5
14686printf %s "checking for libselinux... " >&6; }
86ac529b
ZK
14687
14688if test -n "$SELINUX_CFLAGS"; then
14689 pkg_cv_SELINUX_CFLAGS="$SELINUX_CFLAGS"
14690 elif test -n "$PKG_CONFIG"; then
14691 if test -n "$PKG_CONFIG" && \
14692 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14693 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14694 ac_status=$?
14695 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14696 test $ac_status = 0; }; then
14697 pkg_cv_SELINUX_CFLAGS=`$PKG_CONFIG --cflags "libselinux" 2>/dev/null`
14698 test "x$?" != "x0" && pkg_failed=yes
14699else
14700 pkg_failed=yes
14701fi
14702 else
14703 pkg_failed=untried
14704fi
14705if test -n "$SELINUX_LIBS"; then
14706 pkg_cv_SELINUX_LIBS="$SELINUX_LIBS"
14707 elif test -n "$PKG_CONFIG"; then
14708 if test -n "$PKG_CONFIG" && \
14709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libselinux\""; } >&5
14710 ($PKG_CONFIG --exists --print-errors "libselinux") 2>&5
14711 ac_status=$?
14712 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14713 test $ac_status = 0; }; then
14714 pkg_cv_SELINUX_LIBS=`$PKG_CONFIG --libs "libselinux" 2>/dev/null`
14715 test "x$?" != "x0" && pkg_failed=yes
14716else
14717 pkg_failed=yes
14718fi
14719 else
14720 pkg_failed=untried
14721fi
14722
14723
14724
14725if test $pkg_failed = yes; then
a7cf55c6 14726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
86ac529b
ZK
14727printf "%s\n" "no" >&6; }
14728
14729if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14730 _pkg_short_errors_supported=yes
14731else
14732 _pkg_short_errors_supported=no
8106cdd5 14733fi
86ac529b 14734 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 14735 SELINUX_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libselinux" 2>&1`
86ac529b 14736 else
a7cf55c6 14737 SELINUX_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libselinux" 2>&1`
86ac529b 14738 fi
a7cf55c6
ZK
14739 # Put the nasty error message in config.log where it belongs
14740 echo "$SELINUX_PKG_ERRORS" >&5
795ca3e5 14741
a7cf55c6 14742 as_fn_error $? "Package requirements (libselinux) were not met:
86ac529b
ZK
14743
14744$SELINUX_PKG_ERRORS
14745
14746Consider adjusting the PKG_CONFIG_PATH environment variable if you
14747installed software in a non-standard prefix.
14748
14749Alternatively, you may set the environment variables SELINUX_CFLAGS
14750and SELINUX_LIBS to avoid the need to call pkg-config.
14751See the pkg-config man page for more details." "$LINENO" 5
14752elif test $pkg_failed = untried; then
a7cf55c6 14753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
86ac529b 14754printf "%s\n" "no" >&6; }
635df748
ZK
14755 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
14756printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
86ac529b
ZK
14757as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
14758is in your PATH or set the PKG_CONFIG environment variable to the full
14759path to pkg-config.
14760
14761Alternatively, you may set the environment variables SELINUX_CFLAGS
14762and SELINUX_LIBS to avoid the need to call pkg-config.
14763See the pkg-config man page for more details.
14764
14765To get pkg-config, see <http://pkg-config.freedesktop.org/>.
635df748 14766See 'config.log' for more details" "$LINENO" 5; }
86ac529b 14767else
a7cf55c6
ZK
14768 SELINUX_CFLAGS=$pkg_cv_SELINUX_CFLAGS
14769 SELINUX_LIBS=$pkg_cv_SELINUX_LIBS
86ac529b
ZK
14770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771printf "%s\n" "yes" >&6; }
a7cf55c6 14772 SELINUX_STATIC_LIBS=$("$PKG_CONFIG" --static --libs libselinux)
86ac529b
ZK
14773fi
14774fi
f11781c5 14775
6b2e4ec5
ZK
14776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for is_selinux_enabled in -lselinux" >&5
14777printf %s "checking for is_selinux_enabled in -lselinux... " >&6; }
14778if test ${ac_cv_lib_selinux_is_selinux_enabled+y}
14779then :
14780 printf %s "(cached) " >&6
635df748
ZK
14781else case e in #(
14782 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
14783LIBS="-lselinux $LIBS"
14784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25fbec5b 14785/* end confdefs.h. */
80992638 14786
7a197a62
AK
14787/* Override any GCC internal prototype to avoid an error.
14788 Use char because int might match the return type of a GCC
635df748
ZK
14789 builtin and then its argument prototype would still apply.
14790 The 'extern "C"' is for builds by C++ compilers;
14791 although this is not generally supported in C code supporting it here
14792 has little cost and some practical benefit (sr 110532). */
14793#ifdef __cplusplus
14794extern "C"
14795#endif
14796char is_selinux_enabled (void);
ad6254c5 14797int
6b2e4ec5 14798main (void)
ad6254c5 14799{
f11781c5 14800return is_selinux_enabled ();
ad6254c5
AK
14801 ;
14802 return 0;
14803}
14804_ACEOF
6b2e4ec5
ZK
14805if ac_fn_c_try_link "$LINENO"
14806then :
f11781c5 14807 ac_cv_lib_selinux_is_selinux_enabled=yes
635df748
ZK
14808else case e in #(
14809 e) ac_cv_lib_selinux_is_selinux_enabled=no ;;
14810esac
25fbec5b 14811fi
6b2e4ec5 14812rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 14813 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
14814LIBS=$ac_check_lib_save_LIBS ;;
14815esac
25fbec5b 14816fi
6b2e4ec5
ZK
14817{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_is_selinux_enabled" >&5
14818printf "%s\n" "$ac_cv_lib_selinux_is_selinux_enabled" >&6; }
14819if test "x$ac_cv_lib_selinux_is_selinux_enabled" = xyes
14820then :
25fbec5b 14821
6b2e4ec5 14822 for ac_header in selinux/selinux.h
f11781c5 14823do :
6b2e4ec5
ZK
14824 ac_fn_c_check_header_compile "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
14825if test "x$ac_cv_header_selinux_selinux_h" = xyes
14826then :
14827 printf "%s\n" "#define HAVE_SELINUX_SELINUX_H 1" >>confdefs.h
795ca3e5 14828
635df748
ZK
14829else case e in #(
14830 e) hard_bailout ;;
14831esac
795ca3e5 14832fi
795ca3e5 14833
f11781c5 14834done
6b2e4ec5
ZK
14835 ac_fn_c_check_header_compile "$LINENO" "selinux/label.h" "ac_cv_header_selinux_label_h" "$ac_includes_default"
14836if test "x$ac_cv_header_selinux_label_h" = xyes
14837then :
14838 printf "%s\n" "#define HAVE_SELINUX_LABEL_H 1" >>confdefs.h
ad6254c5 14839
ad6254c5 14840fi
7a197a62 14841
ad6254c5 14842
6b2e4ec5 14843printf "%s\n" "#define HAVE_SELINUX 1" >>confdefs.h
7a197a62 14844
86ac529b
ZK
14845 SELINUX_LIBS=${SELINUX_LIBS:--lselinux}
14846 SELINUX_STATIC_LIBS=${SELINUX_STATIC_LIBS:-$SELINUX_LIBS $SEPOL_LIBS}
f11781c5
AK
14847 SELINUX_PC="libselinux"
14848 HAVE_SELINUX=yes
635df748
ZK
14849else case e in #(
14850 e)
6b2e4ec5
ZK
14851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling selinux" >&5
14852printf "%s\n" "$as_me: WARNING: Disabling selinux" >&2;}
f11781c5 14853 SELINUX_LIBS=
86ac529b 14854 SELINUX_STATIC_LIBS=
f11781c5 14855 SELINUX_PC=
635df748
ZK
14856 HAVE_SELINUX=no ;;
14857esac
795ca3e5 14858fi
ad6254c5 14859
b681b774 14860
795ca3e5
AK
14861fi
14862
ae96a43f
ZK
14863################################################################################
14864
6b2e4ec5
ZK
14865{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BLKZEROOUT in sys/ioctl.h." >&5
14866printf %s "checking for BLKZEROOUT in sys/ioctl.h.... " >&6; }
14867if test ${ac_cv_have_blkzeroout+y}
14868then :
14869 printf %s "(cached) " >&6
635df748
ZK
14870else case e in #(
14871 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ae96a43f
ZK
14872/* end confdefs.h. */
14873#include <sys/ioctl.h>
14874#include <linux/fs.h>
14875int bar(void) { return ioctl(0, BLKZEROOUT, 0); }
14876
14877int
6b2e4ec5 14878main (void)
ae96a43f
ZK
14879{
14880
14881 ;
14882 return 0;
14883}
14884_ACEOF
6b2e4ec5
ZK
14885if ac_fn_c_try_compile "$LINENO"
14886then :
b681b774 14887 ac_cv_have_blkzeroout="yes"
635df748
ZK
14888else case e in #(
14889 e) ac_cv_have_blkzeroout="no" ;;
14890esac
ae96a43f 14891fi
635df748
ZK
14892rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14893esac
ae96a43f 14894fi
6b2e4ec5
ZK
14895{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_blkzeroout" >&5
14896printf "%s\n" "$ac_cv_have_blkzeroout" >&6; }
ae96a43f
ZK
14897
14898
14899# Check whether --enable-blkzeroout was given.
6b2e4ec5
ZK
14900if test ${enable_blkzeroout+y}
14901then :
ae96a43f 14902 enableval=$enable_blkzeroout; BLKZEROOUT=$enableval
635df748
ZK
14903else case e in #(
14904 e) BLKZEROOUT="yes" ;;
14905esac
ae96a43f
ZK
14906fi
14907
14908
6b2e4ec5
ZK
14909{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use BLKZEROOUT for device zeroing" >&5
14910printf %s "checking whether to use BLKZEROOUT for device zeroing... " >&6; }
b681b774
ZK
14911if test "$BLKZEROOUT" = "yes"
14912then :
14913
6b2e4ec5
ZK
14914 if test $ac_cv_have_blkzeroout = yes
14915then :
ae96a43f 14916
6b2e4ec5 14917printf "%s\n" "#define HAVE_BLKZEROOUT 1" >>confdefs.h
ae96a43f 14918
635df748
ZK
14919else case e in #(
14920 e) BLKZEROOUT="no" ;;
14921esac
ae96a43f 14922fi
b681b774 14923
ae96a43f 14924fi
6b2e4ec5
ZK
14925{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BLKZEROOUT" >&5
14926printf "%s\n" "$BLKZEROOUT" >&6; }
ae96a43f
ZK
14927
14928
f11781c5 14929################################################################################
92b53a80
ZK
14930RT_LIBS=
14931HAVE_REALTIME=no
b681b774
ZK
14932if test "$REALTIME" = "yes"
14933then :
14934
6b2e4ec5
ZK
14935
14936 for ac_func in clock_gettime
92b53a80
ZK
14937do :
14938 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
6b2e4ec5
ZK
14939if test "x$ac_cv_func_clock_gettime" = xyes
14940then :
14941 printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
92b53a80
ZK
14942 HAVE_REALTIME=yes
14943fi
92b53a80 14944
6b2e4ec5 14945done
92b53a80 14946
b681b774 14947 if test "$HAVE_REALTIME" != "yes"
6b2e4ec5 14948then :
92b53a80 14949 # try again with -lrt
6b2e4ec5
ZK
14950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
14951printf %s "checking for clock_gettime in -lrt... " >&6; }
14952if test ${ac_cv_lib_rt_clock_gettime+y}
14953then :
14954 printf %s "(cached) " >&6
635df748
ZK
14955else case e in #(
14956 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
14957LIBS="-lrt $LIBS"
14958cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 14959/* end confdefs.h. */
ad6254c5 14960
f11781c5
AK
14961/* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
635df748
ZK
14963 builtin and then its argument prototype would still apply.
14964 The 'extern "C"' is for builds by C++ compilers;
14965 although this is not generally supported in C code supporting it here
14966 has little cost and some practical benefit (sr 110532). */
14967#ifdef __cplusplus
14968extern "C"
14969#endif
14970char clock_gettime (void);
ad6254c5 14971int
6b2e4ec5 14972main (void)
ad6254c5 14973{
f11781c5 14974return clock_gettime ();
ad6254c5
AK
14975 ;
14976 return 0;
14977}
14978_ACEOF
6b2e4ec5
ZK
14979if ac_fn_c_try_link "$LINENO"
14980then :
f11781c5 14981 ac_cv_lib_rt_clock_gettime=yes
635df748
ZK
14982else case e in #(
14983 e) ac_cv_lib_rt_clock_gettime=no ;;
14984esac
ad6254c5 14985fi
6b2e4ec5 14986rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 14987 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
14988LIBS=$ac_check_lib_save_LIBS ;;
14989esac
26e7f2e0 14990fi
6b2e4ec5
ZK
14991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
14992printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
14993if test "x$ac_cv_lib_rt_clock_gettime" = xyes
14994then :
92b53a80 14995 RT_LIBS="-lrt"; HAVE_REALTIME=yes
8106cdd5 14996fi
ad6254c5 14997
92b53a80 14998fi
ad6254c5 14999
b681b774
ZK
15000 if test "$HAVE_REALTIME" = "yes"
15001then :
15002
7a197a62 15003
6b2e4ec5 15004printf "%s\n" "#define HAVE_REALTIME 1" >>confdefs.h
ad6254c5 15005
b681b774 15006
635df748
ZK
15007else case e in #(
15008 e)
6b2e4ec5
ZK
15009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Disabling realtime clock" >&5
15010printf "%s\n" "$as_me: WARNING: Disabling realtime clock" >&2;}
635df748
ZK
15011 ;;
15012esac
b681b774
ZK
15013fi
15014
f11781c5
AK
15015fi
15016
6b2e4ec5
ZK
15017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct stat has st_ctim." >&5
15018printf %s "checking for struct stat has st_ctim.... " >&6; }
15019if test ${ac_cv_stat_st_ctim+y}
15020then :
15021 printf %s "(cached) " >&6
635df748
ZK
15022else case e in #(
15023 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583f1b
ZK
15024/* end confdefs.h. */
15025#include <sys/stat.h>
15026long bar(void) { struct stat s; return (long)(s.st_ctim.tv_sec + s.st_ctim.tv_nsec);}
15027
15028int
6b2e4ec5 15029main (void)
17583f1b
ZK
15030{
15031
15032 ;
15033 return 0;
15034}
15035_ACEOF
6b2e4ec5
ZK
15036if ac_fn_c_try_compile "$LINENO"
15037then :
17583f1b 15038 ac_cv_stat_st_ctim=yes
635df748
ZK
15039else case e in #(
15040 e) ac_cv_stat_st_ctim=no ;;
15041esac
17583f1b 15042fi
635df748
ZK
15043rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15044esac
17583f1b 15045fi
6b2e4ec5
ZK
15046{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_stat_st_ctim" >&5
15047printf "%s\n" "$ac_cv_stat_st_ctim" >&6; }
17583f1b 15048
6b2e4ec5
ZK
15049if test $ac_cv_stat_st_ctim = yes
15050then :
17583f1b 15051
6b2e4ec5 15052printf "%s\n" "#define HAVE_STAT_ST_CTIM 1" >>confdefs.h
17583f1b
ZK
15053
15054fi
15055
f11781c5 15056################################################################################
6b2e4ec5 15057 for ac_header in getopt.h
f11781c5 15058do :
6b2e4ec5
ZK
15059 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
15060if test "x$ac_cv_header_getopt_h" = xyes
15061then :
15062 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
f11781c5 15063
6b2e4ec5 15064printf "%s\n" "#define HAVE_GETOPTLONG 1" >>confdefs.h
ad6254c5 15065
ad6254c5 15066fi
7a197a62 15067
f11781c5 15068done
ad6254c5 15069
65534242 15070################################################################################
b681b774
ZK
15071if test "$EDITLINE" = "yes"
15072then :
15073
65534242
ZK
15074
15075pkg_failed=no
a7cf55c6
ZK
15076{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libedit" >&5
15077printf %s "checking for libedit... " >&6; }
65534242
ZK
15078
15079if test -n "$EDITLINE_CFLAGS"; then
15080 pkg_cv_EDITLINE_CFLAGS="$EDITLINE_CFLAGS"
15081 elif test -n "$PKG_CONFIG"; then
15082 if test -n "$PKG_CONFIG" && \
6b2e4ec5 15083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
65534242
ZK
15084 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
15085 ac_status=$?
6b2e4ec5 15086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65534242
ZK
15087 test $ac_status = 0; }; then
15088 pkg_cv_EDITLINE_CFLAGS=`$PKG_CONFIG --cflags "libedit" 2>/dev/null`
15089 test "x$?" != "x0" && pkg_failed=yes
15090else
15091 pkg_failed=yes
15092fi
15093 else
15094 pkg_failed=untried
15095fi
15096if test -n "$EDITLINE_LIBS"; then
15097 pkg_cv_EDITLINE_LIBS="$EDITLINE_LIBS"
15098 elif test -n "$PKG_CONFIG"; then
15099 if test -n "$PKG_CONFIG" && \
6b2e4ec5 15100 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libedit\""; } >&5
65534242
ZK
15101 ($PKG_CONFIG --exists --print-errors "libedit") 2>&5
15102 ac_status=$?
6b2e4ec5 15103 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
65534242
ZK
15104 test $ac_status = 0; }; then
15105 pkg_cv_EDITLINE_LIBS=`$PKG_CONFIG --libs "libedit" 2>/dev/null`
15106 test "x$?" != "x0" && pkg_failed=yes
15107else
15108 pkg_failed=yes
15109fi
15110 else
15111 pkg_failed=untried
15112fi
15113
15114
15115
15116if test $pkg_failed = yes; then
a7cf55c6 15117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 15118printf "%s\n" "no" >&6; }
65534242
ZK
15119
15120if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15121 _pkg_short_errors_supported=yes
15122else
15123 _pkg_short_errors_supported=no
15124fi
15125 if test $_pkg_short_errors_supported = yes; then
a7cf55c6 15126 EDITLINE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libedit" 2>&1`
65534242 15127 else
a7cf55c6 15128 EDITLINE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libedit" 2>&1`
65534242 15129 fi
a7cf55c6
ZK
15130 # Put the nasty error message in config.log where it belongs
15131 echo "$EDITLINE_PKG_ERRORS" >&5
65534242 15132
a7cf55c6 15133 as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5
65534242
ZK
15134
15135elif test $pkg_failed = untried; then
a7cf55c6 15136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6b2e4ec5 15137printf "%s\n" "no" >&6; }
a7cf55c6 15138 as_fn_error $? "libedit could not be found which is required for the --enable-editline option." "$LINENO" 5
65534242
ZK
15139
15140else
a7cf55c6
ZK
15141 EDITLINE_CFLAGS=$pkg_cv_EDITLINE_CFLAGS
15142 EDITLINE_LIBS=$pkg_cv_EDITLINE_LIBS
6b2e4ec5
ZK
15143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15144printf "%s\n" "yes" >&6; }
65534242
ZK
15145
15146
6b2e4ec5 15147printf "%s\n" "#define EDITLINE_SUPPORT 1" >>confdefs.h
65534242
ZK
15148
15149fi
b681b774 15150
65534242
ZK
15151fi
15152
f11781c5 15153################################################################################
b681b774
ZK
15154if test "$READLINE" != "no"
15155then :
15156
f11781c5 15157 lvm_saved_libs=$LIBS
6b2e4ec5
ZK
15158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing tgetent" >&5
15159printf %s "checking for library containing tgetent... " >&6; }
15160if test ${ac_cv_search_tgetent+y}
15161then :
15162 printf %s "(cached) " >&6
635df748
ZK
15163else case e in #(
15164 e) ac_func_search_save_LIBS=$LIBS
f11781c5
AK
15165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15166/* end confdefs.h. */
ad6254c5 15167
f11781c5
AK
15168/* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
635df748
ZK
15170 builtin and then its argument prototype would still apply.
15171 The 'extern "C"' is for builds by C++ compilers;
15172 although this is not generally supported in C code supporting it here
15173 has little cost and some practical benefit (sr 110532). */
15174#ifdef __cplusplus
15175extern "C"
15176#endif
15177char tgetent (void);
f11781c5 15178int
6b2e4ec5 15179main (void)
f11781c5
AK
15180{
15181return tgetent ();
15182 ;
15183 return 0;
15184}
ad6254c5 15185_ACEOF
6b2e4ec5
ZK
15186for ac_lib in '' tinfo ncurses curses termcap termlib
15187do
f11781c5
AK
15188 if test -z "$ac_lib"; then
15189 ac_res="none required"
15190 else
15191 ac_res=-l$ac_lib
15192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15193 fi
6b2e4ec5
ZK
15194 if ac_fn_c_try_link "$LINENO"
15195then :
f11781c5
AK
15196 ac_cv_search_tgetent=$ac_res
15197fi
6b2e4ec5 15198rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 15199 conftest$ac_exeext
6b2e4ec5
ZK
15200 if test ${ac_cv_search_tgetent+y}
15201then :
f11781c5
AK
15202 break
15203fi
15204done
6b2e4ec5
ZK
15205if test ${ac_cv_search_tgetent+y}
15206then :
ad6254c5 15207
635df748
ZK
15208else case e in #(
15209 e) ac_cv_search_tgetent=no ;;
15210esac
b896caa1 15211fi
f11781c5 15212rm conftest.$ac_ext
635df748
ZK
15213LIBS=$ac_func_search_save_LIBS ;;
15214esac
f11781c5 15215fi
6b2e4ec5
ZK
15216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tgetent" >&5
15217printf "%s\n" "$ac_cv_search_tgetent" >&6; }
f11781c5 15218ac_res=$ac_cv_search_tgetent
6b2e4ec5
ZK
15219if test "$ac_res" != no
15220then :
f11781c5
AK
15221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15222 READLINE_LIBS=$ac_cv_search_tgetent
635df748
ZK
15223else case e in #(
15224 e)
b681b774
ZK
15225 if test "$READLINE" = "yes"
15226then :
15227
f11781c5
AK
15228 as_fn_error $? "termcap could not be found which is required for the
15229--enable-readline option (which is enabled by default). Either disable readline
15230support with --disable-readline or download and install termcap from:
15231 ftp.gnu.org/gnu/termcap
15232Note: if you are using precompiled packages you will also need the development
15233 package as well (which may be called termcap-devel or something similar).
15234Note: (n)curses also seems to work as a substitute for termcap. This was
15235 not found either - but you could try installing that as well." "$LINENO" 5
b681b774
ZK
15236
15237fi
635df748
ZK
15238 ;;
15239esac
f11781c5 15240fi
b896caa1 15241
6b2e4ec5
ZK
15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15243printf %s "checking for readline in -lreadline... " >&6; }
15244if test ${ac_cv_lib_readline_readline+y}
15245then :
15246 printf %s "(cached) " >&6
635df748
ZK
15247else case e in #(
15248 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
15249LIBS="-lreadline $LIBS"
15250cat confdefs.h - <<_ACEOF >conftest.$ac_ext
ad6254c5 15251/* end confdefs.h. */
8a2fc586 15252
f11781c5
AK
15253/* Override any GCC internal prototype to avoid an error.
15254 Use char because int might match the return type of a GCC
635df748
ZK
15255 builtin and then its argument prototype would still apply.
15256 The 'extern "C"' is for builds by C++ compilers;
15257 although this is not generally supported in C code supporting it here
15258 has little cost and some practical benefit (sr 110532). */
15259#ifdef __cplusplus
15260extern "C"
15261#endif
15262char readline (void);
f11781c5 15263int
6b2e4ec5 15264main (void)
f11781c5
AK
15265{
15266return readline ();
15267 ;
15268 return 0;
15269}
15270_ACEOF
6b2e4ec5
ZK
15271if ac_fn_c_try_link "$LINENO"
15272then :
f11781c5 15273 ac_cv_lib_readline_readline=yes
635df748
ZK
15274else case e in #(
15275 e) ac_cv_lib_readline_readline=no ;;
15276esac
f11781c5 15277fi
6b2e4ec5 15278rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 15279 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
15280LIBS=$ac_check_lib_save_LIBS ;;
15281esac
f11781c5 15282fi
6b2e4ec5
ZK
15283{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15284printf "%s\n" "$ac_cv_lib_readline_readline" >&6; }
15285if test "x$ac_cv_lib_readline_readline" = xyes
15286then :
f11781c5 15287
8a2fc586 15288
6b2e4ec5 15289printf "%s\n" "#define READLINE_SUPPORT 1" >>confdefs.h
f11781c5 15290
07cd341b 15291 READLINE="yes"
5ef20d21 15292 LIBS=$lvm_saved_libs
6b2e4ec5
ZK
15293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rl_line_buffer in -lreadline" >&5
15294printf %s "checking for rl_line_buffer in -lreadline... " >&6; }
15295if test ${ac_cv_lib_readline_rl_line_buffer+y}
15296then :
15297 printf %s "(cached) " >&6
635df748
ZK
15298else case e in #(
15299 e) ac_check_lib_save_LIBS=$LIBS
f11781c5
AK
15300LIBS="-lreadline $LIBS"
15301cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15302/* end confdefs.h. */
8a2fc586 15303
7a197a62
AK
15304/* Override any GCC internal prototype to avoid an error.
15305 Use char because int might match the return type of a GCC
635df748
ZK
15306 builtin and then its argument prototype would still apply.
15307 The 'extern "C"' is for builds by C++ compilers;
15308 although this is not generally supported in C code supporting it here
15309 has little cost and some practical benefit (sr 110532). */
15310#ifdef __cplusplus
15311extern "C"
15312#endif
15313char rl_line_buffer (void);
ad6254c5 15314int
6b2e4ec5 15315main (void)
ad6254c5 15316{
f11781c5 15317return rl_line_buffer ();
ad6254c5
AK
15318 ;
15319 return 0;
15320}
15321_ACEOF
6b2e4ec5
ZK
15322if ac_fn_c_try_link "$LINENO"
15323then :
f11781c5 15324 ac_cv_lib_readline_rl_line_buffer=yes
635df748
ZK
15325else case e in #(
15326 e) ac_cv_lib_readline_rl_line_buffer=no ;;
15327esac
f11781c5 15328fi
6b2e4ec5 15329rm -f core conftest.err conftest.$ac_objext conftest.beam \
f11781c5 15330 conftest$ac_exeext conftest.$ac_ext
635df748
ZK
15331LIBS=$ac_check_lib_save_LIBS ;;
15332esac
f11781c5 15333fi
6b2e4ec5
ZK
15334{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_rl_line_buffer" >&5
15335printf "%s\n" "$ac_cv_lib_readline_rl_line_buffer" >&6; }
15336if test "x$ac_cv_lib_readline_rl_line_buffer" = xyes
15337then :
f11781c5 15338 READLINE_LIBS="-lreadline"
635df748
ZK
15339else case e in #(
15340 e)
6b2e4ec5
ZK
15341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: linking -lreadline with $READLINE_LIBS needed" >&5
15342printf "%s\n" "linking -lreadline with $READLINE_LIBS needed" >&6; }
f11781c5 15343 READLINE_LIBS="-lreadline $READLINE_LIBS"
635df748
ZK
15344 ;;
15345esac
ad6254c5 15346fi
7a197a62 15347
635df748
ZK
15348else case e in #(
15349 e)
f11781c5 15350 READLINE_LIBS=
b681b774
ZK
15351 if test "$READLINE" = "yes"
15352then :
15353
f11781c5
AK
15354 as_fn_error $? "GNU Readline could not be found which is required for the
15355--enable-readline option (which is enabled by default). Either disable readline
15356support with --disable-readline or download and install readline from:
15357 ftp.gnu.org/gnu/readline
15358Note: if you are using precompiled packages you will also need the development
15359package as well (which may be called readline-devel or something similar)." "$LINENO" 5
b681b774
ZK
15360
15361fi
635df748
ZK
15362 ;;
15363esac
ad6254c5 15364fi
f11781c5
AK
15365
15366 LIBS="$READLINE_LIBS $lvm_saved_libs"
6b2e4ec5
ZK
15367 ac_fn_c_check_func "$LINENO" "rl_completion_matches" "ac_cv_func_rl_completion_matches"
15368if test "x$ac_cv_func_rl_completion_matches" = xyes
15369then :
15370 printf "%s\n" "#define HAVE_RL_COMPLETION_MATCHES 1" >>confdefs.h
ad6254c5 15371
ad6254c5 15372fi
ad6254c5 15373
f11781c5 15374 LIBS=$lvm_saved_libs
b681b774 15375
ad6254c5
AK
15376fi
15377
f11781c5 15378################################################################################
6b2e4ec5
ZK
15379{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable internationalisation" >&5
15380printf %s "checking whether to enable internationalisation... " >&6; }
f11781c5 15381# Check whether --enable-nls was given.
6b2e4ec5
ZK
15382if test ${enable_nls+y}
15383then :
f11781c5 15384 enableval=$enable_nls; INTL=$enableval
635df748
ZK
15385else case e in #(
15386 e) INTL="no" ;;
15387esac
f11781c5 15388fi
d911ec67 15389
6b2e4ec5
ZK
15390{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INTL" >&5
15391printf "%s\n" "$INTL" >&6; }
f11781c5 15392
b681b774
ZK
15393if test "$INTL" = "yes"
15394then :
15395
f11781c5
AK
15396# FIXME - Move this - can be device-mapper too
15397 INTL_PACKAGE="lvm2"
1b59f5a9
ZK
15398 if test -n "$ac_tool_prefix"; then
15399 # Extract the first word of "${ac_tool_prefix}msgfmt", so it can be a program name with args.
15400set dummy ${ac_tool_prefix}msgfmt; ac_word=$2
6b2e4ec5
ZK
15401{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15402printf %s "checking for $ac_word... " >&6; }
15403if test ${ac_cv_path_MSGFMT+y}
15404then :
15405 printf %s "(cached) " >&6
635df748
ZK
15406else case e in #(
15407 e) case $MSGFMT in
f11781c5
AK
15408 [\\/]* | ?:[\\/]*)
15409 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
15410 ;;
15411 *)
15412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15413for as_dir in $PATH
15414do
15415 IFS=$as_save_IFS
6b2e4ec5
ZK
15416 case $as_dir in #(((
15417 '') as_dir=./ ;;
15418 */) ;;
15419 *) as_dir=$as_dir/ ;;
15420 esac
f11781c5 15421 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
15422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15423 ac_cv_path_MSGFMT="$as_dir$ac_word$ac_exec_ext"
15424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
f11781c5
AK
15425 break 2
15426 fi
15427done
15428 done
15429IFS=$as_save_IFS
15430
15431 ;;
635df748 15432esac ;;
d911ec67 15433esac
f11781c5
AK
15434fi
15435MSGFMT=$ac_cv_path_MSGFMT
15436if test -n "$MSGFMT"; then
6b2e4ec5
ZK
15437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
15438printf "%s\n" "$MSGFMT" >&6; }
d911ec67 15439else
6b2e4ec5
ZK
15440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15441printf "%s\n" "no" >&6; }
f11781c5 15442fi
d911ec67 15443
f11781c5 15444
1b59f5a9
ZK
15445fi
15446if test -z "$ac_cv_path_MSGFMT"; then
15447 ac_pt_MSGFMT=$MSGFMT
15448 # Extract the first word of "msgfmt", so it can be a program name with args.
15449set dummy msgfmt; ac_word=$2
6b2e4ec5
ZK
15450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15451printf %s "checking for $ac_word... " >&6; }
15452if test ${ac_cv_path_ac_pt_MSGFMT+y}
15453then :
15454 printf %s "(cached) " >&6
635df748
ZK
15455else case e in #(
15456 e) case $ac_pt_MSGFMT in
1b59f5a9
ZK
15457 [\\/]* | ?:[\\/]*)
15458 ac_cv_path_ac_pt_MSGFMT="$ac_pt_MSGFMT" # Let the user override the test with a path.
15459 ;;
15460 *)
15461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15462for as_dir in $PATH
15463do
15464 IFS=$as_save_IFS
6b2e4ec5
ZK
15465 case $as_dir in #(((
15466 '') as_dir=./ ;;
15467 */) ;;
15468 *) as_dir=$as_dir/ ;;
15469 esac
1b59f5a9 15470 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
15471 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15472 ac_cv_path_ac_pt_MSGFMT="$as_dir$ac_word$ac_exec_ext"
15473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1b59f5a9
ZK
15474 break 2
15475 fi
15476done
15477 done
15478IFS=$as_save_IFS
15479
15480 ;;
635df748 15481esac ;;
1b59f5a9
ZK
15482esac
15483fi
15484ac_pt_MSGFMT=$ac_cv_path_ac_pt_MSGFMT
15485if test -n "$ac_pt_MSGFMT"; then
6b2e4ec5
ZK
15486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MSGFMT" >&5
15487printf "%s\n" "$ac_pt_MSGFMT" >&6; }
1b59f5a9 15488else
6b2e4ec5
ZK
15489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15490printf "%s\n" "no" >&6; }
1b59f5a9
ZK
15491fi
15492
15493 if test "x$ac_pt_MSGFMT" = x; then
15494 MSGFMT=""
15495 else
15496 case $cross_compiling:$ac_tool_warned in
15497yes:)
6b2e4ec5
ZK
15498{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15499printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1b59f5a9
ZK
15500ac_tool_warned=yes ;;
15501esac
15502 MSGFMT=$ac_pt_MSGFMT
15503 fi
15504else
15505 MSGFMT="$ac_cv_path_MSGFMT"
15506fi
15507
fe00b163 15508
6b2e4ec5
ZK
15509 if test -z "$MSGFMT"
15510then :
fe00b163
ZK
15511 as_fn_error $? "msgfmt not found in path $PATH" "$LINENO" 5
15512fi
f11781c5
AK
15513
15514
15515# Check whether --with-localedir was given.
6b2e4ec5
ZK
15516if test ${with_localedir+y}
15517then :
dc49e1cd 15518 withval=$with_localedir; localedir=$withval
635df748
ZK
15519else case e in #(
15520 e) localedir=${localedir-'${datarootdir}/locale'} ;;
15521esac
f11781c5
AK
15522fi
15523
fe00b163 15524
6b2e4ec5 15525printf "%s\n" "#define INTL_PACKAGE \"$INTL_PACKAGE\"" >>confdefs.h
fe00b163 15526
dc49e1cd 15527 # double eval needed ${datarootdir} -> ${prefix}/share -> real path
fe00b163 15528
6b2e4ec5 15529printf "%s\n" "#define LOCALEDIR \"$(eval echo $(eval echo $localedir))\"" >>confdefs.h
fe00b163 15530
b681b774 15531
f11781c5
AK
15532fi
15533
15534################################################################################
15535
15536# Check whether --with-confdir was given.
6b2e4ec5
ZK
15537if test ${with_confdir+y}
15538then :
f11781c5 15539 withval=$with_confdir; CONFDIR=$withval
635df748
ZK
15540else case e in #(
15541 e) CONFDIR='/etc' ;;
15542esac
f11781c5
AK
15543fi
15544
15545
6b2e4ec5 15546printf "%s\n" "#define DEFAULT_ETC_DIR \"$CONFDIR\"" >>confdefs.h
032c9178
AK
15547
15548
f11781c5
AK
15549
15550# Check whether --with-staticdir was given.
6b2e4ec5
ZK
15551if test ${with_staticdir+y}
15552then :
f11781c5 15553 withval=$with_staticdir; STATICDIR=$withval
635df748
ZK
15554else case e in #(
15555 e) STATICDIR='${exec_prefix}/sbin' ;;
15556esac
f11781c5
AK
15557fi
15558
15559
15560
15561# Check whether --with-usrlibdir was given.
6b2e4ec5
ZK
15562if test ${with_usrlibdir+y}
15563then :
f11781c5 15564 withval=$with_usrlibdir; usrlibdir=$withval
635df748
ZK
15565else case e in #(
15566 e) usrlibdir='${prefix}/lib' ;;
15567esac
d911ec67
AK
15568fi
15569
d911ec67 15570
d911ec67 15571
f11781c5 15572# Check whether --with-usrsbindir was given.
6b2e4ec5
ZK
15573if test ${with_usrsbindir+y}
15574then :
f11781c5 15575 withval=$with_usrsbindir; usrsbindir=$withval
635df748
ZK
15576else case e in #(
15577 e) usrsbindir='${prefix}/sbin' ;;
15578esac
d911ec67
AK
15579fi
15580
d911ec67 15581
a2d33cdf
MC
15582
15583# Check whether --with-libexecdir was given.
15584if test ${with_libexecdir+y}
15585then :
15586 withval=$with_libexecdir; libexecdir=$withval
635df748
ZK
15587else case e in #(
15588 e) libexecdir='${prefix}/libexec' ;;
15589esac
a2d33cdf
MC
15590fi
15591
15592
f11781c5 15593################################################################################
d911ec67 15594
f11781c5 15595# Check whether --with-udev_prefix was given.
6b2e4ec5
ZK
15596if test ${with_udev_prefix+y}
15597then :
f11781c5 15598 withval=$with_udev_prefix; udev_prefix=$withval
635df748
ZK
15599else case e in #(
15600 e) udev_prefix='${exec_prefix}' ;;
15601esac
d911ec67 15602fi
d911ec67 15603
f11781c5
AK
15604
15605
15606# Check whether --with-udevdir was given.
6b2e4ec5
ZK
15607if test ${with_udevdir+y}
15608then :
f11781c5 15609 withval=$with_udevdir; udevdir=$withval
635df748
ZK
15610else case e in #(
15611 e) udevdir='${udev_prefix}/lib/udev/rules.d' ;;
15612esac
d911ec67 15613fi
f11781c5
AK
15614
15615
e587cb6a
PR
15616################################################################################
15617
15618# Check whether --with-systemdsystemunitdir was given.
6b2e4ec5
ZK
15619if test ${with_systemdsystemunitdir+y}
15620then :
b681b774
ZK
15621 withval=$with_systemdsystemunitdir;
15622fi
15623
15624
15625if test -z "$with_systemdsystemunitdir"
15626then :
15627
b681b774
ZK
15628if test -n "$systemdsystemunitdir"; then
15629 pkg_cv_systemdsystemunitdir="$systemdsystemunitdir"
15630 elif test -n "$PKG_CONFIG"; then
15631 if test -n "$PKG_CONFIG" && \
15632 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15633 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15634 ac_status=$?
15635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15636 test $ac_status = 0; }; then
15637 pkg_cv_systemdsystemunitdir=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
15638 test "x$?" != "x0" && pkg_failed=yes
15639else
15640 pkg_failed=yes
15641fi
15642 else
15643 pkg_failed=untried
15644fi
15645systemdsystemunitdir=$pkg_cv_systemdsystemunitdir
15646
15647if test "x$systemdsystemunitdir" = x""
15648then :
a7cf55c6 15649 systemdsystemunitdir='${exec_prefix}/lib/systemd/system'
b681b774 15650fi
635df748
ZK
15651else case e in #(
15652 e) systemdsystemunitdir="$with_systemdsystemunitdir" ;;
15653esac
b681b774
ZK
15654fi
15655
15656
15657if test -n "$systemdutildir"; then
15658 pkg_cv_systemdutildir="$systemdutildir"
15659 elif test -n "$PKG_CONFIG"; then
15660 if test -n "$PKG_CONFIG" && \
15661 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
15662 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15663 ac_status=$?
15664 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15665 test $ac_status = 0; }; then
15666 pkg_cv_systemdutildir=`$PKG_CONFIG --variable="systemdutildir" "systemd" 2>/dev/null`
15667 test "x$?" != "x0" && pkg_failed=yes
15668else
15669 pkg_failed=yes
e587cb6a 15670fi
b681b774
ZK
15671 else
15672 pkg_failed=untried
15673fi
15674systemdutildir=$pkg_cv_systemdutildir
e587cb6a 15675
b681b774
ZK
15676if test "x$systemdutildir" = x""
15677then :
a7cf55c6 15678 systemdutildir='${exec_prefix}/lib/systemd'
b681b774 15679fi
fa68466e 15680
4417a8bd
PR
15681################################################################################
15682
15683# Check whether --with-tmpfilesdir was given.
6b2e4ec5
ZK
15684if test ${with_tmpfilesdir+y}
15685then :
4417a8bd 15686 withval=$with_tmpfilesdir; tmpfilesdir=$withval
635df748
ZK
15687else case e in #(
15688 e) tmpfilesdir='${prefix}/lib/tmpfiles.d' ;;
15689esac
4417a8bd
PR
15690fi
15691
1453ccd5
ZK
15692
15693################################################################################
15694{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel modules directory" >&5
15695printf %s "checking for kernel modules directory... " >&6; }
15696
15697# Check whether --with-modulesdir was given.
15698if test ${with_modulesdir+y}
15699then :
15700 withval=$with_modulesdir; modulesdir=$withval
635df748
ZK
15701else case e in #(
15702 e) modulesdir="/lib/modules" ;;
15703esac
1453ccd5
ZK
15704fi
15705
15706
15707printf "%s\n" "#define MODULES_PATH \"$modulesdir\"" >>confdefs.h
15708
15709{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $modulesdir" >&5
15710printf "%s\n" "$modulesdir" >&6; }
15711
f11781c5 15712################################################################################
b681b774
ZK
15713if test "$READLINE" = "yes"
15714then :
15715
6b2e4ec5 15716 for ac_header in readline/readline.h readline/history.h
f11781c5 15717do :
635df748 15718 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
6b2e4ec5
ZK
15719ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15720if eval test \"x\$"$as_ac_Header"\" = x"yes"
15721then :
d911ec67 15722 cat >>confdefs.h <<_ACEOF
635df748 15723#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
d911ec67
AK
15724_ACEOF
15725
635df748
ZK
15726else case e in #(
15727 e) hard_bailout ;;
15728esac
d911ec67
AK
15729fi
15730
15731done
b681b774 15732
d911ec67 15733fi
6b2e4ec5
ZK
15734{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable readline" >&5
15735printf %s "checking whether to enable readline... " >&6; }
15736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $READLINE" >&5
15737printf "%s\n" "$READLINE" >&6; }
d911ec67 15738
b681b774
ZK
15739if test "$EDITLINE" = "yes"
15740then :
15741
6b2e4ec5 15742 for ac_header in editline/readline.h
65534242 15743do :
6b2e4ec5
ZK
15744 ac_fn_c_check_header_compile "$LINENO" "editline/readline.h" "ac_cv_header_editline_readline_h" "$ac_includes_default"
15745if test "x$ac_cv_header_editline_readline_h" = xyes
15746then :
15747 printf "%s\n" "#define HAVE_EDITLINE_READLINE_H 1" >>confdefs.h
65534242 15748
635df748
ZK
15749else case e in #(
15750 e) hard_bailout ;;
15751esac
65534242
ZK
15752fi
15753
15754done
b681b774 15755
65534242 15756fi
6b2e4ec5
ZK
15757{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable editline" >&5
15758printf %s "checking whether to enable editline... " >&6; }
15759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EDITLINE" >&5
15760printf "%s\n" "$EDITLINE" >&6; }
65534242 15761
b681b774
ZK
15762if test "$BUILD_CMIRRORD" = "yes"
15763then :
15764
6b2e4ec5
ZK
15765
15766 for ac_func in atexit
1568ed4d
AK
15767do :
15768 ac_fn_c_check_func "$LINENO" "atexit" "ac_cv_func_atexit"
6b2e4ec5
ZK
15769if test "x$ac_cv_func_atexit" = xyes
15770then :
15771 printf "%s\n" "#define HAVE_ATEXIT 1" >>confdefs.h
1568ed4d 15772
635df748
ZK
15773else case e in #(
15774 e) hard_bailout ;;
15775esac
1568ed4d 15776fi
1568ed4d 15777
6b2e4ec5 15778done
b681b774 15779
1568ed4d
AK
15780fi
15781
b681b774
ZK
15782if test "$BUILD_LVMLOCKD" = "yes"
15783then :
15784
15785 if test "$HAVE_REALTIME" != "yes"
6b2e4ec5 15786then :
b681b774
ZK
15787
15788 as_fn_error $? "Realtime clock support is mandatory for lvmlockd." "$LINENO" 5
92b53a80 15789fi
6b2e4ec5
ZK
15790
15791 for ac_func in strtoull
1568ed4d 15792do :
92b53a80 15793 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
6b2e4ec5
ZK
15794if test "x$ac_cv_func_strtoull" = xyes
15795then :
15796 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
1568ed4d 15797
635df748
ZK
15798else case e in #(
15799 e) hard_bailout ;;
15800esac
1568ed4d 15801fi
1568ed4d 15802
6b2e4ec5 15803done
1568ed4d 15804
1568ed4d 15805fi
6b2e4ec5 15806
b681b774 15807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
6b2e4ec5
ZK
15808printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
15809if test ${ac_cv_c_undeclared_builtin_options+y}
15810then :
15811 printf %s "(cached) " >&6
635df748
ZK
15812else case e in #(
15813 e) ac_save_CFLAGS=$CFLAGS
6b2e4ec5
ZK
15814 ac_cv_c_undeclared_builtin_options='cannot detect'
15815 for ac_arg in '' -fno-builtin; do
15816 CFLAGS="$ac_save_CFLAGS $ac_arg"
15817 # This test program should *not* compile successfully.
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819/* end confdefs.h. */
15820
15821int
15822main (void)
15823{
15824(void) strchr;
15825 ;
15826 return 0;
15827}
15828_ACEOF
15829if ac_fn_c_try_compile "$LINENO"
15830then :
15831
635df748
ZK
15832else case e in #(
15833 e) # This test program should compile successfully.
6b2e4ec5
ZK
15834 # No library function is consistently available on
15835 # freestanding implementations, so test against a dummy
15836 # declaration. Include always-available headers on the
15837 # off chance that they somehow elicit warnings.
15838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15839/* end confdefs.h. */
15840#include <float.h>
15841#include <limits.h>
15842#include <stdarg.h>
15843#include <stddef.h>
15844extern void ac_decl (int, char *);
15845
15846int
15847main (void)
15848{
15849(void) ac_decl (0, (char *) 0);
15850 (void) ac_decl;
15851
15852 ;
15853 return 0;
15854}
15855_ACEOF
15856if ac_fn_c_try_compile "$LINENO"
15857then :
15858 if test x"$ac_arg" = x
15859then :
15860 ac_cv_c_undeclared_builtin_options='none needed'
635df748
ZK
15861else case e in #(
15862 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
15863esac
6b2e4ec5
ZK
15864fi
15865 break
15866fi
635df748
ZK
15867rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15868esac
6b2e4ec5
ZK
15869fi
15870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15871 done
15872 CFLAGS=$ac_save_CFLAGS
635df748
ZK
15873 ;;
15874esac
6b2e4ec5
ZK
15875fi
15876{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
15877printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
15878 case $ac_cv_c_undeclared_builtin_options in #(
15879 'cannot detect') :
635df748
ZK
15880 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
15881printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6b2e4ec5 15882as_fn_error $? "cannot make $CC report undeclared builtins
635df748 15883See 'config.log' for more details" "$LINENO" 5; } ;; #(
6b2e4ec5
ZK
15884 'none needed') :
15885 ac_c_undeclared_builtin_options='' ;; #(
15886 *) :
15887 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
15888esac
1568ed4d 15889
6b2e4ec5
ZK
15890ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15891if test "x$ac_cv_have_decl_strerror_r" = xyes
15892then :
1568ed4d 15893 ac_have_decl=1
635df748
ZK
15894else case e in #(
15895 e) ac_have_decl=0 ;;
15896esac
1568ed4d 15897fi
6b2e4ec5 15898printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
1568ed4d 15899
b681b774
ZK
15900if test "$BUILD_LVMPOLLD" = "yes"
15901then :
15902
15903
15904 for ac_func in strpbrk
15905do :
15906 ac_fn_c_check_func "$LINENO" "strpbrk" "ac_cv_func_strpbrk"
15907if test "x$ac_cv_func_strpbrk" = xyes
15908then :
15909 printf "%s\n" "#define HAVE_STRPBRK 1" >>confdefs.h
15910
635df748
ZK
15911else case e in #(
15912 e) hard_bailout ;;
15913esac
b681b774
ZK
15914fi
15915
15916done
1568ed4d 15917
6b2e4ec5
ZK
15918if test $ac_cv_have_decl_strerror_r = yes; then
15919 # For backward compatibility's sake, define HAVE_STRERROR_R.
15920 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
15921 # as AC_CHECK_DECLS_ONCE.)
15922
15923printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
1568ed4d
AK
15924
15925fi
1568ed4d 15926
6b2e4ec5
ZK
15927{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
15928printf %s "checking whether strerror_r returns char *... " >&6; }
15929if test ${ac_cv_func_strerror_r_char_p+y}
15930then :
15931 printf %s "(cached) " >&6
635df748
ZK
15932else case e in #(
15933 e)
1568ed4d
AK
15934 ac_cv_func_strerror_r_char_p=no
15935 if test $ac_cv_have_decl_strerror_r = yes; then
15936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15937/* end confdefs.h. */
6b2e4ec5 15938#include <string.h>
1568ed4d 15939int
6b2e4ec5 15940main (void)
1568ed4d
AK
15941{
15942
15943 char buf[100];
15944 char x = *strerror_r (0, buf, sizeof buf);
15945 char *p = strerror_r (0, buf, sizeof buf);
15946 return !p || x;
15947
15948 ;
15949 return 0;
15950}
15951_ACEOF
6b2e4ec5
ZK
15952if ac_fn_c_try_compile "$LINENO"
15953then :
1568ed4d
AK
15954 ac_cv_func_strerror_r_char_p=yes
15955fi
6b2e4ec5 15956rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1568ed4d
AK
15957
15958 fi
635df748
ZK
15959 ;;
15960esac
1568ed4d 15961fi
6b2e4ec5
ZK
15962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
15963printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
1568ed4d
AK
15964if test $ac_cv_func_strerror_r_char_p = yes; then
15965
6b2e4ec5 15966printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
1568ed4d
AK
15967
15968fi
15969
b681b774 15970
1568ed4d
AK
15971fi
15972
b681b774
ZK
15973if test "$BUILD_DMEVENTD" = "yes"
15974then :
15975
6b2e4ec5 15976 for ac_header in arpa/inet.h
f11781c5 15977do :
6b2e4ec5
ZK
15978 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
15979if test "x$ac_cv_header_arpa_inet_h" = xyes
15980then :
15981 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
69792976 15982
635df748
ZK
15983else case e in #(
15984 e) hard_bailout ;;
15985esac
80992638
AK
15986fi
15987
ad6254c5 15988done
b681b774 15989
ad6254c5
AK
15990fi
15991
b681b774
ZK
15992if test "$HAVE_LIBDL" = "yes"
15993then :
15994
6b2e4ec5 15995 for ac_header in dlfcn.h
f11781c5 15996do :
6b2e4ec5
ZK
15997 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
15998if test "x$ac_cv_header_dlfcn_h" = xyes
15999then :
16000 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
a5f46f6a 16001
635df748
ZK
16002else case e in #(
16003 e) hard_bailout ;;
16004esac
a5f46f6a
AK
16005fi
16006
f11781c5 16007done
b681b774 16008
a5f46f6a
AK
16009fi
16010
b681b774
ZK
16011if test "$INTL" = "yes"
16012then :
16013
6b2e4ec5 16014 for ac_header in libintl.h
f11781c5 16015do :
6b2e4ec5
ZK
16016 ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
16017if test "x$ac_cv_header_libintl_h" = xyes
16018then :
16019 printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
a5f46f6a 16020
635df748
ZK
16021else case e in #(
16022 e) hard_bailout ;;
16023esac
a5f46f6a 16024fi
f11781c5
AK
16025
16026done
b681b774 16027
a5f46f6a 16028fi
f11781c5 16029
b681b774
ZK
16030if test "$UDEV_SYNC" = "yes"
16031then :
16032
6b2e4ec5 16033 for ac_header in sys/ipc.h sys/sem.h
f11781c5 16034do :
635df748 16035 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | sed "$as_sed_sh"`
6b2e4ec5
ZK
16036ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16037if eval test \"x\$"$as_ac_Header"\" = x"yes"
16038then :
a5f46f6a 16039 cat >>confdefs.h <<_ACEOF
635df748 16040#define `printf "%s\n" "HAVE_$ac_header" | sed "$as_sed_cpp"` 1
a5f46f6a
AK
16041_ACEOF
16042
635df748
ZK
16043else case e in #(
16044 e) hard_bailout ;;
16045esac
a5f46f6a
AK
16046fi
16047
16048done
b681b774 16049
a5f46f6a
AK
16050fi
16051
b681b774
ZK
16052if test "$BUILD_DMFILEMAPD" = "yes"
16053then :
16054
6b2e4ec5 16055 for ac_header in sys/inotify.h
8b789822 16056do :
6b2e4ec5
ZK
16057 ac_fn_c_check_header_compile "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default"
16058if test "x$ac_cv_header_sys_inotify_h" = xyes
16059then :
16060 printf "%s\n" "#define HAVE_SYS_INOTIFY_H 1" >>confdefs.h
8b789822 16061
635df748
ZK
16062else case e in #(
16063 e) hard_bailout ;;
16064esac
8b789822
BR
16065fi
16066
16067done
b681b774 16068
8b789822
BR
16069fi
16070
a653923f 16071################################################################################
1b59f5a9
ZK
16072if test -n "$ac_tool_prefix"; then
16073 # Extract the first word of "${ac_tool_prefix}modprobe", so it can be a program name with args.
16074set dummy ${ac_tool_prefix}modprobe; ac_word=$2
6b2e4ec5
ZK
16075{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16076printf %s "checking for $ac_word... " >&6; }
16077if test ${ac_cv_path_MODPROBE_CMD+y}
16078then :
16079 printf %s "(cached) " >&6
635df748
ZK
16080else case e in #(
16081 e) case $MODPROBE_CMD in
72b2cb61
AK
16082 [\\/]* | ?:[\\/]*)
16083 ac_cv_path_MODPROBE_CMD="$MODPROBE_CMD" # Let the user override the test with a path.
16084 ;;
16085 *)
16086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 16087for as_dir in $PATH_SBIN
72b2cb61
AK
16088do
16089 IFS=$as_save_IFS
6b2e4ec5
ZK
16090 case $as_dir in #(((
16091 '') as_dir=./ ;;
16092 */) ;;
16093 *) as_dir=$as_dir/ ;;
16094 esac
f11781c5 16095 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
16096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16097 ac_cv_path_MODPROBE_CMD="$as_dir$ac_word$ac_exec_ext"
16098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
72b2cb61
AK
16099 break 2
16100 fi
16101done
f11781c5 16102 done
7a197a62 16103IFS=$as_save_IFS
72b2cb61
AK
16104
16105 ;;
635df748 16106esac ;;
72b2cb61
AK
16107esac
16108fi
16109MODPROBE_CMD=$ac_cv_path_MODPROBE_CMD
72b2cb61 16110if test -n "$MODPROBE_CMD"; then
6b2e4ec5
ZK
16111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MODPROBE_CMD" >&5
16112printf "%s\n" "$MODPROBE_CMD" >&6; }
72b2cb61 16113else
6b2e4ec5
ZK
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16115printf "%s\n" "no" >&6; }
72b2cb61
AK
16116fi
16117
a653923f 16118
1b59f5a9
ZK
16119fi
16120if test -z "$ac_cv_path_MODPROBE_CMD"; then
16121 ac_pt_MODPROBE_CMD=$MODPROBE_CMD
16122 # Extract the first word of "modprobe", so it can be a program name with args.
16123set dummy modprobe; ac_word=$2
6b2e4ec5
ZK
16124{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16125printf %s "checking for $ac_word... " >&6; }
16126if test ${ac_cv_path_ac_pt_MODPROBE_CMD+y}
16127then :
16128 printf %s "(cached) " >&6
635df748
ZK
16129else case e in #(
16130 e) case $ac_pt_MODPROBE_CMD in
1b59f5a9
ZK
16131 [\\/]* | ?:[\\/]*)
16132 ac_cv_path_ac_pt_MODPROBE_CMD="$ac_pt_MODPROBE_CMD" # Let the user override the test with a path.
16133 ;;
16134 *)
16135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
e727da6c 16136for as_dir in $PATH_SBIN
1b59f5a9
ZK
16137do
16138 IFS=$as_save_IFS
6b2e4ec5
ZK
16139 case $as_dir in #(((
16140 '') as_dir=./ ;;
16141 */) ;;
16142 *) as_dir=$as_dir/ ;;
16143 esac
1b59f5a9 16144 for ac_exec_ext in '' $ac_executable_extensions; do
6b2e4ec5
ZK
16145 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16146 ac_cv_path_ac_pt_MODPROBE_CMD="$as_dir$ac_word$ac_exec_ext"
16147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
1b59f5a9
ZK
16148 break 2
16149 fi
16150done
16151 done
16152IFS=$as_save_IFS
16153
16154 ;;
635df748 16155esac ;;
1b59f5a9
ZK
16156esac
16157fi
16158ac_pt_MODPROBE_CMD=$ac_cv_path_ac_pt_MODPROBE_CMD
16159if test -n "$ac_pt_MODPROBE_CMD"; then
6b2e4ec5
ZK
16160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_MODPROBE_CMD" >&5
16161printf "%s\n" "$ac_pt_MODPROBE_CMD" >&6; }
1b59f5a9 16162else
6b2e4ec5
ZK
16163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16164printf "%s\n" "no" >&6; }
1b59f5a9
ZK
16165fi
16166
16167 if test "x$ac_pt_MODPROBE_CMD" = x; then
16168 MODPROBE_CMD=""
16169 else
16170 case $cross_compiling:$ac_tool_warned in
16171yes:)
6b2e4ec5
ZK
16172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
1b59f5a9
ZK
16174ac_tool_warned=yes ;;
16175esac
16176 MODPROBE_CMD=$ac_pt_MODPROBE_CMD
16177 fi
16178else
16179 MODPROBE_CMD="$ac_cv_path_MODPROBE_CMD"
16180fi
16181
7a197a62 16182
b681b774
ZK
16183if test -n "$MODPROBE_CMD"
16184then :
16185
72b2cb61 16186
6b2e4ec5 16187printf "%s\n" "#define MODPROBE_CMD \"$MODPROBE_CMD\"" >>confdefs.h
72b2cb61 16188
b681b774 16189
a653923f
AK
16190fi
16191
3f59969c 16192SYSCONFDIR="$(eval echo $(eval echo $sysconfdir))"
b5c2529b 16193
3f59969c
ZK
16194SBINDIR="$(eval echo $(eval echo $sbindir))"
16195LVM_PATH="$SBINDIR/lvm"
a9b601e2 16196
6b2e4ec5 16197printf "%s\n" "#define LVM_PATH \"$LVM_PATH\"" >>confdefs.h
b5c2529b
ZK
16198
16199
a0f6f188 16200LVMCONFIG_PATH="$SBINDIR/lvmconfig"
b5c2529b 16201
6b2e4ec5 16202printf "%s\n" "#define LVMCONFIG_PATH \"$LVMCONFIG_PATH\"" >>confdefs.h
b5c2529b 16203
b5c2529b 16204
0d22b581
JT
16205USRSBINDIR="$(eval echo $(eval echo $usrsbindir))"
16206
3f59969c 16207FSADM_PATH="$SBINDIR/fsadm"
3018cdca 16208
6b2e4ec5 16209printf "%s\n" "#define FSADM_PATH \"$FSADM_PATH\"" >>confdefs.h
3018cdca
ZK
16210
16211
12ba43cc 16212LVMIMPORTVDO_PATH="$SBINDIR/lvm_import_vdo"
ed48cb26 16213
6b2e4ec5 16214printf "%s\n" "#define LVMIMPORTVDO_PATH \"$LVMIMPORTVDO_PATH\"" >>confdefs.h
ed48cb26
ZK
16215
16216
a2d33cdf
MC
16217LIBEXECDIR="$(eval echo $(eval echo $libexecdir))"
16218
16219LVRESIZE_FS_HELPER_PATH="$LIBEXECDIR/lvresize_fs_helper"
16220
16221printf "%s\n" "#define LVRESIZE_FS_HELPER_PATH \"$LVRESIZE_FS_HELPER_PATH\"" >>confdefs.h
16222
16223
80992638 16224################################################################################
93bd259b
AK
16225
16226# Check whether --with-dmeventd-pidfile was given.
6b2e4ec5
ZK
16227if test ${with_dmeventd_pidfile+y}
16228then :
71082be4 16229 withval=$with_dmeventd_pidfile; DMEVENTD_PIDFILE=$withval
635df748
ZK
16230else case e in #(
16231 e) DMEVENTD_PIDFILE="$DEFAULT_PID_DIR/dmeventd.pid" ;;
16232esac
93bd259b
AK
16233fi
16234
93bd259b 16235
93bd259b 16236# Check whether --with-dmeventd-path was given.
6b2e4ec5
ZK
16237if test ${with_dmeventd_path+y}
16238then :
71082be4 16239 withval=$with_dmeventd_path; DMEVENTD_PATH=$withval
635df748
ZK
16240else case e in #(
16241 e) DMEVENTD_PATH="$SBINDIR/dmeventd" ;;
16242esac
93bd259b
AK
16243fi
16244
93bd259b 16245
3da18a06
ZK
16246# Check whether --with-dmeventd-exit-on-path was given.
16247if test ${with_dmeventd_exit_on_path+y}
16248then :
16249 withval=$with_dmeventd_exit_on_path; DEFAULT_DMEVENTD_EXIT_ON_PATH=$withval
635df748
ZK
16250else case e in #(
16251 e) DEFAULT_DMEVENTD_EXIT_ON_PATH="/run/nologin" ;;
16252esac
3da18a06
ZK
16253fi
16254
16255
86ac529b
ZK
16256if test "$BUILD_DMEVENTD" = "yes"
16257then :
16258
16259
16260printf "%s\n" "#define DMEVENTD_PIDFILE \"$DMEVENTD_PIDFILE\"" >>confdefs.h
16261
16262
6b2e4ec5 16263printf "%s\n" "#define DMEVENTD_PATH \"$DMEVENTD_PATH\"" >>confdefs.h
3399ae32 16264
b681b774 16265
3da18a06
ZK
16266printf "%s\n" "#define DEFAULT_DMEVENTD_EXIT_ON_PATH \"$DEFAULT_DMEVENTD_EXIT_ON_PATH\"" >>confdefs.h
16267
16268
71082be4 16269fi
3399ae32 16270
71082be4 16271################################################################################
3399ae32
AK
16272
16273# Check whether --with-default-system-dir was given.
6b2e4ec5
ZK
16274if test ${with_default_system_dir+y}
16275then :
71082be4 16276 withval=$with_default_system_dir; DEFAULT_SYS_DIR=$withval
635df748
ZK
16277else case e in #(
16278 e) DEFAULT_SYS_DIR="/etc/lvm" ;;
16279esac
3399ae32
AK
16280fi
16281
71082be4 16282
6b2e4ec5 16283printf "%s\n" "#define DEFAULT_SYS_DIR \"$DEFAULT_SYS_DIR\"" >>confdefs.h
3399ae32
AK
16284
16285
16286
f89a8b81 16287# Check whether --with-default-profile-subdir was given.
6b2e4ec5
ZK
16288if test ${with_default_profile_subdir+y}
16289then :
f89a8b81 16290 withval=$with_default_profile_subdir; DEFAULT_PROFILE_SUBDIR=$withval
635df748
ZK
16291else case e in #(
16292 e) DEFAULT_PROFILE_SUBDIR="profile" ;;
16293esac
f89a8b81
PR
16294fi
16295
16296
6b2e4ec5 16297printf "%s\n" "#define DEFAULT_PROFILE_SUBDIR \"$DEFAULT_PROFILE_SUBDIR\"" >>confdefs.h
f89a8b81
PR
16298
16299
16300
3399ae32 16301# Check whether --with-default-archive-subdir was given.
6b2e4ec5
ZK
16302if test ${with_default_archive_subdir+y}
16303then :
71082be4 16304 withval=$with_default_archive_subdir; DEFAULT_ARCHIVE_SUBDIR=$withval
635df748
ZK
16305else case e in #(
16306 e) DEFAULT_ARCHIVE_SUBDIR="archive" ;;
16307esac
3399ae32
AK
16308fi
16309
71082be4 16310
6b2e4ec5 16311printf "%s\n" "#define DEFAULT_ARCHIVE_SUBDIR \"$DEFAULT_ARCHIVE_SUBDIR\"" >>confdefs.h
3399ae32
AK
16312
16313
16314
3399ae32 16315# Check whether --with-default-backup-subdir was given.
6b2e4ec5
ZK
16316if test ${with_default_backup_subdir+y}
16317then :
71082be4 16318 withval=$with_default_backup_subdir; DEFAULT_BACKUP_SUBDIR=$withval
635df748
ZK
16319else case e in #(
16320 e) DEFAULT_BACKUP_SUBDIR="backup" ;;
16321esac
3399ae32
AK
16322fi
16323
71082be4 16324
6b2e4ec5 16325printf "%s\n" "#define DEFAULT_BACKUP_SUBDIR \"$DEFAULT_BACKUP_SUBDIR\"" >>confdefs.h
3399ae32
AK
16326
16327
16328
3399ae32 16329# Check whether --with-default-cache-subdir was given.
6b2e4ec5
ZK
16330if test ${with_default_cache_subdir+y}
16331then :
71082be4 16332 withval=$with_default_cache_subdir; DEFAULT_CACHE_SUBDIR=$withval
635df748
ZK
16333else case e in #(
16334 e) DEFAULT_CACHE_SUBDIR="cache" ;;
16335esac
3399ae32
AK
16336fi
16337
71082be4 16338
6b2e4ec5 16339printf "%s\n" "#define DEFAULT_CACHE_SUBDIR \"$DEFAULT_CACHE_SUBDIR\"" >>confdefs.h
3399ae32
AK
16340
16341
3f59969c
ZK
16342# Select default system locking dir, prefer /run/lock over /var/lock
16343DEFAULT_SYS_LOCK_DIR="$RUN_DIR/lock"
16344test -d "$DEFAULT_SYS_LOCK_DIR" || DEFAULT_SYS_LOCK_DIR="/var/lock"
16345
16346# Support configurable locking subdir for lvm
a7cf55c6
ZK
16347{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for default lock directory" >&5
16348printf %s "checking for default lock directory... " >&6; }
3399ae32 16349
3399ae32 16350# Check whether --with-default-locking-dir was given.
6b2e4ec5
ZK
16351if test ${with_default_locking_dir+y}
16352then :
71082be4 16353 withval=$with_default_locking_dir; DEFAULT_LOCK_DIR=$withval
635df748
ZK
16354else case e in #(
16355 e) DEFAULT_LOCK_DIR="$DEFAULT_SYS_LOCK_DIR/lvm" ;;
16356esac
3399ae32
AK
16357fi
16358
a7cf55c6
ZK
16359{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_LOCK_DIR" >&5
16360printf "%s\n" "$DEFAULT_LOCK_DIR" >&6; }
71082be4 16361
6b2e4ec5 16362printf "%s\n" "#define DEFAULT_LOCK_DIR \"$DEFAULT_LOCK_DIR\"" >>confdefs.h
3399ae32
AK
16363
16364
569dd5d0
ZK
16365# No --with configure setting, but store in the main configure.h
16366
16367printf "%s\n" "#define DEFAULT_PROC_DIR \"/proc\"" >>confdefs.h
16368
16369
93bd259b 16370################################################################################
6b2e4ec5
ZK
16371{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for kernel interface choice" >&5
16372printf %s "checking for kernel interface choice... " >&6; }
93bd259b
AK
16373
16374# Check whether --with-interface was given.
6b2e4ec5
ZK
16375if test ${with_interface+y}
16376then :
71082be4 16377 withval=$with_interface; interface=$withval
635df748
ZK
16378else case e in #(
16379 e) interface="ioctl" ;;
16380esac
93bd259b
AK
16381fi
16382
86ac529b
ZK
16383if test "$interface" != "ioctl"
16384then :
16385 as_fn_error $? "--with-interface=ioctl required. fs no longer supported." "$LINENO" 5
16386fi
6b2e4ec5
ZK
16387{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $interface" >&5
16388printf "%s\n" "$interface" >&6; }
93bd259b
AK
16389
16390################################################################################
b681b774 16391read DM_LIB_VERSION < "$srcdir"/VERSION_DM 2>/dev/null || DM_LIB_VERSION="Unknown"
24bbc4d7 16392
6b2e4ec5 16393printf "%s\n" "#define DM_LIB_VERSION \"$DM_LIB_VERSION\"" >>confdefs.h
24bbc4d7
AK
16394
16395
86ac529b 16396DM_LIB_PATCHLEVEL=$($AWK -F '[-. ]' '{printf "%s.%s.%s",$1,$2,$3}' "$srcdir"/VERSION_DM)
7e3fe830 16397
d62448cb 16398read VER < "$srcdir"/VERSION 2>/dev/null || VER=Unknown
fae0c576 16399
d62448cb 16400LVM_VERSION=\"$VER\"
b681b774
ZK
16401LVM_RELEASE_DATE="\"$(echo $VER | $SED 's/.* (//;s/).*//')\""
16402VER=$(echo "$VER" | $AWK '{print $1}')
16403LVM_RELEASE="\"$(echo "$VER" | $AWK -F '-' '{print $2}')\""
16404VER=$(echo "$VER" | $AWK -F '-' '{print $1}')
16405LVM_MAJOR=$(echo "$VER" | $AWK -F '.' '{print $1}')
16406LVM_MINOR=$(echo "$VER" | $AWK -F '.' '{print $2}')
16407LVM_PATCHLEVEL=$(echo "$VER" | $AWK -F '[(.]' '{print $3}')
16408LVM_LIBAPI=$(echo "$VER" | $AWK -F '[()]' '{print $2}')
ec6a6fbe 16409
e8362b4c 16410
6b2e4ec5 16411printf "%s\n" "#define LVM_CONFIGURE_LINE \"$CONFIGURE_LINE\"" >>confdefs.h
e8362b4c
AK
16412
16413
86ac529b
ZK
16414################################################################################
16415# Allow users to override default location for libaio
16416# there seems to be no pkg-config support available
16417AIO_CFLAGS=${AIO_CFLAGS:-}
16418AIO_LIBS=${AIO_LIBS:--laio}
16419
16420
16421
fae0c576 16422
83912faa 16423
795ca3e5 16424
b73e1cd4
ZK
16425################################################################################
16426
16427
21edfc4a 16428
b73e1cd4
ZK
16429
16430
16431
16432
16433
16434
69792976 16435
d0191583 16436
69792976 16437
8106cdd5
AK
16438
16439
16440
16441
16442
d68a82ec 16443
036f273a 16444
7d1552c9 16445
8106cdd5 16446
0a62c911 16447
8106cdd5 16448
4a7f3eb2 16449
4922197a
AK
16450
16451
d8ac0fbc 16452
1a9ea74d 16453
8a2fc586
AK
16454
16455
d0191583 16456
93bd259b
AK
16457
16458
16459
16460
16461
d0191583
JM
16462
16463
16464
16465
16466
8a2fc586 16467
19a2c6e0 16468
f7f0854e
ZK
16469
16470
3ceb7608 16471
8ce0cbda 16472
8b1a3214 16473
ec6a6fbe
AK
16474
16475
16476
16477
e2997b73
AK
16478
16479
16480
16481
16482
16483
a946372e
AK
16484
16485
16486
16487
16488
16489
16490
16491
16492
16493
16494
ec6a6fbe 16495
cac52ca4 16496
d3c8211f 16497
7e3fe830 16498
a5f46f6a
AK
16499
16500
16501
572fefeb 16502
90c80887 16503
3399ae32
AK
16504
16505
16506
16507
16508
90c80887 16509
bf456146 16510
e1b8a236 16511
0878503f 16512
8fea97b7 16513
54b362f9 16514
b1f08e51 16515
d1e8046f 16516
fea55602 16517
c89bc357 16518
6e5c1f75 16519
3ba4a195 16520
d2c11605
ZK
16521
16522
cdd50823 16523
426fc742
PR
16524
16525
b6d7a484
AK
16526
16527
bf09a320 16528
e587cb6a 16529
b559a1e6 16530
5723db01
PR
16531
16532
16533
ee3cfa41
AK
16534
16535
16536
5987562c
AK
16537
16538
fe70b03d 16539
dc49e1cd 16540
c923dee8 16541
c1bd76d6 16542
5ff18f51
MC
16543
16544
07d41de7 16545
679116a9
ZK
16546
16547
3a92d633
ZK
16548
16549
a2d33cdf
MC
16550
16551
86ac529b
ZK
16552
16553
16554
16555
16556
2df7ef58 16557
b681b774
ZK
16558
16559
17baeb65 16560
3da18a06 16561
8b8b8ac1 16562
0627716f 16563
1453ccd5 16564
cd9b2b32 16565
569dd5d0 16566
68f2de6d
AK
16567
16568
80992638 16569################################################################################
46f94614 16570ac_config_files="$ac_config_files Makefile make.tmpl libdm/make.tmpl daemons/Makefile daemons/cmirrord/Makefile daemons/dmeventd/Makefile daemons/dmeventd/libdevmapper-event.pc daemons/dmeventd/plugins/Makefile daemons/dmeventd/plugins/lvm2/Makefile daemons/dmeventd/plugins/raid/Makefile daemons/dmeventd/plugins/mirror/Makefile daemons/dmeventd/plugins/snapshot/Makefile daemons/dmeventd/plugins/thin/Makefile daemons/dmeventd/plugins/vdo/Makefile daemons/lvmdbusd/Makefile daemons/lvmdbusd/lvmdbusd daemons/lvmdbusd/lvmdb.py daemons/lvmdbusd/lvm_shell_proxy.py daemons/lvmdbusd/path.py daemons/lvmpolld/Makefile daemons/lvmlockd/Makefile conf/Makefile conf/example.conf conf/lvmlocal.conf conf/command_profile_template.profile conf/metadata_profile_template.profile include/Makefile lib/Makefile include/lvm-version.h libdaemon/Makefile libdaemon/client/Makefile libdaemon/server/Makefile libdm/Makefile libdm/dm-tools/Makefile libdm/libdevmapper.pc man/Makefile po/Makefile scripts/lvm2-pvscan.service scripts/blkdeactivate.sh scripts/blk_availability_init_red_hat scripts/blk_availability_systemd_red_hat.service scripts/cmirrord_init_red_hat scripts/com.redhat.lvmdbus1.service scripts/dm_event_systemd_red_hat.service scripts/dm_event_systemd_red_hat.socket scripts/lvm2_cmirrord_systemd_red_hat.service scripts/lvm2_lvmdbusd_systemd_red_hat.service scripts/lvm2_lvmpolld_init_red_hat scripts/lvm2_lvmpolld_systemd_red_hat.service scripts/lvm2_lvmpolld_systemd_red_hat.socket scripts/lvmlockd.service scripts/lvmlocks.service scripts/lvm2_monitoring_init_red_hat scripts/lvm2_monitoring_systemd_red_hat.service scripts/lvm2_tmpfiles_red_hat.conf scripts/lvmdump.sh scripts/Makefile test/Makefile tools/Makefile udev/Makefile"
7a197a62 16571
ad6254c5 16572cat >confcache <<\_ACEOF
795ca3e5
AK
16573# This file is a shell script that caches the results of configure
16574# tests run on this system so they can be shared between configure
ad6254c5
AK
16575# scripts and configure runs, see configure's option --config-cache.
16576# It is not useful on other systems. If it contains results you don't
16577# want to keep, you may remove or edit it.
795ca3e5 16578#
ad6254c5
AK
16579# config.status only pays attention to the cache file if you give it
16580# the --recheck option to rerun configure.
795ca3e5 16581#
635df748
ZK
16582# 'ac_cv_env_foo' variables (set or unset) will be overridden when
16583# loading this file, other *unset* 'ac_cv_foo' will be assigned the
ad6254c5
AK
16584# following values.
16585
16586_ACEOF
16587
795ca3e5
AK
16588# The following way of writing the cache mishandles newlines in values,
16589# but we know of no workaround that is simple, portable, and efficient.
7a197a62 16590# So, we kill variables containing newlines.
795ca3e5
AK
16591# Ultrix sh set writes to stderr and can't be redirected directly,
16592# and sets the high bit in the cache file unless we assign to the vars.
7a197a62
AK
16593(
16594 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16595 eval ac_val=\$$ac_var
16596 case $ac_val in #(
16597 *${as_nl}*)
16598 case $ac_var in #(
6b2e4ec5
ZK
16599 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16600printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7a197a62
AK
16601 esac
16602 case $ac_var in #(
16603 _ | IFS | as_nl) ;; #(
ec6a6fbe 16604 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
f11781c5 16605 *) { eval $ac_var=; unset $ac_var;} ;;
7a197a62
AK
16606 esac ;;
16607 esac
16608 done
16609
ad6254c5 16610 (set) 2>&1 |
7a197a62
AK
16611 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16612 *${as_nl}ac_space=\ *)
635df748 16613 # 'set' does not quote correctly, so add quotes: double-quote
f11781c5 16614 # substitution turns \\\\ into \\, and sed turns \\ into \.
ad6254c5 16615 sed -n \
8a2fc586
AK
16616 "s/'/'\\\\''/g;
16617 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7a197a62 16618 ;; #(
ad6254c5 16619 *)
635df748 16620 # 'set' quotes correctly as required by POSIX, so do not add quotes.
7a197a62 16621 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
ad6254c5 16622 ;;
7a197a62
AK
16623 esac |
16624 sort
16625) |
ad6254c5 16626 sed '
7a197a62 16627 /^ac_cv_env_/b end
ad6254c5 16628 t clear
7a197a62 16629 :clear
6b2e4ec5 16630 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
ad6254c5 16631 t end
7a197a62
AK
16632 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16633 :end' >>confcache
16634if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16635 if test -w "$cache_file"; then
4d0c3ed0 16636 if test "x$cache_file" != "x/dev/null"; then
6b2e4ec5
ZK
16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16638printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
4d0c3ed0
AK
16639 if test ! -f "$cache_file" || test -h "$cache_file"; then
16640 cat confcache >"$cache_file"
16641 else
16642 case $cache_file in #(
16643 */* | ?:*)
16644 mv -f confcache "$cache_file"$$ &&
16645 mv -f "$cache_file"$$ "$cache_file" ;; #(
16646 *)
16647 mv -f confcache "$cache_file" ;;
16648 esac
16649 fi
16650 fi
795ca3e5 16651 else
6b2e4ec5
ZK
16652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16653printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
795ca3e5
AK
16654 fi
16655fi
16656rm -f confcache
16657
795ca3e5
AK
16658test "x$prefix" = xNONE && prefix=$ac_default_prefix
16659# Let make expand exec_prefix.
16660test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16661
72b2cb61 16662DEFS=-DHAVE_CONFIG_H
ad6254c5
AK
16663
16664ac_libobjs=
16665ac_ltlibobjs=
f11781c5 16666U=
ad6254c5
AK
16667for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16668 # 1. Remove the extension, and $U if already installed.
7a197a62 16669 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6b2e4ec5 16670 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
7a197a62
AK
16671 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16672 # will be set to the directory where LIBOBJS objects are built.
f11781c5
AK
16673 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16674 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
ad6254c5
AK
16675done
16676LIBOBJS=$ac_libobjs
80992638 16677
ad6254c5
AK
16678LTLIBOBJS=$ac_ltlibobjs
16679
16680
16681
4d0c3ed0 16682: "${CONFIG_STATUS=./config.status}"
ec6a6fbe 16683ac_write_fail=0
ad6254c5
AK
16684ac_clean_files_save=$ac_clean_files
16685ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6b2e4ec5
ZK
16686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16687printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
f11781c5
AK
16688as_write_fail=0
16689cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
ad6254c5
AK
16690#! $SHELL
16691# Generated by $as_me.
795ca3e5 16692# Run this file to recreate the current configuration.
795ca3e5 16693# Compiler output produced by configure, useful for debugging
ad6254c5
AK
16694# configure, is in config.log if it exists.
16695
16696debug=false
16697ac_cs_recheck=false
16698ac_cs_silent=false
ad6254c5 16699
f11781c5
AK
16700SHELL=\${CONFIG_SHELL-$SHELL}
16701export SHELL
16702_ASEOF
16703cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16704## -------------------- ##
16705## M4sh Initialization. ##
16706## -------------------- ##
ad6254c5 16707
25fbec5b
AK
16708# Be more Bourne compatible
16709DUALCASE=1; export DUALCASE # for MKS sh
6b2e4ec5
ZK
16710if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16711then :
ad6254c5
AK
16712 emulate sh
16713 NULLCMD=:
ec6a6fbe 16714 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
ad6254c5
AK
16715 # is contrary to our usage. Disable this feature.
16716 alias -g '${1+"$@"}'='"$@"'
7a197a62 16717 setopt NO_GLOB_SUBST
635df748
ZK
16718else case e in #(
16719 e) case `(set -o) 2>/dev/null` in #(
f11781c5
AK
16720 *posix*) :
16721 set -o posix ;; #(
16722 *) :
16723 ;;
635df748 16724esac ;;
25fbec5b 16725esac
7a197a62 16726fi
25fbec5b
AK
16727
16728
6b2e4ec5
ZK
16729
16730# Reset variables that may have inherited troublesome values from
16731# the environment.
16732
16733# IFS needs to be set, to space, tab, and newline, in precisely that order.
16734# (If _AS_PATH_WALK were called with IFS unset, it would have the
16735# side effect of setting IFS to empty, thus disabling word splitting.)
16736# Quoting is to prevent editors from complaining about space-tab.
ec6a6fbe
AK
16737as_nl='
16738'
16739export as_nl
6b2e4ec5
ZK
16740IFS=" "" $as_nl"
16741
16742PS1='$ '
16743PS2='> '
16744PS4='+ '
16745
16746# Ensure predictable behavior from utilities with locale-dependent output.
16747LC_ALL=C
16748export LC_ALL
16749LANGUAGE=C
16750export LANGUAGE
16751
16752# We cannot yet rely on "unset" to work, but we need these variables
16753# to be unset--not just set to an empty or harmless value--now, to
16754# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16755# also avoids known problems related to "unset" and subshell syntax
16756# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16757for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16758do eval test \${$as_var+y} \
16759 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16760done
16761
16762# Ensure that fds 0, 1, and 2 are open.
16763if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16764if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16765if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
ec6a6fbe
AK
16766
16767# The user is always right.
6b2e4ec5 16768if ${PATH_SEPARATOR+false} :; then
ec6a6fbe
AK
16769 PATH_SEPARATOR=:
16770 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16771 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16772 PATH_SEPARATOR=';'
16773 }
ad6254c5
AK
16774fi
16775
ad6254c5 16776
7a197a62 16777# Find who we are. Look in the path if we contain no directory separator.
4d0c3ed0 16778as_myself=
f11781c5 16779case $0 in #((
7a197a62
AK
16780 *[\\/]* ) as_myself=$0 ;;
16781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782for as_dir in $PATH
16783do
16784 IFS=$as_save_IFS
6b2e4ec5
ZK
16785 case $as_dir in #(((
16786 '') as_dir=./ ;;
16787 */) ;;
16788 *) as_dir=$as_dir/ ;;
16789 esac
16790 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
f11781c5 16791 done
7a197a62
AK
16792IFS=$as_save_IFS
16793
16794 ;;
16795esac
635df748 16796# We did not find ourselves, most probably we were run as 'sh COMMAND'
7a197a62
AK
16797# in which case we are not to be found in the path.
16798if test "x$as_myself" = x; then
16799 as_myself=$0
16800fi
16801if test ! -f "$as_myself"; then
6b2e4ec5 16802 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
f11781c5 16803 exit 1
7a197a62
AK
16804fi
16805
f11781c5
AK
16806
16807
16808# as_fn_error STATUS ERROR [LINENO LOG_FD]
16809# ----------------------------------------
16810# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16811# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
16812# script with STATUS, using 1 if that was 0.
16813as_fn_error ()
16814{
16815 as_status=$1; test $as_status -eq 0 && as_status=1
16816 if test "$4"; then
16817 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6b2e4ec5 16818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
f11781c5 16819 fi
6b2e4ec5 16820 printf "%s\n" "$as_me: error: $2" >&2
f11781c5
AK
16821 as_fn_exit $as_status
16822} # as_fn_error
16823
16824
16825# as_fn_set_status STATUS
16826# -----------------------
16827# Set $? to STATUS, without forking.
16828as_fn_set_status ()
16829{
16830 return $1
16831} # as_fn_set_status
16832
16833# as_fn_exit STATUS
16834# -----------------
16835# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16836as_fn_exit ()
16837{
16838 set +e
16839 as_fn_set_status $1
16840 exit $1
16841} # as_fn_exit
16842
16843# as_fn_unset VAR
16844# ---------------
16845# Portably unset VAR.
16846as_fn_unset ()
16847{
16848 { eval $1=; unset $1;}
16849}
16850as_unset=as_fn_unset
6b2e4ec5 16851
f11781c5
AK
16852# as_fn_append VAR VALUE
16853# ----------------------
16854# Append the text in VALUE to the end of the definition contained in VAR. Take
16855# advantage of any shell optimizations that allow amortized linear growth over
16856# repeated appends, instead of the typical quadratic growth present in naive
16857# implementations.
6b2e4ec5
ZK
16858if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16859then :
f11781c5
AK
16860 eval 'as_fn_append ()
16861 {
16862 eval $1+=\$2
16863 }'
635df748
ZK
16864else case e in #(
16865 e) as_fn_append ()
f11781c5
AK
16866 {
16867 eval $1=\$$1\$2
635df748
ZK
16868 } ;;
16869esac
f11781c5
AK
16870fi # as_fn_append
16871
16872# as_fn_arith ARG...
16873# ------------------
16874# Perform arithmetic evaluation on the ARGs, and store the result in the
16875# global $as_val. Take advantage of shells that can avoid forks. The arguments
16876# must be portable across $(()) and expr.
6b2e4ec5
ZK
16877if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16878then :
f11781c5
AK
16879 eval 'as_fn_arith ()
16880 {
16881 as_val=$(( $* ))
16882 }'
635df748
ZK
16883else case e in #(
16884 e) as_fn_arith ()
f11781c5
AK
16885 {
16886 as_val=`expr "$@" || test $? -eq 1`
635df748
ZK
16887 } ;;
16888esac
f11781c5
AK
16889fi # as_fn_arith
16890
16891
7a197a62
AK
16892if expr a : '\(a\)' >/dev/null 2>&1 &&
16893 test "X`expr 00001 : '.*\(...\)'`" = X001; then
ad6254c5
AK
16894 as_expr=expr
16895else
16896 as_expr=false
16897fi
8106cdd5 16898
7a197a62 16899if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
ad6254c5
AK
16900 as_basename=basename
16901else
16902 as_basename=false
16903fi
16904
f11781c5
AK
16905if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16906 as_dirname=dirname
16907else
16908 as_dirname=false
16909fi
ad6254c5 16910
7a197a62 16911as_me=`$as_basename -- "$0" ||
ad6254c5
AK
16912$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16913 X"$0" : 'X\(//\)$' \| \
7a197a62 16914 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6b2e4ec5 16915printf "%s\n" X/"$0" |
7a197a62
AK
16916 sed '/^.*\/\([^/][^/]*\)\/*$/{
16917 s//\1/
16918 q
16919 }
16920 /^X\/\(\/\/\)$/{
16921 s//\1/
16922 q
16923 }
16924 /^X\/\(\/\).*/{
16925 s//\1/
16926 q
16927 }
16928 s/.*/./; q'`
ad6254c5 16929
f11781c5
AK
16930# Avoid depending upon Character Ranges.
16931as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16932as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16933as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16934as_cr_digits='0123456789'
16935as_cr_alnum=$as_cr_Letters$as_cr_digits
7a197a62 16936
6b2e4ec5
ZK
16937
16938# Determine whether it's possible to make 'echo' print without a newline.
16939# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16940# for compatibility with existing Makefiles.
7a197a62 16941ECHO_C= ECHO_N= ECHO_T=
f11781c5 16942case `echo -n x` in #(((((
7a197a62 16943-n*)
f11781c5 16944 case `echo 'xy\c'` in
7a197a62 16945 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
f11781c5
AK
16946 xy) ECHO_C='\c';;
16947 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16948 ECHO_T=' ';;
7a197a62
AK
16949 esac;;
16950*)
16951 ECHO_N='-n';;
ad6254c5 16952esac
80992638 16953
6b2e4ec5
ZK
16954# For backward compatibility with old third-party macros, we provide
16955# the shell variables $as_echo and $as_echo_n. New code should use
16956# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16957as_echo='printf %s\n'
16958as_echo_n='printf %s'
16959
ad6254c5 16960rm -f conf$$ conf$$.exe conf$$.file
7a197a62
AK
16961if test -d conf$$.dir; then
16962 rm -f conf$$.dir/conf$$.file
16963else
16964 rm -f conf$$.dir
ec6a6fbe
AK
16965 mkdir conf$$.dir 2>/dev/null
16966fi
16967if (echo >conf$$.file) 2>/dev/null; then
16968 if ln -s conf$$.file conf$$ 2>/dev/null; then
16969 as_ln_s='ln -s'
16970 # ... but there are two gotchas:
635df748
ZK
16971 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
16972 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
16973 # In both cases, we have to default to 'cp -pR'.
ec6a6fbe 16974 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4d0c3ed0 16975 as_ln_s='cp -pR'
ec6a6fbe
AK
16976 elif ln conf$$.file conf$$ 2>/dev/null; then
16977 as_ln_s=ln
16978 else
4d0c3ed0 16979 as_ln_s='cp -pR'
ec6a6fbe 16980 fi
ad6254c5 16981else
4d0c3ed0 16982 as_ln_s='cp -pR'
ad6254c5 16983fi
7a197a62
AK
16984rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16985rmdir conf$$.dir 2>/dev/null
8106cdd5 16986
f11781c5
AK
16987
16988# as_fn_mkdir_p
16989# -------------
16990# Create "$as_dir" as a directory, including parents if necessary.
16991as_fn_mkdir_p ()
16992{
16993
16994 case $as_dir in #(
16995 -*) as_dir=./$as_dir;;
16996 esac
16997 test -d "$as_dir" || eval $as_mkdir_p || {
16998 as_dirs=
16999 while :; do
17000 case $as_dir in #(
6b2e4ec5 17001 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
f11781c5
AK
17002 *) as_qdir=$as_dir;;
17003 esac
17004 as_dirs="'$as_qdir' $as_dirs"
17005 as_dir=`$as_dirname -- "$as_dir" ||
17006$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17007 X"$as_dir" : 'X\(//\)[^/]' \| \
17008 X"$as_dir" : 'X\(//\)$' \| \
17009 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6b2e4ec5 17010printf "%s\n" X"$as_dir" |
f11781c5
AK
17011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17012 s//\1/
17013 q
17014 }
17015 /^X\(\/\/\)[^/].*/{
17016 s//\1/
17017 q
17018 }
17019 /^X\(\/\/\)$/{
17020 s//\1/
17021 q
17022 }
17023 /^X\(\/\).*/{
17024 s//\1/
17025 q
17026 }
17027 s/.*/./; q'`
17028 test -d "$as_dir" && break
17029 done
17030 test -z "$as_dirs" || eval "mkdir $as_dirs"
17031 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17032
17033
17034} # as_fn_mkdir_p
ad6254c5 17035if mkdir -p . 2>/dev/null; then
f11781c5 17036 as_mkdir_p='mkdir -p "$as_dir"'
ad6254c5 17037else
8a2fc586 17038 test -d ./-p && rmdir ./-p
ad6254c5
AK
17039 as_mkdir_p=false
17040fi
17041
4d0c3ed0
AK
17042
17043# as_fn_executable_p FILE
17044# -----------------------
17045# Test if FILE is an executable regular file.
17046as_fn_executable_p ()
17047{
17048 test -f "$1" && test -x "$1"
17049} # as_fn_executable_p
17050as_test_x='test -x'
17051as_executable_p=as_fn_executable_p
ad6254c5
AK
17052
17053# Sed expression to map a string onto a valid CPP name.
635df748
ZK
17054as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
17055as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
ad6254c5
AK
17056
17057# Sed expression to map a string onto a valid variable name.
635df748
ZK
17058as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
17059as_tr_sh="eval sed '$as_sed_sh'" # deprecated
ad6254c5
AK
17060
17061
ad6254c5 17062exec 6>&1
f11781c5
AK
17063## ----------------------------------- ##
17064## Main body of $CONFIG_STATUS script. ##
17065## ----------------------------------- ##
17066_ASEOF
17067test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
ad6254c5 17068
f11781c5
AK
17069cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17070# Save the log message, to keep $0 and so on meaningful, and to
ad6254c5 17071# report actual input values of CONFIG_FILES etc. instead of their
7a197a62
AK
17072# values after options handling.
17073ac_log="
ad6254c5 17074This file was extended by $as_me, which was
635df748 17075generated by GNU Autoconf 2.72. Invocation command line was
ad6254c5
AK
17076
17077 CONFIG_FILES = $CONFIG_FILES
17078 CONFIG_HEADERS = $CONFIG_HEADERS
17079 CONFIG_LINKS = $CONFIG_LINKS
17080 CONFIG_COMMANDS = $CONFIG_COMMANDS
17081 $ $0 $@
17082
7a197a62
AK
17083on `(hostname || uname -n) 2>/dev/null | sed 1q`
17084"
17085
ad6254c5
AK
17086_ACEOF
17087
ec6a6fbe
AK
17088case $ac_config_files in *"
17089"*) set x $ac_config_files; shift; ac_config_files=$*;;
17090esac
17091
17092case $ac_config_headers in *"
17093"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17094esac
17095
17096
17097cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 17098# Files that config.status was made for.
68f2de6d
AK
17099config_files="$ac_config_files"
17100config_headers="$ac_config_headers"
ad6254c5 17101
7a197a62 17102_ACEOF
ad6254c5 17103
ec6a6fbe 17104cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5 17105ac_cs_usage="\
635df748 17106'$as_me' instantiates files and other configuration actions
f11781c5
AK
17107from templates according to the current configuration. Unless the files
17108and actions are specified as TAGs, all are instantiated by default.
ad6254c5 17109
f11781c5 17110Usage: $0 [OPTION]... [TAG]...
ad6254c5
AK
17111
17112 -h, --help print this help, then exit
25fbec5b 17113 -V, --version print version number and configuration settings, then exit
f11781c5 17114 --config print configuration, then exit
ec6a6fbe
AK
17115 -q, --quiet, --silent
17116 do not print progress messages
ad6254c5
AK
17117 -d, --debug don't remove temporary files
17118 --recheck update $as_me by reconfiguring in the same conditions
ec6a6fbe
AK
17119 --file=FILE[:TEMPLATE]
17120 instantiate the configuration file FILE
17121 --header=FILE[:TEMPLATE]
17122 instantiate the configuration header FILE
ad6254c5
AK
17123
17124Configuration files:
17125$config_files
17126
72b2cb61
AK
17127Configuration headers:
17128$config_headers
17129
f11781c5 17130Report bugs to the package provider."
ad6254c5 17131
7a197a62 17132_ACEOF
6b2e4ec5
ZK
17133ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
17134ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
ec6a6fbe 17135cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6b2e4ec5 17136ac_cs_config='$ac_cs_config_escaped'
ad6254c5
AK
17137ac_cs_version="\\
17138config.status
635df748 17139configured by $0, generated by GNU Autoconf 2.72,
f11781c5 17140 with options \\"\$ac_cs_config\\"
ad6254c5 17141
635df748 17142Copyright (C) 2023 Free Software Foundation, Inc.
ad6254c5
AK
17143This config.status script is free software; the Free Software Foundation
17144gives unlimited permission to copy, distribute and modify it."
7a197a62
AK
17145
17146ac_pwd='$ac_pwd'
17147srcdir='$srcdir'
17148INSTALL='$INSTALL'
fddafd51 17149MKDIR_P='$MKDIR_P'
ec6a6fbe
AK
17150AWK='$AWK'
17151test -n "\$AWK" || AWK=awk
ad6254c5
AK
17152_ACEOF
17153
ec6a6fbe
AK
17154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17155# The default lists apply if the user does not specify any file.
ad6254c5
AK
17156ac_need_defaults=:
17157while test $# != 0
17158do
17159 case $1 in
4d0c3ed0 17160 --*=?*)
7a197a62
AK
17161 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17162 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
ad6254c5
AK
17163 ac_shift=:
17164 ;;
4d0c3ed0
AK
17165 --*=)
17166 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17167 ac_optarg=
17168 ac_shift=:
17169 ;;
7a197a62 17170 *)
ad6254c5
AK
17171 ac_option=$1
17172 ac_optarg=$2
17173 ac_shift=shift
17174 ;;
ad6254c5
AK
17175 esac
17176
17177 case $ac_option in
17178 # Handling of the options.
ad6254c5
AK
17179 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17180 ac_cs_recheck=: ;;
7a197a62 17181 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6b2e4ec5 17182 printf "%s\n" "$ac_cs_version"; exit ;;
f11781c5 17183 --config | --confi | --conf | --con | --co | --c )
6b2e4ec5 17184 printf "%s\n" "$ac_cs_config"; exit ;;
7a197a62 17185 --debug | --debu | --deb | --de | --d | -d )
ad6254c5
AK
17186 debug=: ;;
17187 --file | --fil | --fi | --f )
17188 $ac_shift
ec6a6fbe 17189 case $ac_optarg in
6b2e4ec5 17190 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4d0c3ed0 17191 '') as_fn_error $? "missing file argument" ;;
ec6a6fbe 17192 esac
f11781c5 17193 as_fn_append CONFIG_FILES " '$ac_optarg'"
ad6254c5
AK
17194 ac_need_defaults=false;;
17195 --header | --heade | --head | --hea )
17196 $ac_shift
ec6a6fbe 17197 case $ac_optarg in
6b2e4ec5 17198 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
ec6a6fbe 17199 esac
f11781c5 17200 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
ad6254c5 17201 ac_need_defaults=false;;
7a197a62
AK
17202 --he | --h)
17203 # Conflict between --help and --header
635df748
ZK
17204 as_fn_error $? "ambiguous option: '$1'
17205Try '$0 --help' for more information.";;
7a197a62 17206 --help | --hel | -h )
6b2e4ec5 17207 printf "%s\n" "$ac_cs_usage"; exit ;;
ad6254c5
AK
17208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17209 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17210 ac_cs_silent=: ;;
17211
17212 # This is an error.
635df748
ZK
17213 -*) as_fn_error $? "unrecognized option: '$1'
17214Try '$0 --help' for more information." ;;
ad6254c5 17215
f11781c5 17216 *) as_fn_append ac_config_targets " $1"
7a197a62 17217 ac_need_defaults=false ;;
ad6254c5
AK
17218
17219 esac
17220 shift
17221done
17222
17223ac_configure_extra_args=
17224
17225if $ac_cs_silent; then
17226 exec 6>/dev/null
17227 ac_configure_extra_args="$ac_configure_extra_args --silent"
17228fi
17229
17230_ACEOF
ec6a6fbe 17231cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ad6254c5 17232if \$ac_cs_recheck; then
4d0c3ed0 17233 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
ec6a6fbe 17234 shift
6b2e4ec5 17235 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
ec6a6fbe 17236 CONFIG_SHELL='$SHELL'
7a197a62 17237 export CONFIG_SHELL
ec6a6fbe 17238 exec "\$@"
ad6254c5
AK
17239fi
17240
17241_ACEOF
ec6a6fbe 17242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
17243exec 5>>config.log
17244{
17245 echo
17246 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17247## Running $as_me. ##
17248_ASBOX
6b2e4ec5 17249 printf "%s\n" "$ac_log"
7a197a62 17250} >&5
ad6254c5 17251
7a197a62 17252_ACEOF
ec6a6fbe 17253cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62 17254_ACEOF
ad6254c5 17255
ec6a6fbe 17256cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
17257
17258# Handling of arguments.
ad6254c5
AK
17259for ac_config_target in $ac_config_targets
17260do
7a197a62 17261 case $ac_config_target in
95b5d24f 17262 "include/configure.h") CONFIG_HEADERS="$CONFIG_HEADERS include/configure.h" ;;
7a197a62
AK
17263 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
17264 "make.tmpl") CONFIG_FILES="$CONFIG_FILES make.tmpl" ;;
ccc35e26 17265 "libdm/make.tmpl") CONFIG_FILES="$CONFIG_FILES libdm/make.tmpl" ;;
7a197a62 17266 "daemons/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/Makefile" ;;
5d311afb 17267 "daemons/cmirrord/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/cmirrord/Makefile" ;;
93bd259b
AK
17268 "daemons/dmeventd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/Makefile" ;;
17269 "daemons/dmeventd/libdevmapper-event.pc") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/libdevmapper-event.pc" ;;
04f06bc9 17270 "daemons/dmeventd/plugins/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/Makefile" ;;
d3d98fdc 17271 "daemons/dmeventd/plugins/lvm2/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/lvm2/Makefile" ;;
3041b72f 17272 "daemons/dmeventd/plugins/raid/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/raid/Makefile" ;;
93bd259b
AK
17273 "daemons/dmeventd/plugins/mirror/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/mirror/Makefile" ;;
17274 "daemons/dmeventd/plugins/snapshot/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/snapshot/Makefile" ;;
2bc1d759 17275 "daemons/dmeventd/plugins/thin/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/thin/Makefile" ;;
80e6097e 17276 "daemons/dmeventd/plugins/vdo/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/dmeventd/plugins/vdo/Makefile" ;;
5987562c 17277 "daemons/lvmdbusd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/Makefile" ;;
2aedc982 17278 "daemons/lvmdbusd/lvmdbusd") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdbusd" ;;
7272fd22
MC
17279 "daemons/lvmdbusd/lvmdb.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvmdb.py" ;;
17280 "daemons/lvmdbusd/lvm_shell_proxy.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/lvm_shell_proxy.py" ;;
5987562c 17281 "daemons/lvmdbusd/path.py") CONFIG_FILES="$CONFIG_FILES daemons/lvmdbusd/path.py" ;;
e587b067 17282 "daemons/lvmpolld/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmpolld/Makefile" ;;
fe70b03d 17283 "daemons/lvmlockd/Makefile") CONFIG_FILES="$CONFIG_FILES daemons/lvmlockd/Makefile" ;;
6d1ed225
PR
17284 "conf/Makefile") CONFIG_FILES="$CONFIG_FILES conf/Makefile" ;;
17285 "conf/example.conf") CONFIG_FILES="$CONFIG_FILES conf/example.conf" ;;
2fc29289 17286 "conf/lvmlocal.conf") CONFIG_FILES="$CONFIG_FILES conf/lvmlocal.conf" ;;
23f9c45a
PR
17287 "conf/command_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/command_profile_template.profile" ;;
17288 "conf/metadata_profile_template.profile") CONFIG_FILES="$CONFIG_FILES conf/metadata_profile_template.profile" ;;
93bd259b
AK
17289 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
17290 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
95b5d24f 17291 "include/lvm-version.h") CONFIG_FILES="$CONFIG_FILES include/lvm-version.h" ;;
7126d8c2
AK
17292 "libdaemon/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/Makefile" ;;
17293 "libdaemon/client/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/client/Makefile" ;;
17294 "libdaemon/server/Makefile") CONFIG_FILES="$CONFIG_FILES libdaemon/server/Makefile" ;;
93bd259b 17295 "libdm/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/Makefile" ;;
0524829a 17296 "libdm/dm-tools/Makefile") CONFIG_FILES="$CONFIG_FILES libdm/dm-tools/Makefile" ;;
93bd259b
AK
17297 "libdm/libdevmapper.pc") CONFIG_FILES="$CONFIG_FILES libdm/libdevmapper.pc" ;;
17298 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
17299 "po/Makefile") CONFIG_FILES="$CONFIG_FILES po/Makefile" ;;
46f94614 17300 "scripts/lvm2-pvscan.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2-pvscan.service" ;;
a70d6b35
PR
17301 "scripts/blkdeactivate.sh") CONFIG_FILES="$CONFIG_FILES scripts/blkdeactivate.sh" ;;
17302 "scripts/blk_availability_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_init_red_hat" ;;
17303 "scripts/blk_availability_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/blk_availability_systemd_red_hat.service" ;;
ad77fb50 17304 "scripts/cmirrord_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/cmirrord_init_red_hat" ;;
5987562c 17305 "scripts/com.redhat.lvmdbus1.service") CONFIG_FILES="$CONFIG_FILES scripts/com.redhat.lvmdbus1.service" ;;
ad77fb50
ZK
17306 "scripts/dm_event_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.service" ;;
17307 "scripts/dm_event_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/dm_event_systemd_red_hat.socket" ;;
ef91de2a 17308 "scripts/lvm2_cmirrord_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_cmirrord_systemd_red_hat.service" ;;
5987562c 17309 "scripts/lvm2_lvmdbusd_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmdbusd_systemd_red_hat.service" ;;
e587b067
OK
17310 "scripts/lvm2_lvmpolld_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_init_red_hat" ;;
17311 "scripts/lvm2_lvmpolld_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.service" ;;
17312 "scripts/lvm2_lvmpolld_systemd_red_hat.socket") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_lvmpolld_systemd_red_hat.socket" ;;
0c00af77
MC
17313 "scripts/lvmlockd.service") CONFIG_FILES="$CONFIG_FILES scripts/lvmlockd.service" ;;
17314 "scripts/lvmlocks.service") CONFIG_FILES="$CONFIG_FILES scripts/lvmlocks.service" ;;
595eaf92 17315 "scripts/lvm2_monitoring_init_red_hat") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_init_red_hat" ;;
6e5c1f75 17316 "scripts/lvm2_monitoring_systemd_red_hat.service") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_monitoring_systemd_red_hat.service" ;;
4417a8bd 17317 "scripts/lvm2_tmpfiles_red_hat.conf") CONFIG_FILES="$CONFIG_FILES scripts/lvm2_tmpfiles_red_hat.conf" ;;
5da35d87 17318 "scripts/lvmdump.sh") CONFIG_FILES="$CONFIG_FILES scripts/lvmdump.sh" ;;
7a197a62 17319 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
93bd259b 17320 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
7a197a62 17321 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
a5f46f6a 17322 "udev/Makefile") CONFIG_FILES="$CONFIG_FILES udev/Makefile" ;;
7a197a62 17323
635df748 17324 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
80992638 17325 esac
ad6254c5
AK
17326done
17327
7a197a62 17328
ad6254c5
AK
17329# If the user did not use the arguments to specify the items to instantiate,
17330# then the envvar interface is used. Set only those that are not.
17331# We use the long form for the default assignment because of an extremely
17332# bizarre bug on SunOS 4.1.3.
17333if $ac_need_defaults; then
6b2e4ec5
ZK
17334 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
17335 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
ad6254c5
AK
17336fi
17337
17338# Have a temporary directory for convenience. Make it in the build tree
7a197a62 17339# simply because there is no reason against having it here, and in addition,
ad6254c5 17340# creating and moving files from /tmp can sometimes cause problems.
7a197a62
AK
17341# Hook for its removal unless debugging.
17342# Note that there is a small window in which the directory will not be cleaned:
635df748 17343# after its creation but before its name has been assigned to '$tmp'.
ad6254c5
AK
17344$debug ||
17345{
4d0c3ed0 17346 tmp= ac_tmp=
7a197a62 17347 trap 'exit_status=$?
4d0c3ed0
AK
17348 : "${ac_tmp:=$tmp}"
17349 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7a197a62 17350' 0
f11781c5 17351 trap 'as_fn_exit 1' 1 2 13 15
ad6254c5 17352}
ad6254c5
AK
17353# Create a (secure) tmp directory for tmp files.
17354
17355{
7a197a62 17356 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4d0c3ed0 17357 test -d "$tmp"
ad6254c5
AK
17358} ||
17359{
7a197a62
AK
17360 tmp=./conf$$-$RANDOM
17361 (umask 077 && mkdir "$tmp")
f11781c5 17362} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4d0c3ed0 17363ac_tmp=$tmp
ad6254c5 17364
ec6a6fbe
AK
17365# Set up the scripts for CONFIG_FILES section.
17366# No need to generate them if there are no CONFIG_FILES.
635df748 17367# This happens for instance with './config.status config.h'.
1995c9ff 17368if test -n "$CONFIG_FILES"; then
7a197a62 17369
68f2de6d 17370
f11781c5
AK
17371ac_cr=`echo X | tr X '\015'`
17372# On cygwin, bash can eat \r inside `` if the user requested igncr.
17373# But we know of no other shell where ac_cr would be empty at this
17374# point, so we can use a bashism as a fallback.
17375if test "x$ac_cr" = x; then
17376 eval ac_cr=\$\'\\r\'
17377fi
ec6a6fbe
AK
17378ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
17379if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
17380 ac_cs_awk_cr='\\r'
17381else
17382 ac_cs_awk_cr=$ac_cr
1995c9ff 17383fi
7a197a62 17384
4d0c3ed0 17385echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
1995c9ff 17386_ACEOF
7a197a62 17387
8106cdd5 17388
ec6a6fbe
AK
17389{
17390 echo "cat >conf$$subs.awk <<_ACEOF" &&
17391 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
17392 echo "_ACEOF"
17393} >conf$$subs.sh ||
f11781c5
AK
17394 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
17395ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
1995c9ff
AK
17396ac_delim='%!_!# '
17397for ac_last_try in false false false false false :; do
ec6a6fbe 17398 . ./conf$$subs.sh ||
f11781c5 17399 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe
AK
17400
17401 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
17402 if test $ac_delim_n = $ac_delim_num; then
1995c9ff
AK
17403 break
17404 elif $ac_last_try; then
f11781c5 17405 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
1995c9ff
AK
17406 else
17407 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17408 fi
17409done
ec6a6fbe
AK
17410rm -f conf$$subs.sh
17411
17412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4d0c3ed0 17413cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
ec6a6fbe
AK
17414_ACEOF
17415sed -n '
17416h
17417s/^/S["/; s/!.*/"]=/
17418p
17419g
17420s/^[^!]*!//
17421:repl
17422t repl
17423s/'"$ac_delim"'$//
17424t delim
17425:nl
17426h
f11781c5 17427s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
17428t more1
17429s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
17430p
17431n
17432b repl
17433:more1
17434s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17435p
17436g
17437s/.\{148\}//
17438t nl
17439:delim
17440h
f11781c5 17441s/\(.\{148\}\)..*/\1/
ec6a6fbe
AK
17442t more2
17443s/["\\]/\\&/g; s/^/"/; s/$/"/
17444p
17445b
17446:more2
17447s/["\\]/\\&/g; s/^/"/; s/$/"\\/
17448p
17449g
17450s/.\{148\}//
17451t delim
17452' <conf$$subs.awk | sed '
17453/^[^""]/{
17454 N
17455 s/\n//
17456}
17457' >>$CONFIG_STATUS || ac_write_fail=1
17458rm -f conf$$subs.awk
17459cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17460_ACAWK
4d0c3ed0 17461cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
ec6a6fbe
AK
17462 for (key in S) S_is_set[key] = 1
17463 FS = "\a"
7a197a62 17464
ec6a6fbe
AK
17465}
17466{
17467 line = $ 0
17468 nfields = split(line, field, "@")
17469 substed = 0
17470 len = length(field[1])
17471 for (i = 2; i < nfields; i++) {
17472 key = field[i]
17473 keylen = length(key)
17474 if (S_is_set[key]) {
17475 value = S[key]
17476 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17477 len += length(value) + length(field[++i])
17478 substed = 1
17479 } else
17480 len += 1 + keylen
17481 }
17482
17483 print line
17484}
fddafd51 17485
ec6a6fbe 17486_ACAWK
1995c9ff 17487_ACEOF
ec6a6fbe
AK
17488cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17489if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17490 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17491else
17492 cat
4d0c3ed0 17493fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
f11781c5 17494 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
7a197a62
AK
17495_ACEOF
17496
f11781c5
AK
17497# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17498# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
7a197a62
AK
17499# trailing colons and then remove the whole line if VPATH becomes empty
17500# (actually we leave an empty line to preserve line numbers).
17501if test "x$srcdir" = x.; then
f11781c5
AK
17502 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17503h
17504s///
17505s/^/:/
17506s/[ ]*$/:/
17507s/:\$(srcdir):/:/g
17508s/:\${srcdir}:/:/g
17509s/:@srcdir@:/:/g
17510s/^:*//
7a197a62 17511s/:*$//
f11781c5
AK
17512x
17513s/\(=[ ]*\).*/\1/
17514G
17515s/\n//
7a197a62
AK
17516s/^[^=]*=[ ]*$//
17517}'
17518fi
17519
ec6a6fbe 17520cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
17521fi # test -n "$CONFIG_FILES"
17522
ec6a6fbe
AK
17523# Set up the scripts for CONFIG_HEADERS section.
17524# No need to generate them if there are no CONFIG_HEADERS.
635df748 17525# This happens for instance with './config.status Makefile'.
ec6a6fbe 17526if test -n "$CONFIG_HEADERS"; then
4d0c3ed0 17527cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
ec6a6fbe
AK
17528BEGIN {
17529_ACEOF
17530
635df748 17531# Transform confdefs.h into an awk script 'defines.awk', embedded as
ec6a6fbe
AK
17532# here-document in config.status, that substitutes the proper values into
17533# config.h.in to produce config.h.
17534
17535# Create a delimiter string that does not exist in confdefs.h, to ease
17536# handling of long lines.
17537ac_delim='%!_!# '
17538for ac_last_try in false false :; do
4d0c3ed0
AK
17539 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17540 if test -z "$ac_tt"; then
ec6a6fbe
AK
17541 break
17542 elif $ac_last_try; then
f11781c5 17543 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
ec6a6fbe
AK
17544 else
17545 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17546 fi
17547done
17548
17549# For the awk script, D is an array of macro values keyed by name,
17550# likewise P contains macro parameters if any. Preserve backslash
17551# newline sequences.
17552
17553ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17554sed -n '
17555s/.\{148\}/&'"$ac_delim"'/g
17556t rset
17557:rset
17558s/^[ ]*#[ ]*define[ ][ ]*/ /
17559t def
17560d
17561:def
17562s/\\$//
17563t bsnl
17564s/["\\]/\\&/g
17565s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17566D["\1"]=" \3"/p
17567s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17568d
17569:bsnl
17570s/["\\]/\\&/g
17571s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17572D["\1"]=" \3\\\\\\n"\\/p
17573t cont
17574s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17575t cont
17576d
17577:cont
17578n
17579s/.\{148\}/&'"$ac_delim"'/g
17580t clear
17581:clear
17582s/\\$//
17583t bsnlc
17584s/["\\]/\\&/g; s/^/"/; s/$/"/p
17585d
17586:bsnlc
17587s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17588b cont
17589' <confdefs.h | sed '
17590s/'"$ac_delim"'/"\\\
17591"/g' >>$CONFIG_STATUS || ac_write_fail=1
17592
17593cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17594 for (key in D) D_is_set[key] = 1
17595 FS = "\a"
17596}
17597/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17598 line = \$ 0
17599 split(line, arg, " ")
17600 if (arg[1] == "#") {
17601 defundef = arg[2]
17602 mac1 = arg[3]
17603 } else {
17604 defundef = substr(arg[1], 2)
17605 mac1 = arg[2]
17606 }
17607 split(mac1, mac2, "(") #)
17608 macro = mac2[1]
17609 prefix = substr(line, 1, index(line, defundef) - 1)
17610 if (D_is_set[macro]) {
17611 # Preserve the white space surrounding the "#".
17612 print prefix "define", macro P[macro] D[macro]
17613 next
17614 } else {
17615 # Replace #undef with comments. This is necessary, for example,
17616 # in the case of _POSIX_SOURCE, which is predefined and required
17617 # on some systems where configure will not decide to define it.
17618 if (defundef == "undef") {
17619 print "/*", prefix defundef, macro, "*/"
17620 next
17621 }
17622 }
17623}
17624{ print }
17625_ACAWK
17626_ACEOF
17627cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
f11781c5 17628 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
ec6a6fbe
AK
17629fi # test -n "$CONFIG_HEADERS"
17630
7a197a62 17631
ec6a6fbe
AK
17632eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
17633shift
17634for ac_tag
7a197a62
AK
17635do
17636 case $ac_tag in
17637 :[FHLC]) ac_mode=$ac_tag; continue;;
17638 esac
17639 case $ac_mode$ac_tag in
17640 :[FHL]*:*);;
635df748 17641 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
7a197a62
AK
17642 :[FH]-) ac_tag=-:-;;
17643 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17644 esac
17645 ac_save_IFS=$IFS
17646 IFS=:
17647 set x $ac_tag
17648 IFS=$ac_save_IFS
17649 shift
17650 ac_file=$1
17651 shift
17652
17653 case $ac_mode in
17654 :L) ac_source=$1;;
17655 :[FH])
17656 ac_file_inputs=
17657 for ac_f
17658 do
17659 case $ac_f in
4d0c3ed0 17660 -) ac_f="$ac_tmp/stdin";;
7a197a62
AK
17661 *) # Look for the file first in the build tree, then in the source tree
17662 # (if the path is not absolute). The absolute path cannot be DOS-style,
635df748 17663 # because $ac_f cannot contain ':'.
7a197a62
AK
17664 test -f "$ac_f" ||
17665 case $ac_f in
17666 [\\/$]*) false;;
17667 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17668 esac ||
635df748 17669 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
7a197a62 17670 esac
6b2e4ec5 17671 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
f11781c5 17672 as_fn_append ac_file_inputs " '$ac_f'"
7a197a62
AK
17673 done
17674
635df748 17675 # Let's still pretend it is 'configure' which instantiates (i.e., don't
7a197a62
AK
17676 # use $as_me), people would be surprised to read:
17677 # /* config.h. Generated by config.status. */
ec6a6fbe 17678 configure_input='Generated from '`
6b2e4ec5 17679 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
ec6a6fbe 17680 `' by configure.'
7a197a62
AK
17681 if test x"$ac_file" != x-; then
17682 configure_input="$ac_file. $configure_input"
6b2e4ec5
ZK
17683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17684printf "%s\n" "$as_me: creating $ac_file" >&6;}
7a197a62 17685 fi
ec6a6fbe
AK
17686 # Neutralize special characters interpreted by sed in replacement strings.
17687 case $configure_input in #(
17688 *\&* | *\|* | *\\* )
6b2e4ec5 17689 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
ec6a6fbe
AK
17690 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17691 *) ac_sed_conf_input=$configure_input;;
17692 esac
7a197a62
AK
17693
17694 case $ac_tag in
4d0c3ed0 17695 *:-:* | *:-) cat >"$ac_tmp/stdin" \
f11781c5 17696 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
7a197a62
AK
17697 esac
17698 ;;
80992638 17699 esac
8106cdd5 17700
7a197a62 17701 ac_dir=`$as_dirname -- "$ac_file" ||
ad6254c5 17702$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8a2fc586
AK
17703 X"$ac_file" : 'X\(//\)[^/]' \| \
17704 X"$ac_file" : 'X\(//\)$' \| \
7a197a62 17705 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6b2e4ec5 17706printf "%s\n" X"$ac_file" |
7a197a62
AK
17707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17708 s//\1/
17709 q
17710 }
17711 /^X\(\/\/\)[^/].*/{
17712 s//\1/
17713 q
17714 }
17715 /^X\(\/\/\)$/{
17716 s//\1/
17717 q
17718 }
17719 /^X\(\/\).*/{
17720 s//\1/
17721 q
17722 }
17723 s/.*/./; q'`
f11781c5 17724 as_dir="$ac_dir"; as_fn_mkdir_p
ad6254c5
AK
17725 ac_builddir=.
17726
7a197a62
AK
17727case "$ac_dir" in
17728.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17729*)
6b2e4ec5 17730 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
7a197a62 17731 # A ".." for each directory in $ac_dir_suffix.
6b2e4ec5 17732 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7a197a62
AK
17733 case $ac_top_builddir_sub in
17734 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17735 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17736 esac ;;
17737esac
17738ac_abs_top_builddir=$ac_pwd
17739ac_abs_builddir=$ac_pwd$ac_dir_suffix
17740# for backward compatibility:
17741ac_top_builddir=$ac_top_build_prefix
ad6254c5
AK
17742
17743case $srcdir in
7a197a62 17744 .) # We are building in place.
ad6254c5 17745 ac_srcdir=.
7a197a62
AK
17746 ac_top_srcdir=$ac_top_builddir_sub
17747 ac_abs_top_srcdir=$ac_pwd ;;
17748 [\\/]* | ?:[\\/]* ) # Absolute name.
ad6254c5 17749 ac_srcdir=$srcdir$ac_dir_suffix;
7a197a62
AK
17750 ac_top_srcdir=$srcdir
17751 ac_abs_top_srcdir=$srcdir ;;
17752 *) # Relative name.
17753 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17754 ac_top_srcdir=$ac_top_build_prefix$srcdir
17755 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
ad6254c5 17756esac
7a197a62 17757ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8a2fc586 17758
ad6254c5 17759
7a197a62
AK
17760 case $ac_mode in
17761 :F)
17762 #
17763 # CONFIG_FILE
17764 #
ad6254c5
AK
17765
17766 case $INSTALL in
17767 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
7a197a62 17768 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
795ca3e5 17769 esac
fddafd51
ZK
17770 ac_MKDIR_P=$MKDIR_P
17771 case $MKDIR_P in
17772 [\\/$]* | ?:[\\/]* ) ;;
17773 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17774 esac
7a197a62 17775_ACEOF
795ca3e5 17776
ec6a6fbe 17777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7a197a62
AK
17778# If the template does not know about datarootdir, expand it.
17779# FIXME: This hack should be removed a few years after 2.60.
17780ac_datarootdir_hack=; ac_datarootdir_seen=
ec6a6fbe
AK
17781ac_sed_dataroot='
17782/datarootdir/ {
7a197a62
AK
17783 p
17784 q
17785}
17786/@datadir@/p
17787/@docdir@/p
17788/@infodir@/p
17789/@localedir@/p
f11781c5 17790/@mandir@/p'
ec6a6fbe 17791case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7a197a62
AK
17792*datarootdir*) ac_datarootdir_seen=yes;;
17793*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6b2e4ec5
ZK
17794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17795printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
ad6254c5 17796_ACEOF
ec6a6fbe 17797cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7a197a62
AK
17798 ac_datarootdir_hack='
17799 s&@datadir@&$datadir&g
17800 s&@docdir@&$docdir&g
17801 s&@infodir@&$infodir&g
17802 s&@localedir@&$localedir&g
17803 s&@mandir@&$mandir&g
f11781c5 17804 s&\\\${datarootdir}&$datarootdir&g' ;;
7a197a62
AK
17805esac
17806_ACEOF
17807
635df748 17808# Neutralize VPATH when '$srcdir' = '.'.
7a197a62
AK
17809# Shell code in configure.ac might set extrasub.
17810# FIXME: do we really want to maintain this feature?
ec6a6fbe
AK
17811cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17812ac_sed_extra="$ac_vpsub
ad6254c5
AK
17813$extrasub
17814_ACEOF
ec6a6fbe 17815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
ad6254c5
AK
17816:t
17817/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
ec6a6fbe 17818s|@configure_input@|$ac_sed_conf_input|;t t
7a197a62 17819s&@top_builddir@&$ac_top_builddir_sub&;t t
ec6a6fbe 17820s&@top_build_prefix@&$ac_top_build_prefix&;t t
7a197a62
AK
17821s&@srcdir@&$ac_srcdir&;t t
17822s&@abs_srcdir@&$ac_abs_srcdir&;t t
17823s&@top_srcdir@&$ac_top_srcdir&;t t
17824s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17825s&@builddir@&$ac_builddir&;t t
17826s&@abs_builddir@&$ac_abs_builddir&;t t
17827s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17828s&@INSTALL@&$ac_INSTALL&;t t
fddafd51 17829s&@MKDIR_P@&$ac_MKDIR_P&;t t
7a197a62 17830$ac_datarootdir_hack
ec6a6fbe 17831"
4d0c3ed0
AK
17832eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
17833 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
17834
17835test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
4d0c3ed0
AK
17836 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17837 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17838 "$ac_tmp/out"`; test -z "$ac_out"; } &&
635df748 17839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
f11781c5 17840which seems to be undefined. Please make sure it is defined" >&5
635df748 17841printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
f11781c5 17842which seems to be undefined. Please make sure it is defined" >&2;}
7a197a62 17843
4d0c3ed0 17844 rm -f "$ac_tmp/stdin"
72b2cb61 17845 case $ac_file in
4d0c3ed0
AK
17846 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17847 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
ec6a6fbe 17848 esac \
f11781c5 17849 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7a197a62
AK
17850 ;;
17851 :H)
17852 #
17853 # CONFIG_HEADER
17854 #
72b2cb61 17855 if test x"$ac_file" != x-; then
ec6a6fbe 17856 {
6b2e4ec5 17857 printf "%s\n" "/* $configure_input */" >&1 \
4d0c3ed0
AK
17858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17859 } >"$ac_tmp/config.h" \
f11781c5 17860 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
4d0c3ed0 17861 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6b2e4ec5
ZK
17862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17863printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
72b2cb61 17864 else
ec6a6fbe 17865 rm -f "$ac_file"
4d0c3ed0 17866 mv "$ac_tmp/config.h" "$ac_file" \
f11781c5 17867 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
72b2cb61
AK
17868 fi
17869 else
6b2e4ec5 17870 printf "%s\n" "/* $configure_input */" >&1 \
4d0c3ed0 17871 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
f11781c5 17872 || as_fn_error $? "could not create -" "$LINENO" 5
72b2cb61 17873 fi
7a197a62
AK
17874 ;;
17875
17876
17877 esac
17878
17879done # for ac_tag
795ca3e5 17880
795ca3e5 17881
f11781c5 17882as_fn_exit 0
ad6254c5 17883_ACEOF
ad6254c5
AK
17884ac_clean_files=$ac_clean_files_save
17885
ec6a6fbe 17886test $ac_write_fail = 0 ||
f11781c5 17887 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
ec6a6fbe 17888
ad6254c5
AK
17889
17890# configure is writing to config.log, and then calls config.status.
17891# config.status does its own redirection, appending to config.log.
17892# Unfortunately, on DOS this fails, as config.log is still kept open
17893# by configure, so config.status won't be able to write to it; its
17894# output is simply discarded. So we exec the FD to /dev/null,
17895# effectively closing config.log, so it can be properly (re)opened and
17896# appended to by config.status. When coming back to configure, we
17897# need to make the FD available again.
17898if test "$no_create" != yes; then
17899 ac_cs_success=:
17900 ac_config_status_args=
17901 test "$silent" = yes &&
17902 ac_config_status_args="$ac_config_status_args --quiet"
17903 exec 5>/dev/null
17904 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17905 exec 5>>config.log
17906 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17907 # would make configure fail if this is the last instruction.
f11781c5 17908 $ac_cs_success || as_fn_exit 1
ad6254c5 17909fi
ec6a6fbe 17910if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6b2e4ec5
ZK
17911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17912printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
ec6a6fbe 17913fi
795ca3e5 17914
2dc95e1c 17915
6b2e4ec5
ZK
17916if test -n "$THIN_CONFIGURE_WARN"
17917then :
17918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&5
17919printf "%s\n" "$as_me: WARNING: Support for thin provisioning is limited since some thin provisioning tools are missing!" >&2;}
cc560b75 17920fi
aefab64e 17921
6b2e4ec5
ZK
17922if test -n "$THIN_CHECK_VERSION_WARN"
17923then :
17924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&5
17925printf "%s\n" "$as_me: WARNING: You should also install latest thin_check vsn 0.7.0 (or later) for lvm2 thin provisioning" >&2;}
cc560b75 17926fi
f13977e8 17927
6b2e4ec5
ZK
17928if test -n "$CACHE_CONFIGURE_WARN"
17929then :
17930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Support for cache is limited since some cache tools are missing!" >&5
17931printf "%s\n" "$as_me: WARNING: Support for cache is limited since some cache tools are missing!" >&2;}
cc560b75 17932fi
39cb8aa3 17933
6b2e4ec5
ZK
17934if test -n "$CACHE_CHECK_VERSION_WARN"
17935then :
17936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&5
17937printf "%s\n" "$as_me: WARNING: You should install latest cache_check vsn 0.7.0 to use lvm2 cache metadata format 2" >&2;}
358eee15
ZK
17938fi
17939
6b2e4ec5
ZK
17940if test -n "$VDO_CONFIGURE_WARN"
17941then :
17942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&5
17943printf "%s\n" "$as_me: WARNING: Unrecognized 'vdoformat' tool is REQUIRED for VDO logical volume creation!" >&2;}
4a90b0c4
ZK
17944fi
17945
6b2e4ec5
ZK
17946if test -n "$LVM_NEEDS_LIBAIO_WARN"
17947then :
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&5
17949printf "%s\n" "$as_me: WARNING: Only libdm part can be build without libaio: make [install_]device-mapper" >&2;}
57b5bc9c 17950fi
358eee15 17951
b681b774 17952if test "$ODIRECT" != "yes"
6b2e4ec5
ZK
17953then :
17954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&5
17955printf "%s\n" "$as_me: WARNING: O_DIRECT disabled: low-memory pvmove may lock up" >&2;}
cc560b75 17956fi
6b2e4ec5 17957
0627716f
ZK
17958if test "$BUILD_LVMDBUSD" = "yes" && test "$NOTIFYDBUS_SUPPORT" = "no"
17959then :
17960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Building D-Bus support without D-Bus notifications!" >&5
17961printf "%s\n" "$as_me: WARNING: Building D-Bus support without D-Bus notifications!" >&2;}
17962fi
17963
This page took 3.335396 seconds and 6 git commands to generate.