From 7034a913fd212ecfb157c1596afda191b4a0d167 Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Thu, 4 Sep 2008 22:34:20 +0000 Subject: [PATCH] * configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER, AUDIT_ADD_GROUP, and AUDIT_DEL_GROUP are defined in . --- ChangeLog | 5 +++++ configure.in | 9 +++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index f810e20e..d72f60bc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-09-05 Nicolas François + + * configure.in: Check if AUDIT_ADD_USER, AUDIT_DEL_USER, + AUDIT_ADD_GROUP, and AUDIT_DEL_GROUP are defined in . + 2008-09-04 Nicolas François * src/useradd.c: Fix comment of lflg: it is also used for faillog. diff --git a/configure.in b/configure.in index 5e6151be..fd2bba70 100644 --- a/configure.in +++ b/configure.in @@ -292,6 +292,15 @@ if test "$with_audit" != "no"; then if test "$audit_header$with_audit" = "noyes" ; then AC_MSG_ERROR([libaudit.h is missing]) elif test "$audit_header" = "yes"; then + AC_CHECK_DECL(AUDIT_ADD_USER,,[audit_header="no"],[#include ]) + AC_CHECK_DECL(AUDIT_DEL_USER,,[audit_header="no"],[#include ]) + AC_CHECK_DECL(AUDIT_ADD_GROUP,,[audit_header="no"],[#include ]) + AC_CHECK_DECL(AUDIT_DEL_GROUP,,[audit_header="no"],[#include ]) + if test "$audit_header$with_audit" = "noyes" ; then + AC_MSG_ERROR([AUDIT_ADD_USER AUDIT_DEL_USER AUDIT_ADD_GROUP or AUDIT_DEL_GROUP missing from libaudit.h]) + fi + fi + if test "$audit_header" = "yes"; then AC_CHECK_LIB(audit, audit_log_acct_message, [audit_lib="yes"], [audit_lib="no"]) if test "$audit_lib$with_audit" = "noyes" ; then