Undo the logic around enable sha as its enabled by default already.

This commit is contained in:
Anthony Hu
2022-03-14 16:29:13 -04:00
parent 821e293ed4
commit b3319bd952

View File

@@ -3512,26 +3512,21 @@ AC_ARG_ENABLE([md5],
[ ENABLED_MD5=yes ] [ ENABLED_MD5=yes ]
) )
# SHA # SHA
AC_ARG_ENABLE([sha], AC_ARG_ENABLE([sha],
[AS_HELP_STRING([--enable-sha],[Enable SHA (default: enabled)])], [AS_HELP_STRING([--enable-sha],[Enable SHA (default: enabled)])],
[ ENABLED_SHA=$enableval ], [ ENABLED_SHA=$enableval ],
[ ENABLED_SHA=yes ] [ ENABLED_SHA=yes ]
) )
if test "$ENABLED_SHA" = "no"
if test "$ENABLED_WOLFENGINE" = "no"
then then
if test "$ENABLED_SHA" = "no" AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
else
# turn off SHA if leanpsk or leantls on
if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_LEANTLS" = "yes"
then then
AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS" AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
else ENABLED_SHA=no
# turn off SHA if leanpsk or leantls on
if test "$ENABLED_LEANPSK" = "yes" || test "$ENABLED_LEANTLS" = "yes"
then
AM_CFLAGS="$AM_CFLAGS -DNO_SHA -DNO_OLD_TLS"
ENABLED_SHA=no
fi
fi fi
fi fi