summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBehdad Esfahbod <behdad@behdad.org>2009-08-17 18:29:37 -0400
committerBehdad Esfahbod <behdad@behdad.org>2009-08-17 18:29:37 -0400
commitcaed415f553a60176b33e30ee37e891cb720e9c6 (patch)
tree6915e8b4960e4bf1a6cf85e07ed279f6836605fa
parent5f256c2fd14b2cd18978a3963c8b49a2b68966f5 (diff)
downloadpango-caed415f553a60176b33e30ee37e891cb720e9c6.tar.gz
Make pango_interface_age automatic
For unstable releases, we act as if each micro release has new API. For stable releases, no micro release adds new API.
-rw-r--r--configure.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 0bca1d2f..98403cae 100644
--- a/configure.in
+++ b/configure.in
@@ -23,6 +23,7 @@ dnl The triplet
m4_define([pango_version_major], [1])
m4_define([pango_version_minor], [25])
m4_define([pango_version_micro], [3])
+
m4_define([pango_version],
[pango_version_major.pango_version_minor.pango_version_micro])
dnl The X.Y in -lpango-X.Y line. This is expected to stay 1.0 until Pango 2.
@@ -30,6 +31,15 @@ m4_define([pango_api_version], [1.0])
dnl Number of releases since we've added interfaces
dnl XXX For 1.25 release simply remove it and make it automatic.
m4_define([pango_interface_age], [0])
+m4_if(m4_eval(pango_version_minor % 2), [1],
+ [
+ dnl for unstable releases
+ m4_define([pango_interface_age], [0])
+ ],
+ [
+ dnl for stable releases
+ m4_define([pango_interface_age], pango_version_micro)
+ ])
dnl Number of releases since we've broken binary compatibility.
m4_define([pango_binary_age],
[m4_eval(100 * pango_version_minor + pango_version_micro)])