Permalink
Browse files

Configure fails if md5 or md5sum are not installed

  • Loading branch information...
1 parent 5071d40 commit 09aa904d7ecacd93b46ed57cbe5cd35d4afa68d5 @samoht committed Mar 27, 2013
Showing with 11 additions and 0 deletions.
  1. +8 −0 configure
  2. +3 −0 configure.ac
View
@@ -4586,6 +4586,14 @@ fi
done
test -n "$MD5SUM" || MD5SUM="no"
+if test "x$MD5SUM" = "xno"; then
+
+ { { echo "$as_me:$LINENO: error: You must have either md5 or md5sum installed." >&5
+echo "$as_me: error: You must have either md5 or md5sum installed." >&2;}
+ { (exit 1); exit 1; }; }
+
+fi
+
for ac_prog in curl wget
do
View
@@ -36,6 +36,9 @@ AS_IF([test "x${enable_certificate-check}" = "xno"], [
])
AC_CHECK_PROGS(MD5SUM,[md5sum md5],no)
+AS_IF([test "x$MD5SUM" = "xno"], [
+ AC_MSG_ERROR([You must have either md5 or md5sum installed.])
+])
AC_CHECK_PROGS(FETCH,[curl wget],no)

0 comments on commit 09aa904

Please sign in to comment.