On goal failure, exit with correct error message and error code.
[goaljobs.git] / configure.ac
index 81ea6b7..755c339 100644 (file)
@@ -82,6 +82,12 @@ if test "x$OCAMLFIND" = "xno"; then
     AC_MSG_ERROR([You must install OCaml findlib (the ocamlfind command)])
 fi
 
+dnl OCaml calendar library is required.
+AC_CHECK_OCAML_PKG(calendar)
+if test "x$OCAML_PKG_calendar" = "xno"; then
+    AC_MSG_ERROR([You must install OCaml calendar library version 2])
+fi
+
 dnl Check for curl (for URL testing, downloads).
 AC_CHECK_PROG(CURL,curl,curl)
 if test "x$CURL" = "x"; then