diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index c4bef7e..1ab1347 100644 --- a/configure.ac +++ b/configure.ac @@ -78,6 +78,12 @@ AM_CONDITIONAL(XSERVER_LIBPCIACCESS, test "x$XSERVER_LIBPCIACCESS" = xyes) PKG_CHECK_MODULES([SPICE_PROTOCOL], [spice-protocol >= 0.7.0]) +AC_CHECK_FILE(.git, [ + GIT_VERSION=`git log -1 --format=%h` + AC_DEFINE_UNQUOTED([GIT_VERSION], ["$GIT_VERSION"], [Defined if building from git]) + ], [] +) + AC_CONFIG_FILES([ Makefile src/Makefile |