[Users] [PATCH] configure.ac: really use the specified GIT variable

Olaf Hering olaf at aepfle.de
Tue Nov 14 15:43:39 CET 2017


With 'env GIT=/what/ever ./configure [options]' AC_CHECK_PROG receives a
custom binary. Use this custom binary to set GIT_VERSION.

Signed-off-by: Olaf Hering <olaf at aepfle.de>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index 67c2a56d8..ffe3b5803 100644
--- a/configure.ac
+++ b/configure.ac
@@ -17,7 +17,7 @@ if test \( -d .git \); then
     if test \( "$GIT" = "no" \); then
 	AC_MSG_ERROR([*** git not found. See http://git-scm.com/])
     else
-	GIT_VERSION=`git describe --abbrev=6 --dirty --always`
+	GIT_VERSION=`${GIT} describe --abbrev=6 --dirty --always`
 	echo "echo ${GIT_VERSION}" > ./version
     fi
 else



More information about the Users mailing list