X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=configure.ac;h=07dc899fbea2ace2df8185200461e7a37d695c3d;hb=e9b165e44b70da20ffc8ef258b7bae80fba78b7a;hp=1f3189bea5c5c5d28b408979717f35a16c1dd71d;hpb=153276d53f879786956bd7c2a4d3b97ef13c9adc;p=goaljobs.git diff --git a/configure.ac b/configure.ac index 1f3189b..07dc899 100644 --- a/configure.ac +++ b/configure.ac @@ -15,9 +15,13 @@ # 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.3]) AM_INIT_AUTOMAKE([foreign]) +dnl Only used temporarily while goaljobs.spec is contained in the +dnl tarball. We will remove this later. +AC_SUBST([RPM_RELEASE],[1]) + AC_CONFIG_MACRO_DIR([m4]) dnl Allow all GNU/Linux functions. @@ -78,14 +82,42 @@ 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]) -AC_CONFIG_FILES([Makefile +AC_CONFIG_FILES([goaljobs_config.ml + goaljobs.spec + Makefile + META examples/Makefile + examples/compile-c/Makefile tests/Makefile]) AC_OUTPUT