summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--m4/jm-macros.m420
1 files changed, 11 insertions, 9 deletions
diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4
index cb9e90ee2..a96ecabb6 100644
--- a/m4/jm-macros.m4
+++ b/m4/jm-macros.m4
@@ -51,15 +51,17 @@ AC_DEFUN([coreutils_MACROS],
# Used by install.c.
AC_CHECK_FUNCS([matchpathcon_init_prefix], [],
[
- case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in
- no:*) # SELinux disabled
- ;;
- *:no) # SELinux disabled
- ;;
- *)
- AC_MSG_WARN([SELinux enabled, but matchpathcon_init_prefix not found])
- AC_MSG_WARN([The install utility may run slowly])
- esac
+ if test "$with_selinux" != no; then
+ case "$ac_cv_search_setfilecon:$ac_cv_header_selinux_selinux_h" in
+ no:*) # SELinux disabled
+ ;;
+ *:no) # SELinux disabled
+ ;;
+ *)
+ AC_MSG_WARN([SELinux enabled, but matchpathcon_init_prefix not found])
+ AC_MSG_WARN([The install utility may run slowly])
+ esac
+ fi
])
LIBS=$coreutils_saved_libs