summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac16
-rw-r--r--p11-kit/Makefile.am4
-rw-r--r--po/p11-kit.pot4
3 files changed, 21 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac
index 5548117..26e86fe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,6 +7,19 @@ AC_INIT([p11-kit],
[p11-kit],
[http://p11-glue.freedesktop.org/p11-kit.html])
+dnl ****************************************************************************
+dnl p11-kit libtool versioning
+dnl CURRENT : REVISION : AGE
+dnl +1 : 0 : +1 == new interface that does not break old one.
+dnl +1 : 0 : 0 == removed an interface. Breaks old apps.
+dnl ? : +1 : ? == internal changes that doesn't break anything.
+
+P11KIT_CURRENT=0
+P11KIT_REVISION=0
+P11KIT_AGE=0
+
+dnl ****************************************************************************
+
AC_CONFIG_SRCDIR([p11-kit/modules.c])
AC_CONFIG_HEADERS([config.h])
@@ -156,6 +169,9 @@ fi
# ---------------------------------------------------------------------
+P11KIT_LT_RELEASE=$P11KIT_CURRENT:$P11KIT_REVISION:$P11KIT_AGE
+AC_SUBST(P11KIT_LT_RELEASE)
+
AC_CONFIG_FILES([Makefile
doc/Makefile
doc/version.xml
diff --git a/p11-kit/Makefile.am b/p11-kit/Makefile.am
index c45efc1..90f0387 100644
--- a/p11-kit/Makefile.am
+++ b/p11-kit/Makefile.am
@@ -32,7 +32,9 @@ noinst_LTLIBRARIES = \
libp11-kit-testable.la
libp11_kit_la_LDFLAGS = \
- -no-undefined -export-symbols-regex '^C_GetFunctionList|^p11_kit_'
+ -no-undefined \
+ -version-info $(P11KIT_LT_RELEASE) \
+ -export-symbols-regex '^C_GetFunctionList|^p11_kit_'
libp11_kit_la_SOURCES = $(MODULE_SRCS)
diff --git a/po/p11-kit.pot b/po/p11-kit.pot
index aeee678..f830120 100644
--- a/po/p11-kit.pot
+++ b/po/p11-kit.pot
@@ -6,10 +6,10 @@
#, fuzzy
msgid ""
msgstr ""
-"Project-Id-Version: p11-kit 0.2\n"
+"Project-Id-Version: p11-kit 0.3\n"
"Report-Msgid-Bugs-To: https://bugs.freedesktop.org/enter_bug.cgi?product=p11-"
"glue\n"
-"POT-Creation-Date: 2011-07-07 18:45+0200\n"
+"POT-Creation-Date: 2011-07-27 12:33+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"