summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2016-12-18 17:31:50 +0000
committerReuben Thomas <rrt@sc3d.org>2017-02-09 00:28:24 +0000
commitd1b5e1075dbbcfa990d5640ef7b646a12e6c5e82 (patch)
tree1ecaae7ef0953b32905ad9bd16d8914cd51437a4
parentf0d085890c6a514a93a920b3e151f64649126b1f (diff)
downloadenchant-d1b5e1075dbbcfa990d5640ef7b646a12e6c5e82.tar.gz
Bump version to 2.0.0: we're going to remove and change interfaces
Steal libvirt’s scheme for calculating the API age and setting VERSION_INFO, because the previous scheme does not work when the major version number increments and minor is reset to 0 (the API level would have fallen).
-rw-r--r--configure.ac12
1 files changed, 9 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index cdbdca4..85acf57 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT([enchant],[1.6.1])
+AC_INIT([enchant],[2.0.0])
AC_PACKAGE_VERSION
AC_CONFIG_SRCDIR(src/enchant.h)
AM_INIT_AUTOMAKE([no-define subdir-objects])
@@ -20,10 +20,16 @@ dnl First extract pieces from the version number string
ENCHANT_MAJOR_VERSION=`echo $VERSION | awk -F. '{print $1}'`
ENCHANT_MINOR_VERSION=`echo $VERSION | awk -F. '{print $2}'`
ENCHANT_MICRO_VERSION=`echo $VERSION | awk -F. '{print $3}'`
+ENCHANT_VERSION=$ENCHANT_MAJOR_VERSION.$ENCHANT_MINOR_VERSION.$ENCHANT_MICRO_VERSION$ENCHANT_MICRO_VERSION_SUFFIX
+ENCHANT_VERSION_NUMBER=`expr $ENCHANT_MAJOR_VERSION \* 1000000 + $ENCHANT_MINOR_VERSION \* 1000 + $ENCHANT_MICRO_VERSION`
+
+ENCHANT_SONUM=0
+AGE=`expr $ENCHANT_MAJOR_VERSION '*' 1000 + $ENCHANT_MINOR_VERSION`
+REVISION=$ENCHANT_MICRO_VERSION
+CURRENT=`expr $ENCHANT_SONUM + $AGE`
dnl Version info for libraries = CURRENT:REVISION:AGE
-MAJOR_VERSION_PLUS_MINOR_VERSION=`expr $ENCHANT_MAJOR_VERSION + $ENCHANT_MINOR_VERSION`
-VERSION_INFO=$MAJOR_VERSION_PLUS_MINOR_VERSION:$ENCHANT_MICRO_VERSION:$ENCHANT_MINOR_VERSION
+VERSION_INFO=$CURRENT:$REVISION:$AGE
AC_SUBST(VERSION_INFO)
AC_SUBST(ENCHANT_MAJOR_VERSION)