[PATCH] configure: Fix behavior of --enable/disable-foo

2 views
Skip to first unread message

Jan Kiszka

unread,
Sep 24, 2022, 4:03:54 AM9/24/22
to efibootguard-dev
From: Jan Kiszka <jan.k...@siemens.com>

Do not define a bogus present action as this turns --enable-foo into
--disable-foo. Only set the default in non-present actions, also for
the completion option.

Signed-off-by: Jan Kiszka <jan.k...@siemens.com>
---
configure.ac | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 27c1b27..d8f9d3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -185,8 +185,7 @@ AC_DEFINE_UNQUOTED([ENV_MEM_USERVARS], [${ENV_MEM_USERVARS}], [Reserved memory f

AC_ARG_ENABLE([bootloader],
AS_HELP_STRING([--disable-bootloader], [Compile the bootloader disabled, only make the tools]),
- [enable_bootloader="no"],
- [enable_bootloader="yes"])
+ , [enable_bootloader="yes"])

dnl pkg-config
PKG_PROG_PKG_CONFIG()
@@ -206,7 +205,8 @@ AC_SUBST(LIBEBGENV_VERSION, $(echo $VERSION | cut -dv -f2))

dnl shell completion
AC_ARG_ENABLE([completion],
- AS_HELP_STRING([--disable-completion], [do not generate shell completion files]))
+ AS_HELP_STRING([--disable-completion], [do not generate shell completion files]),
+ , [enable_completion="yes"])

AS_IF([test "x$enable_completion" != "xno"],
[
--
2.35.3

Reply all
Reply to author
Forward
0 new messages