summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
-rw-r--r--src/Makefile.am2
2 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 040383b8..dc0d4f85 100644
--- a/configure.ac
+++ b/configure.ac
@@ -16,6 +16,17 @@ AM_INIT_AUTOMAKE([subdir-objects no-dist-gzip dist-xz check-news])
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
AM_MAINTAINER_MODE
+dnl **************************************************************************
+dnl Library version information
+dnl **************************************************************************
+
+m4_define([lt_current], [1])
+m4_define([lt_revision], [0])
+m4_define([lt_age], [0])
+m4_define([lt_version_info], [lt_current:lt_revision:lt_age])
+
+AC_SUBST([LT_VERSION_INFO], [lt_version_info])
+
# Honor aclocal flags
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS}")
diff --git a/src/Makefile.am b/src/Makefile.am
index 5da756a6..0bdba31c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -116,7 +116,7 @@ libmarco_private_la_SOURCES= \
ui/ui.c \
include/all-keybindings.h
-libmarco_private_la_LDFLAGS = -no-undefined -version-info 1:0:0
+libmarco_private_la_LDFLAGS = -no-undefined -version-info $(LT_VERSION_INFO)
libmarco_private_la_LIBADD = @MARCO_LIBS@
libmarcoincludedir = $(includedir)/marco-1/marco-private