1 diff -Nru ipsec-tools-0.7-orig/configure.ac ipsec-tools-0.7/configure.ac
2 --- ipsec-tools-0.7-orig/configure.ac 2007-09-19 19:31:52.000000000 +0300
3 +++ ipsec-tools-0.7/configure.ac 2007-09-19 20:27:25.000000000 +0300
4 @@ -767,6 +767,11 @@
5 esac
6 AC_MSG_RESULT($kernel_secctx)
7
8 +enable_security_context="no"
9 +AC_CHECK_HEADER(selinux/selinux.h,
10 + [AC_CHECK_LIB(selinux, avc_init, [selinux_support=yes],
11 + [selinux_support=no])], [selinux_support=no])
12 +
13 AC_MSG_CHECKING(whether to support Security Context)
14 AC_ARG_ENABLE(security-context,
15 [ --enable-security-context enable Security Context(yes/no/kernel)],
16 @@ -779,10 +784,14 @@
17 if test "$kernel_secctx" = "no" ; then
18 AC_MSG_ERROR([Security Context requested, but no kernel support! Aborting.])
19 else
20 - AC_DEFINE([HAVE_SECCTX], [], [Enable Security Context])
21 - SECCTX_OBJS="security.o"
22 - AC_SUBST(SECCTX_OBJS)
23 - LIBS="$LIBS -lselinux"
24 + if test "$selinux_support" = "no"; then
25 + AC_MSG_ERROR([Security Context requested, but no selinux support! Aborting.])
26 + else
27 + AC_DEFINE([HAVE_SECCTX], [], [Enable Security Context])
28 + SECCTX_OBJS="security.o"
29 + AC_SUBST(SECCTX_OBJS)
30 + LIBS="$LIBS -lselinux"
31 + fi
32 fi
33 fi
34
|