diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-19 09:56:52 +0100 |
---|---|---|
committer | Tobias Stoeckmann <tobias@stoeckmann.org> | 2024-01-19 17:47:19 +0100 |
commit | 1c9ddfb4c3825611bf1b06563a7bc9bb6dafe979 (patch) | |
tree | 06e6566527790926b5ab9ca6941ff836ccd93c9e | |
parent | 470b5bdd8fd29d6b35e3a80f9a57bdd4b2438200 (diff) | |
download | pam-1c9ddfb4c3825611bf1b06563a7bc9bb6dafe979.tar.gz pam-1c9ddfb4c3825611bf1b06563a7bc9bb6dafe979.tar.bz2 pam-1c9ddfb4c3825611bf1b06563a7bc9bb6dafe979.zip |
build: correctly set WITH_SELINUX conditional
React on actual test if SELinux is available, not just if SELinux
should be tested for.
Currently the supposedly disabled binaries are still installed even if
SELinux is not available.
Fixes: cb9f88ba944d ("pam_unix: build unix_update only with SELinux enabled")
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
-rw-r--r-- | configure.ac | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index b22ab5b7..2bbbdc47 100644 --- a/configure.ac +++ b/configure.ac @@ -529,12 +529,12 @@ fi AC_ARG_ENABLE([selinux], AS_HELP_STRING([--disable-selinux],[do not use SELinux]), WITH_SELINUX=$enableval, WITH_SELINUX=yes) -AM_CONDITIONAL([WITH_SELINUX], [test "$WITH_SELINUX" = "yes"]) if test "$WITH_SELINUX" = "yes" ; then AC_CHECK_LIB([selinux],[getfilecon], LIBSELINUX="-lselinux", LIBSELINUX="") else LIBSELINUX="" fi +AM_CONDITIONAL([WITH_SELINUX], [test -n "$LIBSELINUX"]) AC_SUBST(LIBSELINUX) if test -n "$LIBSELINUX" ; then AC_DEFINE([WITH_SELINUX], 1, [Defined if SE Linux support is compiled in]) |