summaryrefslogtreecommitdiff
path: root/server/external/selinux.m4
blob: 0c5d5294e55729a65f7ff0c66c2472b1b2007963 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
dnl A macro to check the availability of SELinux
AC_DEFUN([AM_CHECK_SELINUX],
[
    AC_CHECK_HEADERS(selinux/selinux.h,
                     [AC_CHECK_LIB(selinux, is_selinux_enabled,
                                            [SELINUX_LIBS="-lselinux"],
                                            [AC_MSG_ERROR([SELinux library is missing])]
                                  )
                     ],
                     [AC_MSG_ERROR([SELinux headers are missing])])
    AC_SUBST(SELINUX_LIBS)
])