]> code.citadel.org Git - citadel.git/blobdiff - webcit/configure.ac
HUGE PATCH. This moves all of mime_parser.c and all
[citadel.git] / webcit / configure.ac
index 5f1b9a02ebf380d7731dcb9fd8d00d8fb5ab6ba0..d8c30e82d586008e26d8b4aab3a8a9ece4e5bc70 100644 (file)
@@ -100,6 +100,25 @@ AC_TYPE_SIGNAL
 dnl AC_FUNC_VPRINTF
 AC_REPLACE_FUNCS(snprintf)
 
+
+dnl Check for libcitadel
+AC_CHECK_HEADER(libcitadel.h,
+       [AC_CHECK_LIB(citadel, libcitadel_version_string,
+               [
+                       AC_MSG_RESULT(OK)
+                       LIBS="-lcitadel $LIBS"
+               ],
+               [
+                       AC_MSG_ERROR(libcitadel was not found or is not usable.  Please install libcitadel.)
+               ]
+       ,
+       )],
+       [
+               AC_MSG_ERROR(libcitadel.h was not found or is not usable.  Please install libcitadel.)
+       ]
+)
+
+
 webcit_with_calendar_service=no
 dnl Checks for the libical calendaring library.
 if test "x$with_libical" != xno ; then