Check for 'diff' program (now required to run tests).
authorRichard W.M. Jones <rich@annexia.org>
Wed, 27 Aug 2008 12:54:57 +0000 (12:54 +0000)
committerRichard W.M. Jones <rich@annexia.org>
Wed, 27 Aug 2008 12:54:57 +0000 (12:54 +0000)
bitstring_config.ml.in
configure.ac

index 4d67990..d079a75 100644 (file)
@@ -30,3 +30,5 @@ let nativeendian = Bitstring_types.@NATIVEENDIAN@
 let package = "@PACKAGE_NAME@"
 let version = "@PACKAGE_VERSION@"
 let ocamllibdir = "@OCAMLLIB@"
+
+let diff = "@DIFF@"
index 7a7f0e1..c102d42 100644 (file)
@@ -78,6 +78,13 @@ if test "x$TIME" = "xno"; then
     AC_MSG_ERROR(['time' command not found])
 fi
 
+dnl Check for diff and get full path.
+AC_PATH_PROG(DIFF,diff,no)
+if test "x$DIFF" = "xno"; then
+    AC_MSG_ERROR(['diff' command not found])
+fi
+AC_SUBST(DIFF)
+
 dnl Check for gprof (optional).
 AC_CHECK_PROG(GPROF,gprof,gprof,no)