Update configure.ac: introduced git tag for version, incremental number of commits and release
1.5.2-43-gb3a292d-dirty ^ ^ ^ ^ | | | | | | | if there are uncommitted changes | | SHA of HEAD | number of commits since last tag last tag
This commit is contained in:
+9
-10
@@ -10,16 +10,16 @@ AC_PROG_CC
|
|||||||
AX_PTHREAD
|
AX_PTHREAD
|
||||||
|
|
||||||
if test -d ".git"; then :
|
if test -d ".git"; then :
|
||||||
GIT_TAG=`git rev-parse HEAD`
|
GIT_TAG=`git log -1 --format=%H`
|
||||||
GIT_DATE=`date +%Y%m%d`
|
GIT_DATE=`git log -1 --format=%cd`
|
||||||
GIT_RELEASE="${PACKAGE_VERSION} (${GIT_TAG}:${GIT_DATE})"
|
GIT_RELEASE=`git describe --tags --long --dirty --always`
|
||||||
else
|
else
|
||||||
GIT_RELEASE="${PACKAGE_VERSION}"
|
GIT_RELEASE="${PACKAGE_VERSION}"
|
||||||
SVN_DATE=`date`
|
GIT_DATE=`date`
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_DEFINE_UNQUOTED(NDPI_GIT_RELEASE, "r${GIT_RELEASE}", [SVN Release])
|
AC_DEFINE_UNQUOTED(NDPI_GIT_RELEASE, "${GIT_RELEASE}", [GIT Release])
|
||||||
AC_DEFINE_UNQUOTED(NDPI_SVN_DATE, "${SVN_DATE}", [Last SVN change])
|
AC_DEFINE_UNQUOTED(NDPI_GIT_DATE, "${GIT_DATE}", [Last GIT change])
|
||||||
|
|
||||||
AC_CHECK_HEADERS([netinet/in.h stdint.h stdlib.h string.h unistd.h])
|
AC_CHECK_HEADERS([netinet/in.h stdint.h stdlib.h string.h unistd.h])
|
||||||
|
|
||||||
@@ -30,12 +30,11 @@ if test -d $PCAP_HOME; then :
|
|||||||
else
|
else
|
||||||
PCAP_HOME=`pwd`/../../PF_RING/userland
|
PCAP_HOME=`pwd`/../../PF_RING/userland
|
||||||
fi
|
fi
|
||||||
|
|
||||||
SHORT_MACHINE=`uname -m | cut -b1-3`
|
SHORT_MACHINE=`uname -m | cut -b1-3`
|
||||||
if test $SHORT_MACHINE = "arm"; then
|
if test $SHORT_MACHINE = "arm"; then
|
||||||
LIBNUMA=""
|
LIBNUMA=""
|
||||||
else
|
else
|
||||||
LIBNUMA="-lnuma"
|
LIBNUMA="-lnuma"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -f $PCAP_HOME/libpcap/libpcap.a; then :
|
if test -f $PCAP_HOME/libpcap/libpcap.a; then :
|
||||||
|
|||||||
Reference in New Issue
Block a user