Added subject md element.
[pazpar2-moved-to-github.git] / configure.ac
index 43d7370..e17d571 100644 (file)
@@ -27,6 +27,14 @@ YAZ_DOC
 
 AC_CHECK_HEADERS([sys/time.h sys/socket.h unistd.h netinet/in.h netdb.h arpa/inet.h])
 AC_CHECK_FUNCS([getaddrinfo])
+
+if test -d ${srcdir}/.git; then
+       sha=`git show --pretty=format:%H|head -1`
+else
+       sha=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
+fi
+AC_DEFINE_UNQUOTED([PAZPAR2_VERSION_SHA1], ["$sha"], [Git SHA1])
+
 AC_CONFIG_FILES([
        Doxyfile
        Makefile
@@ -37,7 +45,7 @@ AC_CONFIG_FILES([
        doc/local.ent
        doc/common/Makefile
        doc/common/print.dsl
-
+       win/version.nsi
 ])
 
 AC_OUTPUT
@@ -64,9 +72,6 @@ echo \
   YAZ Include:                ${YAZINC}
   YAZ La Lib:                 ${YAZLALIB}
   YAZ Lib:                    ${YAZLIB}
-  ICU Version:                ${ICU_VERSION}
-  ICU Include:                ${ICU_CPPFLAGS}
-  ICU Lib:                    ${ICU_LIBS}
   Bugreport:                  ${PACKAGE_BUGREPORT}
 
 ------------------------------------------------------------------------"