[lxc-devel] [lxc/master] Define LXC_DEVEL to detect development releases
stgraber on Github
lxc-bot at linuxcontainers.org
Tue Oct 4 16:34:28 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 424 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161004/38168ee8/attachment.bin>
-------------- next part --------------
From d2d6b991b84353e955c10520840013ec5336a1be Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Tue, 4 Oct 2016 18:31:29 +0200
Subject: [PATCH] Define LXC_DEVEL to detect development releases
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This can be used by downstreams to improve their "feature" checks.
Signed-off-by: Stéphane Graber <stgraber at ubuntu.com>
---
configure.ac | 2 ++
src/lxc/version.h.in | 1 +
2 files changed, 3 insertions(+)
diff --git a/configure.ac b/configure.ac
index 8c07d97..2f0137b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,7 @@
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
+m4_define([lxc_devel], 1)
m4_define([lxc_version_major], 2)
m4_define([lxc_version_minor], 0)
m4_define([lxc_version_micro], 0)
@@ -24,6 +25,7 @@ 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_SUBST([LXC_DEVEL], [lxc_devel])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_AUX_DIR([config])
diff --git a/src/lxc/version.h.in b/src/lxc/version.h.in
index cd1b6eb..5a78f22 100644
--- a/src/lxc/version.h.in
+++ b/src/lxc/version.h.in
@@ -23,6 +23,7 @@
#ifndef __LXC_VERSION_H
#define __LXC_VERSION_H
+#define LXC_DEVEL @LXC_DEVEL@
#define LXC_VERSION_MAJOR @LXC_VERSION_MAJOR@
#define LXC_VERSION_MINOR @LXC_VERSION_MINOR@
#define LXC_VERSION_MICRO @LXC_VERSION_MICRO@
More information about the lxc-devel
mailing list