Commit 698d12e3 authored by Alon Levy's avatar Alon Levy

log git commit if any during load

parent 5af8fd65
......@@ -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
......
......@@ -1312,6 +1312,9 @@ qxl_pre_init(ScrnInfoPtr pScrn, int flags)
CHECK_POINT();
xf86DrvMsg(scrnIndex, X_INFO, "PreInit complete\n");
#ifdef GIT_VERSION
xf86DrvMsg(scrnIndex, X_INFO, "git commit %s\n", GIT_VERSION);
#endif
return TRUE;
out:
......
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