libi2ncommon: (reinhard) added versioning for lib; and increased major version (by...
authorReinhard Pfau <reinhard.pfau@intra2net.com>
Thu, 17 Apr 2008 07:46:52 +0000 (07:46 +0000)
committerReinhard Pfau <reinhard.pfau@intra2net.com>
Thu, 17 Apr 2008 07:46:52 +0000 (07:46 +0000)
configure.in
src/Makefile.am

index 42928b4..989a0f9 100644 (file)
@@ -3,6 +3,10 @@ AC_INIT(configure.in)
 AM_CONFIG_HEADER(config.h)
 AM_INIT_AUTOMAKE(libi2ncommon, 0.9)
 
+LIBI2NCOMMON_LIB_VERSION=1:0:0
+
+AC_SUBST(LIBI2NCOMMON_LIB_VERSION)
+
 AC_LANG_CPLUSPLUS
 AC_PROG_CXX
 AM_PROG_LIBTOOL
index 902807b..897d7a7 100644 (file)
@@ -16,4 +16,6 @@ libi2ncommon_la_SOURCES = containerfunc.cpp daemonfunc.cpp filefunc.cpp \
 #  the library that is made has version (a-c).c.b.  In this
 #  example, the version is 2.1.2. (3:2:1)
 
-libi2ncommon_la_LIBADD = @LIBGETTEXT_LIBS@ @LIBICONV_LIBS@
+libi2ncommon_la_LDFLAGS = -version-info @LIBI2NCOMMON_LIB_VERSION@
+
+libi2ncommon_la_LIBADD =  @LIBGETTEXT_LIBS@ @LIBICONV_LIBS@