From: Yann E. MORIN" Date: Tue, 14 Feb 2012 00:00:52 +0000 (+0100) Subject: parser: generate a versioned shared library X-Git-Tag: v3.3.0-0~30 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=eb6bb68e7aacc310dd22031e65af6a77a8971a29;p=kconfig-frontends parser: generate a versioned shared library Use the kernel version to version the parser shared library. Signed-off-by: "Yann E. MORIN" --- 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