SimDist/build
diff -u -r1.16 -r1.17
--- util.m4 23 Nov 2009 23:13:51 -0000 1.16
+++ util.m4 12 Jul 2010 22:43:46 -0000 1.17
@@ -88,6 +88,21 @@
])
+AC_DEFUN(AC_PROG_CMAKE, [
+
+dnl cmake
+AC_CHECK_PROG(have_cmake, cmake, yes, no)
+
+if test $have_cmake == "no"
+then
+ AC_MSG_ERROR(cmake was not found on this system)
+else
+ CMAKE=cmake
+ AC_SUBST(CMAKE)
+fi
+
+])
+
AC_DEFUN(AC_PROG_JAVA, [
dnl java (for ant bundled with LCIO)
@@ -149,13 +164,14 @@
])
-dnl cmake
-AC_DEFUN(AC_PROG_CMAKE, [
+AC_DEFUN(AC_PROG_HAVE_CMAKE, [
AC_CHECK_PROG(have_cmake, cmake, yes, no)
-if test $have_cmake == "yes"
+if test $have_cmake == "no"
then
+ AC_MSG_ERROR(cmake not found)
+else
CMAKE=cmake
AC_SUBST(CMAKE)
fi