From ec23b9bece4780a2031eedf23019cbb229e855fb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 14 Jun 2005 22:52:30 +0000 Subject: * configure.in: Add test for availability of libaudit. * config.h.in: Define HAVE_LIBAUDIT. * config.make.in: Define have-libaudit. * nscd/Makefile: If libaudit is available, link nscd with it. * nscd/selinux.c: If HAVE_LIBAUDIT is defined, log using libaudit. Patch by Steve Grubb . --- configure.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 503611a6b9..5f46b5e4ef 100644 --- a/configure.in +++ b/configure.in @@ -1938,6 +1938,14 @@ fi # Check if we're building with SELinux support. if test "x$have_selinux" = xyes; then AC_DEFINE(HAVE_SELINUX,1,[SELinux support]) + + # See if we have the libaudit library + AC_CHECK_LIB(audit, audit_log_avc, + have_libaudit=yes, have_libaudit=no) + if test "x$have_libaudit" = xyes; then + AC_DEFINE(HAVE_LIBAUDIT,1,[SELinux libaudit support]) + fi + AC_SUBST(have_libaudit) fi AC_SUBST(have_selinux) -- cgit v1.2.3