Commit 0bcb05a8 authored by Tomek Mrugalski's avatar Tomek Mrugalski 🛰
Browse files

[3508] git version is now detected.

parent f73452e8
...@@ -29,6 +29,20 @@ AC_CONFIG_MACRO_DIR([m4macros]) ...@@ -29,6 +29,20 @@ AC_CONFIG_MACRO_DIR([m4macros])
# Checks for programs. # Checks for programs.
AC_PROG_CXX AC_PROG_CXX
# Check for exact Kea version.
AC_MSG_CHECKING(whether this is a tarball or git source)
echo "test -d ${srcdir}/.git"
if test -d "${srcdir}/.git"; then
KEA_SRCID="git `(cd "${top_srcdir}";git rev-parse HEAD)`"
AC_MSG_RESULT("git")
else
KEA_SRCID="tarball"
AC_MSG_RESULT("tarball")
fi
# Export EXTENDED_VERSION to config.h
# This will be either "tarball" or "git abcd".
AC_DEFINE_UNQUOTED([EXTENDED_VERSION], ["${KEA_SRCID}"], [Extended Kea version])
# Enable low-performing debugging facilities? This option optionally # Enable low-performing debugging facilities? This option optionally
# enables some debugging aids that perform slowly and hence aren't built # enables some debugging aids that perform slowly and hence aren't built
# by default. # by default.
...@@ -1481,6 +1495,11 @@ AC_OUTPUT ...@@ -1481,6 +1495,11 @@ AC_OUTPUT
dnl Print the results dnl Print the results
dnl dnl
EXTENDED_VERSION=${PACKAGE_VERSION}
if test "$KEA_SRCID" != ""; then
EXTENDED_VERSION="${EXTENDED_VERSION} ($KEA_SRCID)"
fi
cat > config.report << END cat > config.report << END
Kea source configure results: Kea source configure results:
...@@ -1489,6 +1508,7 @@ cat > config.report << END ...@@ -1489,6 +1508,7 @@ cat > config.report << END
Package: Package:
Name: ${PACKAGE_NAME} Name: ${PACKAGE_NAME}
Version: ${PACKAGE_VERSION} Version: ${PACKAGE_VERSION}
Extended version:${EXTENDED_VERSION}
OS Family: ${OS_TYPE} OS Family: ${OS_TYPE}
Using GNU sed: ${GNU_SED} Using GNU sed: ${GNU_SED}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment