summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexandre Rostovtsev <tetromino@gentoo.org>2012-09-25 17:38:37 -0400
committerRay Strode <rstrode@redhat.com>2013-07-30 08:48:54 -0400
commitff396710227fb95abb2edd413af70ef59a321a72 (patch)
treeabd5fe67e7773ac633c541104f8459424f0d10f4
parent913198da89528c4d9bc904cf3eb4ac72ba8f7693 (diff)
downloadgdm-ff396710227fb95abb2edd413af70ef59a321a72.tar.gz
configure: Make selinux support explicitly optional
-rw-r--r--configure.ac11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index bda20c66..7c3ca617 100644
--- a/configure.ac
+++ b/configure.ac
@@ -116,10 +116,17 @@ PKG_CHECK_MODULES(CANBERRA_GTK,
AC_SUBST(CANBERRA_GTK_CFLAGS)
AC_SUBST(CANBERRA_GTK_LIBS)
+AC_ARG_WITH(selinux,
+ AS_HELP_STRING([--with-selinux],
+ [Add SELinux support]),,
+ with_selinux=auto)
+
PKG_CHECK_MODULES(LIBSELINUX, libselinux, have_selinux=yes, have_selinux=no)
-if test "x$have_selinux" = "xyes" ; then
+use_selinux=no
+if test "x$have_selinux" = "xyes" && test "x$with_selinux" != "xno" ; then
AC_DEFINE(HAVE_SELINUX, 1, [Define if have selinux])
+ use_selinux=yes
fi
AC_SUBST(LIBSELINUX_CFLAGS)
AC_SUBST(LIBSELINUX_LIBS)
@@ -1613,7 +1620,7 @@ fi
echo \
" Xinerama support: ${XINERAMA_SUPPORT}
XDMCP support: ${XDMCP_SUPPORT}
- SELinux support: ${have_selinux}
+ SELinux support: ${use_selinux}
ConsoleKit support: ${use_console_kit}
systemd support: ${use_systemd}
systemd unit dir: ${with_systemdsystemunitdir}