Update of /cvsroot/mach/mach2
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv6323
Modified Files:
configure.ac
Log Message:
support different prototype for lsetfilecon in f21
Index: configure.ac
===================================================================
RCS file: /cvsroot/mach/mach2/configure.ac,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** configure.ac 8 Mar 2015 21:38:41 -0000 1.5
--- configure.ac 8 Mar 2015 22:19:17 -0000 1.6
***************
*** 182,185 ****
--- 182,207 ----
fi
+ if test "x${enable_selinux}" = "xyes";
+ then
+ # detect prototype of lsetfilecon
+ AC_MSG_CHECKING([for lsetfilecon prototype with security_context_t])
+ AC_COMPILE_IFELSE(
+ [
+ AC_LANG_PROGRAM(
+ [[#include <selinux/selinux.h>]],
+ [[extern int lsetfilecon (const char * path, security_context_t con);]]
+ )],
+ [
+ AC_MSG_RESULT([yes])
+ AC_DEFINE_UNQUOTED([HAVE_LSETFILECON_TYPED], 1,
+ [Define to 1 if lsetfilecon takes security_context_t as second arg.])
+ ],
+ [
+ AC_MSG_RESULT([no])
+ AC_DEFINE_UNQUOTED([HAVE_LSETFILECON_TYPED], 0,
+ [Define to 1 if lsetfilecon takes security_context_t as second arg.])
+ ]
+ )
+ fi
AS_AC_EXPAND(DEFAULTROOT, $defaultroot)
|