[pango] Make pango_interface_age automatic
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [pango] Make pango_interface_age automatic
- Date: Mon, 17 Aug 2009 22:32:11 +0000 (UTC)
commit caed415f553a60176b33e30ee37e891cb720e9c6
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon Aug 17 18:29:37 2009 -0400
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.
configure.in | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/configure.in b/configure.in
index 0bca1d2..98403ca 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)])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]