File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,9 @@ if test "x$standard_secp" = "xyes"; then
149149fi
150150
151151if test "x$minimal" = "xyes"; then
152+ if test "x$elements" = "xno"; then
153+ AC_MSG_FAILURE ( [ ERROR: Minimal mode requires Elements support to be enabled] )
154+ fi
152155 AX_CHECK_COMPILE_FLAG ( [ -DBUILD_MINIMAL=1] , [ AM_CFLAGS="$AM_CFLAGS -DBUILD_MINIMAL=1"] )
153156fi
154157
@@ -271,6 +274,9 @@ AC_ARG_WITH([system-secp256k1],
271274AM_CONDITIONAL([ LINK_SYSTEM_SECP256K1] , [ test "x$with_system_secp256k1" != xno] )
272275AM_COND_IF([ LINK_SYSTEM_SECP256K1] , [
273276 dnl Use the secp installed system-wide (after checking it for suitability)
277+ if test "x$minimal" = "xyes"; then
278+ AC_MSG_ERROR ( [ Minimal mode cannot be used with --with-system-secp256k1] )
279+ fi
274280 saved_LIBS=$LIBS
275281 m4_ifdef ( [ PKG_CHECK_MODULES] ,
276282 [ PKG_CHECK_MODULES([ libsecp256k1] , [ $with_system_secp256k1] )] ,
You can’t perform that action at this time.
0 commit comments