aboutsummaryrefslogtreecommitdiffstats
path: root/wombat
diff options
context:
space:
mode:
Diffstat (limited to 'wombat')
-rw-r--r--wombat/Makefile.am2
-rw-r--r--wombat/wombat.c8
2 files changed, 9 insertions, 1 deletions
diff --git a/wombat/Makefile.am b/wombat/Makefile.am
index 6ab086d667..002ce7d355 100644
--- a/wombat/Makefile.am
+++ b/wombat/Makefile.am
@@ -25,7 +25,7 @@ wombat_LDADD = \
$(top_builddir)/calendar/cal-util/libcalutil.la \
$(top_builddir)/libversit/libversit.la \
$(top_builddir)/e-util/libeutil.la \
- -lgnomevfs
+ -lgnomevfs $(LDAP_LIBS)
wombat_LDFLAGS = `gnome-config --libs gnorba`
diff --git a/wombat/wombat.c b/wombat/wombat.c
index 5e4ad25173..989df9b484 100644
--- a/wombat/wombat.c
+++ b/wombat/wombat.c
@@ -9,6 +9,9 @@
#include <bonobo.h>
#include <pas-book-factory.h>
#include <pas-backend-file.h>
+#ifdef HAVE_LDAP
+#include <pas-backend-ldap.h>
+#endif
#include <libgnomevfs/gnome-vfs-init.h>
#include <libgnorba/gnorba.h>
#include <cal-factory.h>
@@ -27,6 +30,11 @@ setup_pas (int argc, char **argv)
pas_book_factory_register_backend (
factory, "file", pas_backend_file_new);
+#ifdef HAVE_LDAP
+ pas_book_factory_register_backend (
+ factory, "ldap", pas_backend_ldap_new);
+#endif
+
pas_book_factory_activate (factory);
}