Make sure MAX_ECC_BITS >= MIN_ECC_BITS

pull/7539/head
Andras Fekete 2024-05-15 15:19:13 -04:00
parent 35ef7f4093
commit b83d8f0cf6
1 changed files with 7 additions and 0 deletions

View File

@ -10011,3 +10011,10 @@ if test "$MINGW_LIB_WARNING" = "yes"
then
AC_MSG_WARN([Building with shared and static library at the same time on this system may cause export/import problems when using non contemporary GNU tools.])
fi
if test -n "$WITH_MAX_ECC_BITS"; then
if test "$WITH_MAX_ECC_BITS" -lt "$ENABLED_ECCMINSZ"; then
AC_MSG_ERROR([--with-max-ecc-bits argument ($WITH_MAX_ECC_BITS) must be greater than --with-eccminsz argument ($ENABLED_ECCMINSZ)])
fi
fi