From ec1b3a44c0653e21dd252e1727ed42f86f0bb0ec Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Fri, 15 Dec 2017 00:48:35 +0100 Subject: Add support for custom version string Make nxproxy and nxagent print an arbitrary version number by running make NX_VERSION_CUSTOM="myvers". nxagent and nxproxy will then show this in addition to the original version number: NXPROXY - Version myvers (3.5.99.22) NXAGENT - Version myvers (3.5.99.22) Fixes ArcticaProject/nx-libs#606 --- nxcompshad/configure.ac | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'nxcompshad') diff --git a/nxcompshad/configure.ac b/nxcompshad/configure.ac index 19a6ae7e4..239a4a739 100644 --- a/nxcompshad/configure.ac +++ b/nxcompshad/configure.ac @@ -19,6 +19,13 @@ AM_INIT_AUTOMAKE([foreign no-dist-gzip dist-bzip2]) # Initialize libtool AC_PROG_LIBTOOL +# enable this to add the variable to the Makefiles +#AC_ARG_VAR(NX_VERSION_CUSTOM, [custom version string]) + +if test "x$NX_VERSION_CUSTOM" != x; then + AC_DEFINE_UNQUOTED([NX_VERSION_CUSTOM], ["${NX_VERSION_CUSTOM}"], [user provided custom version string]) +fi + COMPSHAD_VERSION=nxcompshad_version AC_SUBST([COMPSHAD_VERSION]) -- cgit v1.2.3