From eb6bb68e7aacc310dd22031e65af6a77a8971a29 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Tue, 14 Feb 2012 01:00:52 +0100 Subject: [PATCH] parser: generate a versioned shared library Use the kernel version to version the parser shared library. Signed-off-by: "Yann E. MORIN" --- configure.ac | 12 ++++++++++++ libs/parser/Makefile.am | 1 + 2 files changed, 13 insertions(+) diff --git a/configure.ac b/configure.ac index 8ee8fd5..f4ce2ca 100644 --- a/configure.ac +++ b/configure.ac @@ -266,6 +266,12 @@ AM_CONDITIONAL( # Prepare libtool LT_INIT([disable-static]) +#---------------------------------------- +# Get the version to apply to the parser shared library +AC_SUBST( + [KCONFIGPARSER_LIB_VERSION], + [m4_esyscmd_s([./scripts/version.sh --plain])]) + #---------------------------------------- # Finalise AC_CONFIG_FILES([ @@ -298,3 +304,9 @@ AS_IF([test "$enable_nconf" = "yes"], AS_IF([test "$enable_qconf" = "yes"], [AC_MSG_NOTICE([ - qconf: yes])], [AC_MSG_NOTICE([ - qconf: no])]) +AS_IF([test "$enable_shared" = "yes"], + [AC_MSG_NOTICE([ - parser shared library: yes, $KCONFIGPARSER_LIB_VERSION])], + [AC_MSG_NOTICE([ - parser shared library: no])]) +AS_IF([test "$enable_static" = "yes"], + [AC_MSG_NOTICE([ - parser static library: yes])], + [AC_MSG_NOTICE([ - parser static library: no])]) diff --git a/libs/parser/Makefile.am b/libs/parser/Makefile.am index 40fe4b8..8e0602a 100644 --- a/libs/parser/Makefile.am +++ b/libs/parser/Makefile.am @@ -6,6 +6,7 @@ dist_EXTRA_libkconfigparser_la_SOURCES = \ hconf.gperf lconf.l \ confdata.c menu.c symbol.c util.c \ expr.c expr.h lkc.h lkc_proto.h +libkconfigparser_la_LDFLAGS = -release $(KCONFIGPARSER_LIB_VERSION) include_HEADERS = expr.h lkc.h lkc_proto.h -- 2.39.5