-# Checks for typedefs, structures, and compiler characteristics.
-##AC_TYPE_SIZE_T
-##AC_CHECK_SIZEOF(int)
-##AC_CHECK_SIZEOF(long int)
-
-# Checks for library functions.
+if test -d ${srcdir}/.git; then
+ SHA1=`git show --pretty=format:%H|head -1`
+else
+ SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
+fi
+AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git])