From b7fc158a2eb5433f178337773b4f9fd7805555d8 Mon Sep 17 00:00:00 2001 From: Samanta Navarro Date: Wed, 4 Nov 2020 11:35:00 +0000 Subject: [PATCH] whereis: add --disable-whereis to configure Allow a build of util-linux without whereis. Signed-off-by: Samanta Navarro --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9d4785c95c..a994376971 100644 --- a/configure.ac +++ b/configure.ac @@ -1651,7 +1651,11 @@ if test "x$matriplet" != "x"; then AC_DEFINE_UNQUOTED([MULTIARCHTRIPLET], ["$matriplet"], ["Multi-arch triplet for whereis library search path"]) fi -UL_BUILD_INIT([whereis], [yes]) +AC_ARG_ENABLE([whereis], + AS_HELP_STRING([--disable-whereis], [do not build whereis]), + [], [UL_DEFAULT_ENABLE([whereis], [check])] +) +UL_BUILD_INIT([whereis]) AM_CONDITIONAL([BUILD_WHEREIS], [test "x$build_whereis" = xyes]) UL_BUILD_INIT([getopt], [yes]) -- 2.47.2