[], [with_audit=no]
)
+have_audit=no
AS_IF([test "x$with_audit" = xno], [
AM_CONDITIONAL([HAVE_AUDIT], [false])
], [
- UL_CHECK_LIB([audit], [audit_log_user_message])
+ PKG_CHECK_MODULES([AUDIT], [audit], [have_audit=yes], [have_audit=no])
AS_CASE([$with_audit:$have_audit],
[yes:no],
- [AC_MSG_ERROR([Audit selected but libaudit not found (or does not support audit_log_user_message())])]
+ [AC_MSG_ERROR([Audit selected but libaudit not found])]
)
+ AS_IF([test "x$have_audit" = xyes], [
+ AC_DEFINE([HAVE_LIBAUDIT], [1], [Define if audit is available])
+ AM_CONDITIONAL([HAVE_AUDIT], [true])
+ ])
])
+AC_SUBST([AUDIT_LIBS])
AC_ARG_WITH([udev], AS_HELP_STRING([--without-udev], [compile without udev support]),
[], [with_udev=auto]