@@ -188,6 +188,10 @@ AC_ARG_ENABLE(module_ellswift,
188188 AS_HELP_STRING ( [ --enable-module-ellswift] ,[ enable ElligatorSwift module [ default=yes] ] ) , [ ] ,
189189 [ SECP_SET_DEFAULT([ enable_module_ellswift] , [ yes] , [ yes] )] )
190190
191+ AC_ARG_ENABLE ( module_silentpayments ,
192+ AS_HELP_STRING ( [ --enable-module-silentpayments] ,[ enable Silent Payments module [ default=no] ] ) , [ ] ,
193+ [ SECP_SET_DEFAULT([ enable_module_silentpayments] , [ no] , [ yes] )] )
194+
191195AC_ARG_ENABLE ( external_default_callbacks ,
192196 AS_HELP_STRING ( [ --enable-external-default-callbacks] ,[ enable external default callback functions [ default=no] ] ) , [ ] ,
193197 [ SECP_SET_DEFAULT([ enable_external_default_callbacks] , [ no] , [ no] )] )
@@ -404,6 +408,10 @@ if test x"$enable_module_ellswift" = x"yes"; then
404408 SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DENABLE_MODULE_ELLSWIFT=1"
405409fi
406410
411+ if test x"$enable_module_silentpayments" = x"yes"; then
412+ SECP_CONFIG_DEFINES="$SECP_CONFIG_DEFINES -DENABLE_MODULE_SILENTPAYMENTS=1"
413+ fi
414+
407415# Test if extrakeys is set after the schnorrsig module to allow the schnorrsig
408416# module to set enable_module_extrakeys=yes
409417if test x"$enable_module_extrakeys" = x"yes"; then
@@ -447,6 +455,7 @@ AM_CONDITIONAL([ENABLE_MODULE_RECOVERY], [test x"$enable_module_recovery" = x"ye
447455AM_CONDITIONAL([ ENABLE_MODULE_EXTRAKEYS] , [ test x"$enable_module_extrakeys" = x"yes"] )
448456AM_CONDITIONAL([ ENABLE_MODULE_SCHNORRSIG] , [ test x"$enable_module_schnorrsig" = x"yes"] )
449457AM_CONDITIONAL([ ENABLE_MODULE_ELLSWIFT] , [ test x"$enable_module_ellswift" = x"yes"] )
458+ AM_CONDITIONAL([ ENABLE_MODULE_SILENTPAYMENTS] , [ test x"$enable_module_silentpayments" = x"yes"] )
450459AM_CONDITIONAL([ USE_EXTERNAL_ASM] , [ test x"$enable_external_asm" = x"yes"] )
451460AM_CONDITIONAL([ USE_ASM_ARM] , [ test x"$set_asm" = x"arm32"] )
452461AM_CONDITIONAL([ BUILD_WINDOWS] , [ test "$build_windows" = "yes"] )
@@ -469,6 +478,7 @@ echo " module recovery = $enable_module_recovery"
469478echo " module extrakeys = $enable_module_extrakeys"
470479echo " module schnorrsig = $enable_module_schnorrsig"
471480echo " module ellswift = $enable_module_ellswift"
481+ echo " module silentpayments = $enable_module_silentpayments"
472482echo
473483echo " asm = $set_asm"
474484echo " ecmult window size = $set_ecmult_window"
0 commit comments