#include "webcit.h"
#include "webserver.h"
-#ifndef WEBCIT_WITH_CALENDAR_SERVICE
-
-/**\brief stub for non-libical builds */
-void do_calendar_view(void) {
- wprintf("<center><i>");
- wprintf(_("The calendar view is not available."));
- wprintf("</i></center><br />\n");
-}
-
-/**\brief stub for non-libical builds */
-void do_tasks_view(void) {
- wprintf("<center><I>");
- wprintf(_("The tasks view is not available."));
- wprintf("</i></center><br />\n");
-}
-
-#else /* WEBCIT_WITH_CALENDAR_SERVICE */
+#ifdef WEBCIT_WITH_CALENDAR_SERVICE
/****************************************************************************/
}
+#else /* WEBCIT_WITH_CALENDAR_SERVICE */
+
+/**\brief stub for non-libical builds */
+void do_calendar_view(void) {
+ wprintf("<center><i>");
+ wprintf(_("The calendar view is not available."));
+ wprintf("</i></center><br />\n");
+}
+
+/**\brief stub for non-libical builds */
+void do_tasks_view(void) {
+ wprintf("<center><I>");
+ wprintf(_("The tasks view is not available."));
+ wprintf("</i></center><br />\n");
+}
+
+
#endif /* WEBCIT_WITH_CALENDAR_SERVICE */
/** @} */
dnl AC_FUNC_VPRINTF
AC_REPLACE_FUNCS(snprintf)
+webcit_with_calendar_service=no
dnl Checks for the libical calendaring library.
if test "x$with_libical" != xno ; then
AC_CHECK_HEADERS(ical.h,
[
LIBS="-lical $LIBS"
AC_DEFINE(HAVE_LIBICAL,[],[whether we have libical available])
+ webcit_with_calendar_service=yes
]
)
fi
-
+if test "$webcit_with_calendar_service" == "yes"; then
+ AC_DEFINE(WEBCIT_WITH_CALENDAR_SERVICE,[],[whether we can do with calendar.])
+fi
dnl Checks for the zlib compression library.
if test "x$with_zlib" != xno ; then