Add 'whenjobs --tail <serial>' to tail output messages from jobs.
[whenjobs.git] / configure.ac
index 2b90666..b74eb8a 100644 (file)
 # 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([whenjobs],0.0.1)
+AC_INIT([whenjobs],0.0.4)
 AM_INIT_AUTOMAKE([foreign])
 
+dnl Only used temporarily while whenjobs.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.
@@ -86,26 +90,33 @@ fi
 
 dnl OCaml ocamlnet RPC library + dependencies (version 3) is required.
 AC_CHECK_OCAML_PKG(rpc)
-if test "x$OCAML_PKG_rpc" = "xno"; then
+if test "x$OCAML_PKG_rpc" = "x"; then
     AC_MSG_ERROR([You must install OCaml ocamlnet library version 3])
 fi
 
 AC_CHECK_PROG(OCAMLRPCGEN,ocamlrpcgen,ocamlrpcgen)
-if test "x$OCAMLRPCGEN" = "xno"; then
+if test "x$OCAMLRPCGEN" = "x"; then
     AC_MSG_ERROR([You must install the ocamlrpcgen program])
 fi
 
 dnl Check for POD (for manual pages).
 AC_CHECK_PROG(PERLDOC,perldoc,perldoc)
-if test "x$PERLDOC" = "xno"; then
+if test "x$PERLDOC" = "x"; then
     AC_MSG_ERROR([You must install the perldoc program])
 fi
 
+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
                  daemon/Makefile
                  lib/config.ml
                  lib/Makefile
+                 tests/jobs/Makefile
                  tests/parsing/Makefile
                  tools/Makefile
                  whenjobs.spec])