X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=37af419b76342b0edad617766b20a46fe3659f47;hb=fb4f336f7830e0572689ffcb4d5362dab0bea7dc;hp=d0dcf829d7cc4222a462c436128c1c3a9a3b871c;hpb=55c3a7d9b2bffa53b519be5a319565e311f8d7e6;p=goaljobs.git diff --git a/configure.ac b/configure.ac index d0dcf82..37af419 100644 --- a/configure.ac +++ b/configure.ac @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -AC_INIT([goaljobs],[0.1]) +AC_INIT([goaljobs],[0.2]) AM_INIT_AUTOMAKE([foreign]) dnl Only used temporarily while goaljobs.spec is contained in the @@ -82,16 +82,34 @@ 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 AC_MSG_ERROR([You must install the 'curl' program]) fi +dnl ocamldoc (optional) +AM_CONDITIONAL([HAVE_OCAMLDOC], + [test "x$OCAMLDOC" != "xno"]) + dnl Check for POD (for manual pages). -AC_CHECK_PROG(PERLDOC,perldoc,perldoc) -if test "x$PERLDOC" = "x"; then - AC_MSG_ERROR([You must install the perldoc program]) +AC_CHECK_PROG(POD2MAN,pod2man,pod2man,no) +if test "x$POD2MAN" = "x"; then + AC_MSG_ERROR([You must install the 'pod2man' program]) +fi +AM_CONDITIONAL([HAVE_POD2MAN], + [test "x$POD2MAN" != "xno"]) + +dnl Check for mailx (for sending email). +AC_CHECK_PROG(MAILX,mailx,mailx) +if test "x$MAILX" = "x"; then + AC_MSG_ERROR([You must install the mailx program]) fi AC_CONFIG_HEADERS([config.h])