# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-m4_define([lxc_version_major], 1)
-m4_define([lxc_version_minor], 1)
+m4_define([lxc_version_major], 2)
+m4_define([lxc_version_minor], 0)
m4_define([lxc_version_micro], 0)
-m4_define([lxc_version_beta], [])
+m4_define([lxc_version_beta], beta1)
+m4_define([lxc_version_abi], 1.2.0)
m4_define([lxc_version_base], [lxc_version_major.lxc_version_minor.lxc_version_micro])
m4_define([lxc_version],
AC_SUBST([LXC_VERSION_MAJOR], [lxc_version_major])
AC_SUBST([LXC_VERSION_MINOR], [lxc_version_minor])
AC_SUBST([LXC_VERSION_MICRO], [lxc_version_micro])
+AC_SUBST([LXC_VERSION_ABI], [lxc_version_abi])
AC_SUBST([LXC_VERSION], [lxc_version])
AC_CONFIG_SRCDIR([configure.ac])
liblxc_so_LDFLAGS = \
-pthread \
-shared \
- -Wl,-soname,liblxc.so.$(firstword $(subst ., ,$(VERSION)))
+ -Wl,-soname,liblxc.so.$(firstword $(subst ., ,@LXC_VERSION_ABI@))
liblxc_so_LDADD = $(CAP_LIBS) $(APPARMOR_LIBS) $(SELINUX_LIBS) $(SECCOMP_LIBS)
install-exec-local: install-soPROGRAMS
mkdir -p $(DESTDIR)$(datadir)/lxc
install -c -m 644 lxc.functions $(DESTDIR)$(datadir)/lxc
- mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.$(VERSION)
+ mv $(DESTDIR)$(libdir)/liblxc.so $(DESTDIR)$(libdir)/liblxc.so.@LXC_VERSION_ABI@
cd $(DESTDIR)$(libdir); \
- ln -sf liblxc.so.$(VERSION) liblxc.so.$(firstword $(subst ., ,$(VERSION))); \
- ln -sf liblxc.so.$(firstword $(subst ., ,$(VERSION))) liblxc.so
+ ln -sf liblxc.so.@LXC_VERSION_ABI@ liblxc.so.$(firstword $(subst ., ,@LXC_VERSION_ABI@)); \
+ ln -sf liblxc.so.$(firstword $(subst ., ,@LXC_VERSION_ABI@)) liblxc.so
install-exec-hook:
chmod u+s $(DESTDIR)$(libexecdir)/lxc/lxc-user-nic
#define LXC_VERSION_MAJOR @LXC_VERSION_MAJOR@
#define LXC_VERSION_MINOR @LXC_VERSION_MINOR@
#define LXC_VERSION_MICRO @LXC_VERSION_MICRO@
+#define LXC_VERSION_ABI "@LXC_VERSION_ABI@"
#define LXC_VERSION "@LXC_VERSION@"
#endif