/usr/share/aclocal/audit.m4 is in libaudit-dev 1:2.6.7-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | # audit.m4 - Checks for the libaudit support
# Copyright (c) 2015 Steve Grubb sgrubb@redhat.com
#
AC_DEFUN([AUDIT_PATH],
[
AC_ARG_WITH(audit,
[ --with-audit=[auto/yes/no] Add audit support [default=auto]],,
with_audit=auto)
# Check for libaudit API
#
# libaudit detection
if test "x$with_audit" = xno ; then
have_audit=no;
else
# Start by checking for header file
AC_CHECK_HEADER(audit.h, audit_headers=yes, audit_headers=no)
# See if we have libaudit library
AC_CHECK_LIB(audit, audit_open,
AUDIT_LDADD=-laudit,)
# Check that results are usable
if test "x$with_audit" = xyes -a "x$AUDIT_LDADD" = x ; then
AC_MSG_ERROR(audit support was requested and the library was not found)
fi
if test "x$AUDIT_LDADD" != x -a "$audit_headers" = no ; then
AC_MSG_ERROR(audit libraries found but headers are missing)
fi
fi
AC_SUBST(AUDIT_LDADD)
AC_MSG_CHECKING(whether to use audit)
if test "x$AUDIT_LDADD" != x ; then
AC_DEFINE(HAVE_AUDIT,1,[audit support])
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
])
|