AC_DEFUN([AC_ESPIK_VERSION], [ AC_MSG_CHECKING(for git commit) if test `eval git hash-object .git/HEAD`; then GITVERSION=`git hash-object .git/HEAD` else GITVERSION=`date +%Y%m%d` fi AC_MSG_RESULT($GITVERSION) AC_SUBST(GITVERSION) ])