diff --git a/CMakeLists.txt b/CMakeLists.txt index a88c646cef..7ca7ecc623 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -67,6 +67,9 @@ if(SECP256K1_ENABLE_MODULE_ELLSWIFT) endif() if(SECP256K1_ENABLE_MODULE_SCHNORRSIG) + if(DEFINED SECP256K1_ENABLE_MODULE_EXTRAKEYS AND NOT SECP256K1_ENABLE_MODULE_EXTRAKEYS) + message(FATAL_ERROR "schnorrsig module requires explicitly disabled extrakeys module.") + endif() set(SECP256K1_ENABLE_MODULE_EXTRAKEYS ON) add_compile_definitions(ENABLE_MODULE_SCHNORRSIG=1) endif() diff --git a/configure.ac b/configure.ac index a88a0a2185..984f4250f4 100644 --- a/configure.ac +++ b/configure.ac @@ -393,6 +393,9 @@ if test x"$enable_module_ellswift" = x"yes"; then fi if test x"$enable_module_schnorrsig" = x"yes"; then + if test x"$enable_module_extrakeys" = x"no"; then + AC_MSG_ERROR("schnorrsig module requires explicitly disabled extrakeys module.") + fi enable_module_extrakeys=yes SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DENABLE_MODULE_SCHNORRSIG=1" fi