@@ -7,6 +7,15 @@ define(_PKG_VERSION_MINOR, 1)
7
7
define ( _PKG_VERSION_BUILD , 0 )
8
8
define ( _PKG_VERSION_IS_RELEASE , false )
9
9
10
+ # The library version is based on libtool versioning of the ABI. The set of
11
+ # rules for updating the version can be found here:
12
+ # https://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
13
+ # All changes in experimental modules are treated as if they don't affect the
14
+ # interface and therefore only increase the revision.
15
+ define ( _LIB_VERSION_CURRENT , 0 )
16
+ define ( _LIB_VERSION_REVISION , 0 )
17
+ define ( _LIB_VERSION_AGE , 0 )
18
+
10
19
AC_INIT ( [ libsecp256k1-zkp] ,m4_join ( [ .] , _PKG_VERSION_MAJOR , _PKG_VERSION_MINOR , _PKG_VERSION_BUILD ) m4_if ( _PKG_VERSION_IS_RELEASE , [ true] , [ ] , [ -pre] ) ,[ https://github.com/ElementsProject/secp256k1-zkp/issues] ,[ secp256k1-zkp] ,[ https://github.com/ElementsProject/secp256k1-zkp] )
11
20
12
21
AC_CONFIG_AUX_DIR ( [ build-aux] )
@@ -656,6 +665,9 @@ AM_CONDITIONAL([USE_EXTERNAL_ASM], [test x"$use_external_asm" = x"yes"])
656
665
AM_CONDITIONAL([ USE_ASM_ARM] , [ test x"$set_asm" = x"arm"] )
657
666
AM_CONDITIONAL([ ENABLE_MODULE_SURJECTIONPROOF] , [ test x"$enable_module_surjectionproof" = x"yes"] )
658
667
AM_CONDITIONAL([ USE_REDUCED_SURJECTION_PROOF_SIZE] , [ test x"$use_reduced_surjection_proof_size" = x"yes"] )
668
+ AC_SUBST ( LIB_VERSION_CURRENT , _LIB_VERSION_CURRENT )
669
+ AC_SUBST ( LIB_VERSION_REVISION , _LIB_VERSION_REVISION )
670
+ AC_SUBST ( LIB_VERSION_AGE , _LIB_VERSION_AGE )
659
671
660
672
# Make sure nothing new is exported so that we don't break the cache.
661
673
PKGCONFIG_PATH_TEMP="$PKG_CONFIG_PATH"
0 commit comments