+if test "$ol_enable_monitor" != no ; then
+ AC_DEFINE(SLAPD_MONITOR,1,[define to support cn=Monitor backend])
+ BUILD_SLAPD=yes
+ BUILD_MONITOR=yes
+ if test "$ol_with_monitor_module" != static ; then
+ AC_DEFINE(SLAPD_MONITOR_DYNAMIC,1,
+ [define to support dynamic cn=Monitor backend])
+ BUILD_MONITOR=mod
+ BUILD_MONITOR_DYNAMIC=shared
+ SLAPD_MODULES_LIST="$SLAPD_MODULES_LIST -dlopen \$(SLAP_DIR)back-monitor/back_monitor.la"
+ fi
+fi
+