@@ -129,6 +129,16 @@ AC_ARG_ENABLE(module_ecdh,
129
129
[ enable_module_ecdh=$enableval] ,
130
130
[ enable_module_ecdh=no] )
131
131
132
+ AC_ARG_ENABLE ( module_schnorrsig ,
133
+ AS_HELP_STRING ( [ --enable-module-schnorrsig] ,[ enable schnorrsig module (experimental)] ) ,
134
+ [ enable_module_schnorrsig=$enableval] ,
135
+ [ enable_module_schnorrsig=no] )
136
+
137
+ AC_ARG_ENABLE ( module_musig ,
138
+ AS_HELP_STRING ( [ --enable-module-musig] ,[ enable MuSig module (experimental)] ) ,
139
+ [ enable_module_musig=$enableval] ,
140
+ [ enable_module_musig=no] )
141
+
132
142
AC_ARG_ENABLE ( module_recovery ,
133
143
AS_HELP_STRING ( [ --enable-module-recovery] ,[ enable ECDSA pubkey recovery module (default is no)] ) ,
134
144
[ enable_module_recovery=$enableval] ,
@@ -463,6 +473,14 @@ if test x"$enable_module_ecdh" = x"yes"; then
463
473
AC_DEFINE ( ENABLE_MODULE_ECDH , 1 , [ Define this symbol to enable the ECDH module] )
464
474
fi
465
475
476
+ if test x"$enable_module_schnorrsig" = x"yes"; then
477
+ AC_DEFINE ( ENABLE_MODULE_SCHNORRSIG , 1 , [ Define this symbol to enable the schnorrsig module] )
478
+ fi
479
+
480
+ if test x"$enable_module_musig" = x"yes"; then
481
+ AC_DEFINE ( ENABLE_MODULE_MUSIG , 1 , [ Define this symbol to enable the MuSig module] )
482
+ fi
483
+
466
484
if test x"$enable_module_recovery" = x"yes"; then
467
485
AC_DEFINE ( ENABLE_MODULE_RECOVERY , 1 , [ Define this symbol to enable the ECDSA pubkey recovery module] )
468
486
fi
@@ -510,8 +528,17 @@ if test x"$enable_experimental" = x"yes"; then
510
528
AC_MSG_NOTICE ( [ Building range proof module: $enable_module_rangeproof] )
511
529
AC_MSG_NOTICE ( [ Building key whitelisting module: $enable_module_whitelist] )
512
530
AC_MSG_NOTICE ( [ Building surjection proof module: $enable_module_surjectionproof] )
531
+ AC_MSG_NOTICE ( [ Building schnorrsig module: $enable_module_schnorrsig] )
532
+ AC_MSG_NOTICE ( [ Building MuSig module: $enable_module_musig] )
513
533
AC_MSG_NOTICE ( [ ******] )
514
534
535
+
536
+ if test x"$enable_module_schnorrsig" != x"yes"; then
537
+ if test x"$enable_module_musig" = x"yes"; then
538
+ AC_MSG_ERROR ( [ MuSig module requires the schnorrsig module. Use --enable-module-schnorrsig to allow.] )
539
+ fi
540
+ fi
541
+
515
542
if test x"$enable_module_generator" != x"yes"; then
516
543
if test x"$enable_module_rangeproof" = x"yes"; then
517
544
AC_MSG_ERROR ( [ Rangeproof module requires the generator module. Use --enable-module-generator to allow.] )
@@ -530,6 +557,12 @@ else
530
557
if test x"$enable_module_ecdh" = x"yes"; then
531
558
AC_MSG_ERROR ( [ ECDH module is experimental. Use --enable-experimental to allow.] )
532
559
fi
560
+ if test x"$enable_module_schnorrsig" = x"yes"; then
561
+ AC_MSG_ERROR ( [ schnorrsig module is experimental. Use --enable-experimental to allow.] )
562
+ fi
563
+ if test x"$enable_module_musig" = x"yes"; then
564
+ AC_MSG_ERROR ( [ MuSig module is experimental. Use --enable-experimental to allow.] )
565
+ fi
533
566
if test x"$set_asm" = x"arm"; then
534
567
AC_MSG_ERROR ( [ ARM assembly optimization is experimental. Use --enable-experimental to allow.] )
535
568
fi
@@ -560,6 +593,8 @@ AM_CONDITIONAL([USE_EXHAUSTIVE_TESTS], [test x"$use_exhaustive_tests" != x"no"])
560
593
AM_CONDITIONAL([ USE_BENCHMARK] , [ test x"$use_benchmark" = x"yes"] )
561
594
AM_CONDITIONAL([ USE_ECMULT_STATIC_PRECOMPUTATION] , [ test x"$set_precomp" = x"yes"] )
562
595
AM_CONDITIONAL([ ENABLE_MODULE_ECDH] , [ test x"$enable_module_ecdh" = x"yes"] )
596
+ AM_CONDITIONAL([ ENABLE_MODULE_SCHNORRSIG] , [ test x"$enable_module_schnorrsig" = x"yes"] )
597
+ AM_CONDITIONAL([ ENABLE_MODULE_MUSIG] , [ test x"$enable_module_musig" = x"yes"] )
563
598
AM_CONDITIONAL([ ENABLE_MODULE_RECOVERY] , [ test x"$enable_module_recovery" = x"yes"] )
564
599
AM_CONDITIONAL([ ENABLE_MODULE_GENERATOR] , [ test x"$enable_module_generator" = x"yes"] )
565
600
AM_CONDITIONAL([ ENABLE_MODULE_RANGEPROOF] , [ test x"$enable_module_rangeproof" = x"yes"] )
0 commit comments