@@ -124,6 +124,7 @@ AC_CHECK_LIB([network],[socket])
124124AC_C_BIGENDIAN
125125AC_C___ATOMIC
126126AC_CHECK_HEADER ( stdatomic.h , [ AM_CPPFLAGS="$AM_CPPFLAGS -DWOLFSSL_HAVE_ATOMIC_H"] ,[ ] )
127+ AC_CHECK_HEADER ( assert.h , [ AM_CPPFLAGS="$AM_CPPFLAGS -DWOLFSSL_HAVE_ASSERT_H"] ,[ ] )
127128
128129# check if functions of interest are linkable, but also check if
129130# they're declared by the expected headers, and if not, supersede the
@@ -1212,6 +1213,16 @@ then
12121213 esac
12131214fi
12141215
1216+ # 32 bit armasm and RISC-V asm don't yet support WOLFSSL_AESGCM_STREAM. Disable
1217+ # implicit activation, and error on explicit activation.
1218+ if test "$enable_riscv_asm" = "yes" || (test "$enable_armasm" = "yes" && test "$host_cpu" != "aarch64" && test "$host_cpu" != "aarch64_be")
1219+ then
1220+ if test "$enable_aesgcm_stream" = "yes"
1221+ then
1222+ AC_MSG_ERROR ( [ 32 bit armasm and RISC-V asm don't yet support WOLFSSL_AESGCM_STREAM.] )
1223+ fi
1224+ enable_aesgcm_stream=no
1225+ fi
12151226
12161227# All wolfCrypt features:
12171228AC_ARG_ENABLE ( [ all-crypto] ,
60586069
60596070# CHACHA
60606071AC_ARG_ENABLE ( [ chacha] ,
6061- [ AS_HELP_STRING ( [ --enable-chacha] ,[ Enable CHACHA (default: enabled). Use `=noasm` to disable ASM AVX/AVX2 speedups] ) ] ,
6072+ [ AS_HELP_STRING ( [ --enable-chacha] ,[ Enable CHACHA (default: enabled). Use `=noasm` to disable asm speedups] ) ] ,
60626073 [ ENABLED_CHACHA=$enableval ] ,
60636074 [ ENABLED_CHACHA=$CHACHA_DEFAULT]
60646075 )
@@ -9744,7 +9755,12 @@ if test "$ENABLED_AESGCM_STREAM" != "no"
97449755then
97459756 if test "$ENABLED_AESGCM" = "no"
97469757 then
9747- AC_MSG_ERROR ( [ AES-GCM streaming enabled but AES-GCM is disabled] )
9758+ AC_MSG_ERROR ( [ AES-GCM streaming is enabled but AES-GCM is disabled.] )
9759+ elif test "$ENABLED_RISCV_ASM" = "yes" || \
9760+ (test "$ENABLED_ARMASM" = "yes" && \
9761+ test "$host_cpu" != "aarch64" && test "$host_cpu" != "aarch64_be")
9762+ then
9763+ AC_MSG_ERROR ( [ 32 bit armasm and RISC-V asm don't yet support WOLFSSL_AESGCM_STREAM.] )
97489764 else
97499765 AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AESGCM_STREAM"
97509766 AM_CCASFLAGS="$AM_CCASFLAGS -DWOLFSSL_AESGCM_STREAM"
@@ -10156,6 +10172,7 @@ AM_CONDITIONAL([BUILD_SHA224],[test "x$ENABLED_SHA224" = "xyes" || test "x$ENABL
1015610172AM_CONDITIONAL([ BUILD_SHA3] ,[ test "x$ENABLED_SHA3" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1015710173AM_CONDITIONAL([ BUILD_POLY1305] ,[ test "x$ENABLED_POLY1305" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1015810174AM_CONDITIONAL([ BUILD_CHACHA] ,[ test "x$ENABLED_CHACHA" = "xyes" || test "x$ENABLED_CHACHA" = "xnoasm" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
10175+ AM_CONDITIONAL([ BUILD_CHACHA_NOASM] ,[ test "$ENABLED_CHACHA" = "noasm"] )
1015910176AM_CONDITIONAL([ BUILD_XCHACHA] ,[ test "x$ENABLED_XCHACHA" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1016010177AM_CONDITIONAL([ BUILD_ASCON] ,[ test "x$ENABLED_ASCON" = "xyes" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
1016110178AM_CONDITIONAL([ BUILD_SM2] ,[ test "x$ENABLED_SM2" != "xno" || test "x$ENABLED_USERSETTINGS" = "xyes"] )
0 commit comments