From: benrubson <6764151+benrubson@users.noreply.github.com> Date: Tue, 16 Jun 2020 21:42:12 +0000 (+0200) Subject: enh(configure) Promote OpenSSL crypto lib support X-Git-Tag: v3.2.0pre3~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6a22f4fee1b54c83d725830d3b8fb1d8cf94b7f2;p=thirdparty%2Frsync.git enh(configure) Promote OpenSSL crypto lib support --- diff --git a/configure.ac b/configure.ac index 03fad912..efce10d5 100644 --- a/configure.ac +++ b/configure.ac @@ -423,9 +423,18 @@ AC_ARG_ENABLE([openssl], AS_HELP_STRING([--disable-openssl],[disable openssl crypto library])) AH_TEMPLATE([USE_OPENSSL], [Undefine if you do not want to use openssl crypto library. By default this is defined.]) -if test x"$enable_openssl" != x"no" && test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then - AC_MSG_RESULT(yes) - AC_SEARCH_LIBS(MD5_Init, crypto, [AC_DEFINE(USE_OPENSSL)]) +if test x"$enable_openssl" != x"no"; then + if test x"$ac_cv_header_openssl_md4_h" = x"yes" && test x"$ac_cv_header_openssl_md5_h" = x"yes"; then + AC_MSG_RESULT(yes) + AC_SEARCH_LIBS(MD5_Init, crypto, + [AC_DEFINE(USE_OPENSSL)], + [AC_MSG_ERROR(Failed to find MD5_Init function in openssl crypto lib. +Use --disable-openssl to continue without openssl crypto lib support.)]) + else + AC_MSG_RESULT(no) + AC_MSG_ERROR(Failed to find openssl/md4.h and openssl/md5.h for openssl crypto lib support. +Use --disable-openssl to continue without it.) + fi else AC_MSG_RESULT(no) fi