Browse Source

Add library versioning according to

https://www.gnu.org/software/libtool/manual/html_node/Libtool-versioning.html#Libtool-versioning
Add package versioning with m4 macros
pre-master-46
Holger Vogt 5 years ago
parent
commit
4258fe94b5
  1. 24
      configure.ac
  2. 2
      src/Makefile.am

24
configure.ac

@ -11,19 +11,27 @@
# Initialization # Initialization
# --------------- # ---------------
# Initialization of configure
AC_INIT([ngspice], [35], [http://ngspice.sourceforge.net/bugrep.html])
# Unique file in the source directory
AC_CONFIG_SRCDIR([src/ngspice.c])
# Ensure a recent version of Autoconf is in use # Ensure a recent version of Autoconf is in use
# Older versions may not work with this script and this will report the # Older versions may not work with this script and this will report the
# problem to the user. (2.52 is a guess and might need some adjustment)
# problem to the user.
AC_PREREQ([2.59]) AC_PREREQ([2.59])
m4_define([ngspice_major_version], [35])
m4_define([ngspice_minor_version], [0])
m4_define([ngspice_version],
[ngspice_major_version])
# Initialization of configure
AC_INIT([ngspice], [ngspice_version], [http://ngspice.sourceforge.net/bugrep.html])
# Revision stamp the generated ./configure script # Revision stamp the generated ./configure script
AC_REVISION([$Revision$])
AC_REVISION([$Revision: ngspice_version$])
# Libtool shared ngspice versioning info
AC_SUBST([NG_SO_VERSION], [0:1:0])
# Unique file in the source directory
AC_CONFIG_SRCDIR([src/ngspice.c])
# Create a configuration header # Create a configuration header
AC_CONFIG_HEADER([src/include/ngspice/config.h]) AC_CONFIG_HEADER([src/include/ngspice/config.h])

2
src/Makefile.am

@ -594,7 +594,7 @@ endif
## if !SHWIN ## if !SHWIN
## if !SHCYG ## if !SHCYG
## libngspice_la_LDFLAGS += -version-info 0:@VERSION@:0
libngspice_la_LDFLAGS += -version-info $(NG_SO_VERSION)
## endif ## endif
## endif ## endif

Loading…
Cancel
Save