X-Git-Url: https://git.librecmc.org/?p=oweals%2Fopkg-lede.git;a=blobdiff_plain;f=configure.ac;h=f65d70467eafd47cccc33f986f7df31ef57716f8;hp=967a4d5c6bac9a7f046d84a08488a36d7437018b;hb=733eb7729491810c346bbbecd31051ecc118fd82;hpb=d6025a6d1c91f80368f301029784cf2c5dd3273e diff --git a/configure.ac b/configure.ac index 967a4d5..f65d704 100644 --- a/configure.ac +++ b/configure.ac @@ -68,10 +68,19 @@ AC_ARG_ENABLE(sha256, (sha256.{c,h} are GPLv3 licensed) [[default=no]] ]), [want_sha256="$enableval"], [want_sha256="no"]) +AC_ARG_ENABLE(md5, + AC_HELP_STRING([--enable-md5], [Enable md5sum check + (md5.{c,h} are GPLv3 licensed) [[default=no]] ]), + [want_md5="$enableval"], [want_md5="yes"]) + if test "x$want_sha256" = "xyes"; then AC_DEFINE(HAVE_SHA256, 1, [Define if you want sha256 support]) fi +if test "x$want_md5" = "xyes"; then + AC_DEFINE(HAVE_MD5, 1, [Define if you want md5 support]) +fi AM_CONDITIONAL(HAVE_SHA256, test "x$want_sha256" = "xyes") +AM_CONDITIONAL(HAVE_MD5, test "x$want_md5" = "xyes") # check for openssl AC_ARG_ENABLE(openssl,