mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
configure: update recent change
Full path needs to be supplied. Keep on using 'autodetect' keyword as default argument.
This commit is contained in:
parent
fd0068a66e
commit
b424b6398b
32
configure.in
32
configure.in
@ -413,16 +413,16 @@ AC_ARG_WITH(thin,
|
||||
THIN=$withval, THIN=internal)
|
||||
AC_ARG_WITH(thin-check,
|
||||
AC_HELP_STRING([--with-thin-check=PATH],
|
||||
[thin_check tool: [[thin_check]]]),
|
||||
THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="thin_check")
|
||||
[thin_check tool: [[autodetect]]]),
|
||||
THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="autodetect")
|
||||
AC_ARG_WITH(thin-dump,
|
||||
AC_HELP_STRING([--with-thin-dump=PATH],
|
||||
[thin_dump tool: [[thin_dump]]]),
|
||||
THIN_DUMP_CMD=$withval, THIN_DUMP_CMD="thin_dump")
|
||||
[thin_dump tool: [[autodetect]]]),
|
||||
THIN_DUMP_CMD=$withval, THIN_DUMP_CMD="autodetect")
|
||||
AC_ARG_WITH(thin-repair,
|
||||
AC_HELP_STRING([--with-thin-repair=PATH],
|
||||
[thin_repair tool: [[thin_repair]]]),
|
||||
THIN_REPAIR_CMD=$withval, THIN_REPAIR_CMD="thin_repair")
|
||||
[thin_repair tool: [[autodetect]]]),
|
||||
THIN_REPAIR_CMD=$withval, THIN_REPAIR_CMD="autodetect")
|
||||
|
||||
AC_MSG_RESULT($THIN)
|
||||
|
||||
@ -438,29 +438,29 @@ esac
|
||||
case "$THIN" in
|
||||
internal|shared)
|
||||
# Empty means a config way to ignore thin checking
|
||||
if test "$THIN_CHECK_CMD" = "thin_check"; then
|
||||
AC_PATH_TOOL(THIN_CHECK_CMD, thin_check, thin_check)
|
||||
test "$THIN_CHECK_CMD" = "thin_check" && {
|
||||
if test "$THIN_CHECK_CMD" = "autodetect"; then
|
||||
AC_PATH_TOOL(THIN_CHECK_CMD, thin_check)
|
||||
test -z "$THIN_CHECK_CMD" && {
|
||||
AC_MSG_WARN([thin_check not found in path $PATH])
|
||||
THIN_CHECK_CMD=thin_check
|
||||
THIN_CHECK_CMD=/usr/sbin/thin_check
|
||||
THIN_CONFIGURE_WARN=y
|
||||
}
|
||||
fi
|
||||
# Empty means a config way to ignore thin checking
|
||||
if test "$THIN_DUMP_CMD" = "thin_dump"; then
|
||||
AC_PATH_TOOL(THIN_DUMP_CMD, thin_dump, thin_dump)
|
||||
test "$THIN_DUMP_CMD" = "thin_dump" && {
|
||||
if test "$THIN_DUMP_CMD" = "autodetect"; then
|
||||
AC_PATH_TOOL(THIN_DUMP_CMD, thin_dump)
|
||||
test -z "$THIN_DUMP_CMD" && {
|
||||
AC_MSG_WARN(thin_dump not found in path $PATH)
|
||||
THIN_DUMP_CMD=thin_dump
|
||||
THIN_DUMP_CMD=/usr/sbin/thin_dump
|
||||
THIN_CONFIGURE_WARN=y
|
||||
}
|
||||
fi
|
||||
# Empty means a config way to ignore thin checking
|
||||
if test "$THIN_REPAIR_CMD" = "thin_repair"; then
|
||||
if test "$THIN_REPAIR_CMD" = "autodetect"; then
|
||||
AC_PATH_TOOL(THIN_REPAIR_CMD, thin_repair)
|
||||
test -z "$THIN_REPAIR_CMD" && {
|
||||
AC_MSG_WARN(thin_repair not found in path $PATH)
|
||||
THIN_REPAIR_CMD=thin_repair
|
||||
THIN_REPAIR_CMD=/usr/sbin/thin_repair
|
||||
THIN_CONFIGURE_WARN=y
|
||||
}
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user