1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +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:
Zdenek Kabelac 2013-12-12 14:29:15 +01:00
parent fd0068a66e
commit b424b6398b

View File

@ -413,16 +413,16 @@ AC_ARG_WITH(thin,
THIN=$withval, THIN=internal) THIN=$withval, THIN=internal)
AC_ARG_WITH(thin-check, AC_ARG_WITH(thin-check,
AC_HELP_STRING([--with-thin-check=PATH], AC_HELP_STRING([--with-thin-check=PATH],
[thin_check tool: [[thin_check]]]), [thin_check tool: [[autodetect]]]),
THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="thin_check") THIN_CHECK_CMD=$withval, THIN_CHECK_CMD="autodetect")
AC_ARG_WITH(thin-dump, AC_ARG_WITH(thin-dump,
AC_HELP_STRING([--with-thin-dump=PATH], AC_HELP_STRING([--with-thin-dump=PATH],
[thin_dump tool: [[thin_dump]]]), [thin_dump tool: [[autodetect]]]),
THIN_DUMP_CMD=$withval, THIN_DUMP_CMD="thin_dump") THIN_DUMP_CMD=$withval, THIN_DUMP_CMD="autodetect")
AC_ARG_WITH(thin-repair, AC_ARG_WITH(thin-repair,
AC_HELP_STRING([--with-thin-repair=PATH], AC_HELP_STRING([--with-thin-repair=PATH],
[thin_repair tool: [[thin_repair]]]), [thin_repair tool: [[autodetect]]]),
THIN_REPAIR_CMD=$withval, THIN_REPAIR_CMD="thin_repair") THIN_REPAIR_CMD=$withval, THIN_REPAIR_CMD="autodetect")
AC_MSG_RESULT($THIN) AC_MSG_RESULT($THIN)
@ -438,29 +438,29 @@ esac
case "$THIN" in case "$THIN" in
internal|shared) internal|shared)
# Empty means a config way to ignore thin checking # Empty means a config way to ignore thin checking
if test "$THIN_CHECK_CMD" = "thin_check"; then if test "$THIN_CHECK_CMD" = "autodetect"; then
AC_PATH_TOOL(THIN_CHECK_CMD, thin_check, thin_check) AC_PATH_TOOL(THIN_CHECK_CMD, thin_check)
test "$THIN_CHECK_CMD" = "thin_check" && { test -z "$THIN_CHECK_CMD" && {
AC_MSG_WARN([thin_check not found in path $PATH]) 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 THIN_CONFIGURE_WARN=y
} }
fi fi
# Empty means a config way to ignore thin checking # Empty means a config way to ignore thin checking
if test "$THIN_DUMP_CMD" = "thin_dump"; then if test "$THIN_DUMP_CMD" = "autodetect"; then
AC_PATH_TOOL(THIN_DUMP_CMD, thin_dump, thin_dump) AC_PATH_TOOL(THIN_DUMP_CMD, thin_dump)
test "$THIN_DUMP_CMD" = "thin_dump" && { test -z "$THIN_DUMP_CMD" && {
AC_MSG_WARN(thin_dump not found in path $PATH) 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 THIN_CONFIGURE_WARN=y
} }
fi fi
# Empty means a config way to ignore thin checking # 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) AC_PATH_TOOL(THIN_REPAIR_CMD, thin_repair)
test -z "$THIN_REPAIR_CMD" && { test -z "$THIN_REPAIR_CMD" && {
AC_MSG_WARN(thin_repair not found in path $PATH) 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 THIN_CONFIGURE_WARN=y
} }
fi fi