1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-03-10 16:58:47 +03:00

configure: fix use of withval

Newly added option --with-default-use-devices-file needs to use withval.
This commit is contained in:
Zdenek Kabelac 2021-10-15 23:33:59 +02:00
parent bf87b8354d
commit 8aefd97252
2 changed files with 2 additions and 3 deletions

3
configure vendored
View File

@ -8467,11 +8467,10 @@ $as_echo_n "checking default for use_devicesfile... " >&6; }
# Check whether --with-default-use-devices-file was given. # Check whether --with-default-use-devices-file was given.
if test "${with_default_use_devices_file+set}" = set; then : if test "${with_default_use_devices_file+set}" = set; then :
withval=$with_default_use_devices_file; DEFAULT_USE_DEVICES_FILE=$enableval withval=$with_default_use_devices_file; DEFAULT_USE_DEVICES_FILE=$withval
else else
DEFAULT_USE_DEVICES_FILE=0 DEFAULT_USE_DEVICES_FILE=0
fi fi
case "$DEFAULT_USE_DEVICES_FILE" in case "$DEFAULT_USE_DEVICES_FILE" in
0|1);; 0|1);;
*) as_fn_error $? "--with-default-use-devices-file parameter invalid" "$LINENO" 5;; *) as_fn_error $? "--with-default-use-devices-file parameter invalid" "$LINENO" 5;;

View File

@ -290,7 +290,7 @@ dnl -- Default settings for lvm.conf { devices/use_devicesfile }
AC_MSG_CHECKING(default for use_devicesfile) AC_MSG_CHECKING(default for use_devicesfile)
AC_ARG_WITH(default-use-devices-file, AC_ARG_WITH(default-use-devices-file,
AS_HELP_STRING([--with-default-use-devices-file], [default for lvm.conf devices/use_devicesfile = [0]]), AS_HELP_STRING([--with-default-use-devices-file], [default for lvm.conf devices/use_devicesfile = [0]]),
DEFAULT_USE_DEVICES_FILE=$enableval, DEFAULT_USE_DEVICES_FILE=0) DEFAULT_USE_DEVICES_FILE=$withval, DEFAULT_USE_DEVICES_FILE=0)
case "$DEFAULT_USE_DEVICES_FILE" in case "$DEFAULT_USE_DEVICES_FILE" in
0|1);; 0|1);;
*) AC_MSG_ERROR([--with-default-use-devices-file parameter invalid]);; *) AC_MSG_ERROR([--with-default-use-devices-file parameter invalid]);;