-webcit_with_calendar_service=no
-dnl Checks for the libical calendaring library.
-if test "x$with_libical" != xno ; then
- AC_CHECK_HEADERS(ical.h,
- [AC_CHECK_LIB(ical, icalcomponent_new,
- [ok_libical=yes],,
- )])
-fi
-
-if test "x$ok_libical" = xyes ; then
-
- AC_TRY_RUN(
- [
-#include <ical.h>
-main() {
- int major, minor, v;
- sscanf(ICAL_VERSION, "%d.%d", &major, &minor);
- v = 100*major + minor;
- printf("libical version: %i\n", v);
- if (v >= 30) {
- printf("This version is ok.\n");
- return(0);
- }
- printf("libical 0.30 or newer required.\n");
- printf("Citadel will be built without calendar support.\n");
- return(1);
-}
- ],
- [
- LIBS="-lical $LIBS"
- AC_DEFINE(HAVE_LIBICAL,[],[whether we have libical available])
- webcit_with_calendar_service=yes
- ]
- )
-fi
-ok_libical=$webcit_with_calendar_service
-
-
-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
- AC_CHECK_HEADERS(zlib.h,
- [AC_CHECK_LIB(z, zlibVersion,
- [ok_zlib=yes],,
- )])
-fi
-
-if test "x$ok_zlib" = xyes ; then
- LIBS="-lz $LIBS"
- AC_DEFINE(HAVE_ZLIB,[],[whether we have zlib])
-fi
-