diff options
author | Behdad Esfahbod <behdad@behdad.org> | 2009-08-17 18:29:37 -0400 |
---|---|---|
committer | Behdad Esfahbod <behdad@behdad.org> | 2009-08-17 18:29:37 -0400 |
commit | caed415f553a60176b33e30ee37e891cb720e9c6 (patch) | |
tree | 6915e8b4960e4bf1a6cf85e07ed279f6836605fa | |
parent | 5f256c2fd14b2cd18978a3963c8b49a2b68966f5 (diff) | |
download | pango-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.in | 10 |
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)]) |