@@ -146,6 +146,11 @@ AC_ARG_ENABLE(module_schnorr,
146
146
[ enable_module_schnorr=$enableval] ,
147
147
[ enable_module_schnorr=yes] )
148
148
149
+ AC_ARG_ENABLE ( module_extrakeys ,
150
+ AS_HELP_STRING ( [ --enable-module-extrakeys] ,[ enable extrakeys module (experimental)] ) ,
151
+ [ enable_module_extrakeys=$enableval] ,
152
+ [ enable_module_extrakeys=no] )
153
+
149
154
AC_ARG_ENABLE ( external_default_callbacks ,
150
155
AS_HELP_STRING ( [ --enable-external-default-callbacks] ,[ enable external default callback functions [ default=no] ] ) ,
151
156
[ use_external_default_callbacks=$enableval] ,
@@ -481,6 +486,10 @@ if test x"$enable_module_schnorr" = x"yes"; then
481
486
AC_DEFINE ( ENABLE_MODULE_SCHNORR , 1 , [ Define this symbol to enable the Schnorr signature module] )
482
487
fi
483
488
489
+ if test x"$enable_module_extrakeys" = x"yes"; then
490
+ AC_DEFINE ( ENABLE_MODULE_EXTRAKEYS , 1 , [ Define this symbol to enable the extrakeys module] )
491
+ fi
492
+
484
493
if test x"$use_external_asm" = x"yes"; then
485
494
AC_DEFINE ( USE_EXTERNAL_ASM , 1 , [ Define this symbol if an external (non-inline) assembly implementation is used] )
486
495
fi
@@ -494,6 +503,7 @@ if test x"$enable_experimental" = x"yes"; then
494
503
AC_MSG_NOTICE ( [ WARNING: experimental build] )
495
504
AC_MSG_NOTICE ( [ Experimental features do not have stable APIs or properties, and may not be safe for production use.] )
496
505
AC_MSG_NOTICE ( [ Building ECDH module: $enable_module_ecdh] )
506
+ AC_MSG_NOTICE ( [ Building extrakeys module: $enable_module_extrakeys] )
497
507
AC_MSG_NOTICE ( [ ******] )
498
508
else
499
509
if test x"$enable_module_ecdh" = x"yes"; then
502
512
if test x"$enable_module_multiset" = x"yes"; then
503
513
AC_MSG_ERROR ( [ Multiset module is experimental. Use --enable-experimental to allow.] )
504
514
fi
515
+ if test x"$enable_module_extrakeys" = x"yes"; then
516
+ AC_MSG_ERROR ( [ extrakeys module is experimental. Use --enable-experimental to allow.] )
517
+ fi
505
518
if test x"$set_asm" = x"arm"; then
506
519
AC_MSG_ERROR ( [ ARM assembly optimization is experimental. Use --enable-experimental to allow.] )
507
520
fi
@@ -521,6 +534,7 @@ AM_CONDITIONAL([USE_BENCHMARK], [test x"$use_benchmark" = x"yes"])
521
534
AM_CONDITIONAL([ USE_ECMULT_STATIC_PRECOMPUTATION] , [ test x"$set_precomp" = x"yes"] )
522
535
AM_CONDITIONAL([ ENABLE_MODULE_ECDH] , [ test x"$enable_module_ecdh" = x"yes"] )
523
536
AM_CONDITIONAL([ ENABLE_MODULE_MULTISET] , [ test x"$enable_module_multiset" = x"yes"] )
537
+ AM_CONDITIONAL([ ENABLE_MODULE_EXTRAKEYS] , [ test x"$enable_module_extrakeys" = x"yes"] )
524
538
AM_CONDITIONAL([ ENABLE_MODULE_RECOVERY] , [ test x"$enable_module_recovery" = x"yes"] )
525
539
AM_CONDITIONAL([ ENABLE_MODULE_SCHNORR] , [ test x"$enable_module_schnorr" = x"yes"] )
526
540
AM_CONDITIONAL([ USE_JNI] , [ test x"$use_jni" = x"yes"] )
@@ -546,6 +560,7 @@ echo " module ecdh = $enable_module_ecdh"
546
560
echo " module recovery = $enable_module_recovery"
547
561
echo " module multiset = $enable_module_multiset"
548
562
echo " module schnorr = $enable_module_schnorr"
563
+ echo " module extrakeys = $enable_module_extrakeys"
549
564
echo
550
565
echo " asm = $set_asm"
551
566
echo " bignum = $set_bignum"
0 commit comments