summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in51
1 files changed, 46 insertions, 5 deletions
diff --git a/configure.in b/configure.in
index e5b664ce..681e093b 100644
--- a/configure.in
+++ b/configure.in
@@ -2,13 +2,56 @@ dnl Process this file with autoconf to create configure.
AC_INIT(ChangeLog)
-PANGO_MAJOR_VERSION=0
-PANGO_MINOR_VERSION=26
+dnl ==========================================================================
+dnl Versioning
+dnl ==========================================================================
+
+dnl Making releases:
+dnl PANGO_MICRO_VERSION += 1;
+dnl PANGO_INTERFACE_AGE += 1;
+dnl PANGO_BINARY_AGE += 1;
+dnl if any functions have been added, set PANGO_INTERFACE_AGE to 0.
+dnl if backwards compatibility has been broken,
+dnl set PANGO_BINARY_AGE _and_ PANGO_INTERFACE_AGE to 0.
+
+dnl The triplet
+PANGO_MAJOR_VERSION=1
+PANGO_MINOR_VERSION=0
+PANGO_MICRO_VERSION=0
+PANGO_VERSION=$PANGO_MAJOR_VERSION.$PANGO_MINOR_VERSION.$PANGO_MICRO_VERSION
+
+dnl The X.Y in -lpango-X.Y line. This is expected to stay 1.0 until Pango 2.
+PANGO_API_VERSION=1.0
+
+dnl Number of releases since we've added interfaces
+PANGO_INTERFACE_AGE=0
+
+dnl Number of releases since we've broken binary compatibility. Should equal
+dnl PANGO_MICRO_VERSION for a stable release
+# PANGO_BINARY_AGE=0
+PANGO_BINARY_AGE=$PANGO_MICRO_VERSION
AC_SUBST(PANGO_MAJOR_VERSION)
AC_SUBST(PANGO_MINOR_VERSION)
+AC_SUBST(PANGO_VERSION)
+AC_SUBST(PANGO_API_VERSION)
+AC_SUBST(PANGO_MICRO_VERSION)
+AC_SUBST(PANGO_INTERFACE_AGE)
+AC_SUBST(PANGO_BINARY_AGE)
-AM_INIT_AUTOMAKE(pango, $PANGO_MAJOR_VERSION.$PANGO_MINOR_VERSION)
+dnl libtool versioning
+lt_current=`expr $PANGO_MICRO_VERSION - $PANGO_INTERFACE_AGE`
+lt_revision=$PANGO_INTERFACE_AGE
+lt_age=`expr $PANGO_BINARY_AGE - $PANGO_INTERFACE_AGE`
+LT_VERSION_INFO="$lt_current:$lt_revision:$lt_age"
+LT_CURRENT_MINUS_AGE=`expr $lt_current - $lt_age`
+
+AC_SUBST(LT_VERSION_INFO)
+AC_SUBST(LT_CURRENT_MINUS_AGE)
+
+dnl ==========================================================================
+
+AM_INIT_AUTOMAKE(pango, $PANGO_VERSION)
AM_CONFIG_HEADER(config.h)
@@ -493,8 +536,6 @@ if $use_la_modules ; then
AC_DEFINE(USE_LA_MODULES, 1, [Whether to load modules via .la files rather than directly])
fi
-echo ================= $host ==================
-
dnl ******************************************************
dnl * See whether to include shared library dependencies *
dnl ******************************************************