On 01/21/2014 09:24 AM, Bernhard Voelker wrote: > In a git working tree (v8.22-15-g9a115f3): > > $ git clean -xdfq > $ ./bootstrap > ... > $ ./configure --quiet --without-selinux > configure: WARNING: SELinux enabled, but matchpathcon_init_prefix not found > configure: WARNING: The install utility may run slowly > config.status: creating po/POTFILES > config.status: creating po/Makefile > > Why is "SELinux enabled" although requested otherwise?
It's not really enabled I think and that's just an erroneous warning. Does the attached suppress it? thanks, Pádraig.
>From 9e513034eef6afa23b16254c68650ce87e886585 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= <[email protected]> Date: Tue, 21 Jan 2014 10:13:32 +0000 Subject: [PATCH] build: suppress an erroneous warning --with-selinux=no * m4/jm-macros.m4: Don't check the SELinux cached variables --without-selinux. Reported-by: Bernhard Voelker --- m4/jm-macros.m4 | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/m4/jm-macros.m4 b/m4/jm-macros.m4 index cb9e90e..0775048 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 + 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 -- 1.7.7.6
