From be6478d45d2d5c57bc30ca83d14b7b1ef6ed5ce6 Mon Sep 17 00:00:00 2001 From: Colin Watson Date: Fri, 27 Oct 2006 10:42:44 +0000 Subject: Incorporate Manoj's NMU: * NMU to update SELinux patch, bringing it in line with current selinux releases. The patch for this NMU is simply the Bug#394795 patch, and no other changes. (closes: #394795) --- configure.ac | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 7b723799e..aa12fabce 100644 --- a/configure.ac +++ b/configure.ac @@ -2986,15 +2986,25 @@ int main() # Check whether user wants SELinux support SELINUX_MSG="no" +LIBSELINUX="" AC_ARG_WITH(selinux, - [ --with-selinux Enable SELinux support], + [ --with-selinux[[=LIBSELINUX-PATH]] Enable SELinux support], [ if test "x$withval" != "xno" ; then - AC_DEFINE(WITH_SELINUX, 1, [Define if you want SELinux support.]) + if test "x$withval" != "xyes"; then + CPPFLAGS="$CPPFLAGS -I${withval}/include" + if test -n "${need_dash_r}"; then + LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" + else + LDFLAGS="-L${withval}/lib ${LDFLAGS}" + fi + fi + AC_DEFINE(WITH_SELINUX,1,[Define if you want SELinux support.]) SELINUX_MSG="yes" AC_CHECK_HEADERS(selinux/selinux.h) - LIBS="$LIBS -lselinux" + LIBSELINUX="-lselinux" fi ]) +AC_SUBST(LIBSELINUX) # Check whether user wants Kerberos 5 support KRB5_MSG="no" -- cgit v1.2.3