* Do calendar support only if libical header *and* library are present
[citadel.git] / citadel / citadel.h
index b64cb7726bbd2ecee5423531d5deaf7493d554e1..74fb0bf9779fca9ec81349e0e6112cab965db9bb 100644 (file)
 #ifndef CITADEL_H
 #define CITADEL_H
 
+/* Build Citadel with the calendar service only if the header *and*
+ * library for libical are both present.
+ */
+#ifdef HAVE_LIBICAL
+#ifdef HAVE_ICAL_H
+#define CITADEL_WITH_CALENDAR_SERVICE 1
+#endif
+#endif
+
 #include "sysdep.h"
 #include <limits.h>
 #include "sysconfig.h"