diff --git a/configure.ac b/configure.ac index a823e1a1a..b46fe193b 100644 --- a/configure.ac +++ b/configure.ac @@ -3100,6 +3100,11 @@ AS_CASE([$SELFTEST_VERSION], ]) +# Set SHA-3 and SHAKE256 flags +if test "$ENABLED_SHA3" = "yes" && test "$ENABLED_32BIT" = "no" +then + AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_SHA3" +fi AS_IF([test "x$ENABLED_FIPS" = "xyes"],[ENABLED_SHAKE256="no"]) if test "$ENABLED_SHAKE256" = "yes" || test "$ENABLED_SHAKE256" = "small"