X-Git-Url: http://jsfdemo.indexdata.com/?a=blobdiff_plain;f=configure.ac;h=4841ba6a1d1d908f2aa7d22b452f8ad188423564;hb=5b4ea0cf66dd82c871ed7d69a5801d78789087b2;hp=e8783e034c499defe8c5ad7f606941fc601852f5;hpb=27a49218862b60a5857bc98eedab5b73deabc2ec;p=pazpar2-moved-to-github.git diff --git a/configure.ac b/configure.ac index e8783e0..4841ba6 100644 --- a/configure.ac +++ b/configure.ac @@ -4,7 +4,7 @@ # Autoconf and automake setup AC_PREREQ(2.60) -AC_INIT([pazpar2],[1.1.0],[pazpar2-help@indexdata.dk]) +AC_INIT([pazpar2],[1.1.1],[pazpar2-help@indexdata.dk]) AC_CONFIG_HEADERS(src/config.h) @@ -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