X-Git-Url: https://arthur.barton.de/gitweb/?a=blobdiff_plain;f=configure.ac;h=1dffbe0f304133bdd1a205da6e3d72c0f2b699d5;hb=2079851112928fbfec53794776686bde2bbc2643;hp=ecf2352c22a78415dd1eca80b9921293167c40fe;hpb=42de633d4857814fb1e77a1bd5bb7eb49af93072;p=netdata.git diff --git a/configure.ac b/configure.ac index ecf2352c..1dffbe0f 100644 --- a/configure.ac +++ b/configure.ac @@ -7,12 +7,16 @@ define([VERSION_MAJOR], [1]) define([VERSION_MINOR], [5]) define([VERSION_FIX], [1]) define([VERSION_NUMBER], VERSION_MAJOR[.]VERSION_MINOR[.]VERSION_FIX) -define([VERSION_SUFFIX], [_master]) +define([VERSION_SUFFIX], [_rolling]) dnl Set to "1" for a first RPM release of a new version PACKAGE_RPM_RELEASE="0.0.$(echo VERSION_SUFFIX | sed s/^_//)" -AC_INIT([netdata], VERSION_NUMBER[]VERSION_SUFFIX) +# We do not use m4_esyscmd_s to support older autoconf. +define([VERSION_STRING], m4_esyscmd(git describe 2>/dev/null | sed 's/^v//' | tr -d '\n')) +m4_ifval(VERSION_STRING, [], [define([VERSION_STRING], VERSION_NUMBER)]) + +AC_INIT([netdata], VERSION_STRING[]VERSION_SUFFIX) AM_MAINTAINER_MODE([disable]) if test x"$USE_MAINTAINER_MODE" = xyes; then @@ -59,11 +63,13 @@ darwin*) LDFLAGS="${LDFLAGS} -framework CoreFoundation -framework IOKit" ;; *) + build_target=linux ;; esac AM_CONDITIONAL([FREEBSD], [test x$build_target = xfreebsd]) AM_CONDITIONAL([MACOS], [test x$build_target = xmacos]) +AM_CONDITIONAL([LINUX], [test x$build_target = xlinux]) AC_ARG_ENABLE( [plugin-nfacct],