Skip to content

Commit b87af91

Browse files
committed
configure.ac: add handling for --enable-rng-bank, and add it to the all-crypto feature set.
1 parent b2199e9 commit b87af91

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

configure.ac

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,7 @@ then
14281428
test "$enable_md5" = "" && enable_md5=yes
14291429
test "$enable_anon" = "" && enable_anon=yes
14301430
test "$enable_ssh" = "" && test "$enable_hmac" != "no" && enable_ssh=yes
1431+
test "$enable_rng_bank" = "" && enable_rng_bank=yes
14311432

14321433
# the compiler optimizer generates a weird out-of-bounds bss reference for
14331434
# find_hole() in the FP_ECC implementation.
@@ -2208,6 +2209,19 @@ then
22082209
AM_CFLAGS="$AM_CFLAGS -DWC_NO_RNG"
22092210
fi
22102211

2212+
AC_ARG_ENABLE([rng-bank],
2213+
[AS_HELP_STRING([--enable-rng-bank],[Enable compiling and using RNG banks (default: disabled)])],
2214+
[ ENABLED_RNG_BANK=$enableval ],
2215+
[ ENABLED_RNG_BANK=$KERNEL_MODE_DEFAULTS ]
2216+
)
2217+
2218+
if test "$ENABLED_RNG_BANK" = "yes"
2219+
then
2220+
AS_IF([test "$ENABLED_RNG" = "no"],
2221+
AC_MSG_ERROR([--enable-rng-bank requires --enable-rng]))
2222+
AM_CFLAGS="$AM_CFLAGS -DWC_RNG_BANK_SUPPORT"
2223+
fi
2224+
22112225

22122226
# DTLS-SCTP
22132227
AC_ARG_ENABLE([sctp],

0 commit comments

Comments
 (0)