]> git.sur5r.net Git - openldap/commitdiff
ITS#4372 add auditlog to build
authorHoward Chu <hyc@openldap.org>
Mon, 27 Feb 2006 11:20:08 +0000 (11:20 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 27 Feb 2006 11:20:08 +0000 (11:20 +0000)
configure.in
servers/slapd/overlays/Makefile.in

index 6b287412069778d1c6b561cf5e3448f32edba115..95e7bb0b64d6b2a3302cedd6e99604f73c17799b 100644 (file)
@@ -338,6 +338,7 @@ OL_ARG_ENABLE(sql,[    --enable-sql   enable sql backend],
 dnl ----------------------------------------------------------------
 dnl SLAPD Overlay Options
 Overlays="accesslog \
+       auditlog \
        dds \
        denyop \
        dyngroup \
@@ -361,6 +362,8 @@ OL_ARG_ENABLE(overlays,[    --enable-overlays         enable all available overlays],
        --, [no yes mod])dnl
 OL_ARG_ENABLE(accesslog,[    --enable-accesslog          In-Directory Access Logging overlay],
        no, [no yes mod], ol_enable_overlays)
+OL_ARG_ENABLE(auditlog,[    --enable-auditlog    Audit Logging overlay],
+       no, [no yes mod], ol_enable_overlays)
 OL_ARG_ENABLE(dds,[    --enable-dds      Dynamic Directory Services overlay],
        no, [no yes mod], ol_enable_overlays)
 OL_ARG_ENABLE(denyop,[    --enable-denyop        Deny Operation overlay],
@@ -618,6 +621,7 @@ BUILD_SHELL=no
 BUILD_SQL=no
 
 BUILD_ACCESSLOG=no
+BUILD_AUDITLOG=no
 BUILD_DDS=no
 BUILD_DENYOP=no
 BUILD_DYNGROUP=no
@@ -2872,6 +2876,18 @@ if test "$ol_enable_accesslog" != no ; then
        AC_DEFINE_UNQUOTED(SLAPD_OVER_ACCESSLOG,$MFLAG,[define for In-Directory Access Logging overlay])
 fi
 
+if test "$ol_enable_auditlog" != no ; then
+       BUILD_AUDITLOG=$ol_enable_auditlog
+       if test "$ol_enable_auditlog" = mod ; then
+               MFLAG=SLAPD_MOD_DYNAMIC
+               SLAPD_DYNAMIC_OVERLAYS="$SLAPD_DYNAMIC_OVERLAYS auditlog.la"
+       else
+               MFLAG=SLAPD_MOD_STATIC
+               SLAPD_STATIC_OVERLAYS="$SLAPD_STATIC_OVERLAYS auditlog.o"
+       fi
+       AC_DEFINE_UNQUOTED(SLAPD_OVER_AUDITLOG,$MFLAG,[define for Audit Logging overlay])
+fi
+
 if test "$ol_enable_dds" != no ; then
        BUILD_DDS=$ol_enable_dds
        if test "$ol_enable_dds" = mod ; then
@@ -3113,6 +3129,7 @@ dnl backends
   AC_SUBST(BUILD_SQL)
 dnl overlays
   AC_SUBST(BUILD_ACCESSLOG)
+  AC_SUBST(BUILD_AUDITLOG)
   AC_SUBST(BUILD_DDS)
   AC_SUBST(BUILD_DENYOP)
   AC_SUBST(BUILD_DYNGROUP)
index eb7a15f4f1499a362d671873259b43794782fbb8..ef77a0e2ee6faa036cb51700b3f96c64901068ae 100644 (file)
@@ -15,6 +15,7 @@
 
 SRCS = overlays.c \
        accesslog.c \
+       auditlog.c \
        dds.c \
        denyop.c \
        dyngroup.c \
@@ -61,6 +62,9 @@ dynamic: $(PROGRAMS)
 accesslog.la : accesslog.lo
        $(LTLINK_MOD) -module -o $@ accesslog.lo version.lo $(LINK_LIBS)
 
+auditlog.la : auditlog.lo
+       $(LTLINK_MOD) -module -o $@ auditlog.lo version.lo $(LINK_LIBS)
+
 dds.la : dds.lo
        $(LTLINK_MOD) -module -o $@ dds.lo version.lo $(LINK_LIBS)