summaryrefslogtreecommitdiffstats
path: root/m4/selinux.m4
diff options
context:
space:
mode:
authorroot <root@buildsamba01.idm.lab.bos.redhat.com>2010-03-19 19:25:48 -0500
committerRich Megginson <rmeggins@redhat.com>2010-03-23 10:19:32 -0600
commit682529e7f8391744615b40a14852efd317936109 (patch)
tree906ac28baf86f97655acf29d988101b56c15758b /m4/selinux.m4
parent04a0bd9ada0b3dd8efae67b63421dfa31e15b051 (diff)
downloadds-682529e7f8391744615b40a14852efd317936109.tar.gz
ds-682529e7f8391744615b40a14852efd317936109.tar.xz
ds-682529e7f8391744615b40a14852efd317936109.zip
Bug 480787 - Autoconf parameter --with and --without
https://bugzilla.redhat.com/show_bug.cgi?id=480787 Resolves: bug 480787 Bug Description: Autoconf parameter --with and --without Fix Description: The configure script has been modified such that the --with-XXX and --without-XXX switches will work as --with-XXX=yes and --with-XXX=no, respectively. If the package is required and none of the switches are specified, it will default to "yes". The code that detects LDAPSDK and OpenLDAP conflicts has been updated. The help messages have been cleaned up. Reviewed by: rmeggins (and pushed by)
Diffstat (limited to 'm4/selinux.m4')
-rw-r--r--m4/selinux.m416
1 files changed, 10 insertions, 6 deletions
diff --git a/m4/selinux.m4 b/m4/selinux.m4
index de97c94e..5a574d18 100644
--- a/m4/selinux.m4
+++ b/m4/selinux.m4
@@ -22,13 +22,17 @@ AC_CHECKING(for SELinux)
# check for --with-selinux
AC_MSG_CHECKING(for --with-selinux)
-AC_ARG_WITH(selinux, [ --with-selinux Build SELinux policy],
+AC_ARG_WITH(selinux, AS_HELP_STRING([--with-selinux],[Build SELinux policy]),
[
- with_selinux=yes
- AC_MSG_RESULT(yes)
- AC_SUBST(with_selinux)
- if test ! -f "/usr/share/selinux/devel/Makefile"; then
- AC_MSG_ERROR([SELinux development tools (selinux-policy) not found])
+ if test "$withval" = "no"; then
+ AC_MSG_RESULT(no)
+ else
+ with_selinux=yes
+ AC_MSG_RESULT(yes)
+ AC_SUBST(with_selinux)
+ if test ! -f "/usr/share/selinux/devel/Makefile"; then
+ AC_MSG_ERROR([SELinux development tools (selinux-policy) not found])
+ fi
fi
],
AC_MSG_RESULT(no))