summaryrefslogtreecommitdiff
path: root/m4
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-06-08 01:59:25 +0200
committerGuillem Jover <guillem@debian.org>2014-08-09 22:14:18 +0200
commit3ffc86f96b84794a238881631acb3c4947e3c082 (patch)
tree656a0d4860c75611fe995d09f0bd8fc87e44acf8 /m4
parent5362b6e879ee26323d8257e474d4c94a2b242592 (diff)
downloaddpkg-3ffc86f96b84794a238881631acb3c4947e3c082.tar.gz
libcompat: Add a setexecfilecon() function out from dpkg code
This is now a fallback implementation in case libselinux is too old.
Diffstat (limited to 'm4')
-rw-r--r--m4/dpkg-libs.m42
1 files changed, 2 insertions, 0 deletions
diff --git a/m4/dpkg-libs.m4 b/m4/dpkg-libs.m4
index 2f3b76c44..156da2f0b 100644
--- a/m4/dpkg-libs.m4
+++ b/m4/dpkg-libs.m4
@@ -92,6 +92,8 @@ if test "x$with_selinux" != "xno"; then
[AC_DEFINE([HAVE_SETEXECFILECON], [1],
[Define to 1 if SELinux setexecfilecon is present])
])
+ AM_CONDITIONAL(HAVE_SETEXECFILECON,
+ [test "x$ac_cv_lib_selinux_setexecfilecon" = "xyes"])
AC_CHECK_HEADER([selinux/selinux.h],,
[if test -n "$with_selinux"; then