From d0cafa2d67b4765450deb5781b08f4241d9c4d3a Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Tue, 16 Feb 2016 14:59:04 +0000
Subject: [PATCH] changed the automake script

---
 configure.ac |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/configure.ac b/configure.ac
index 3d3e095..d2acada 100644
--- a/configure.ac
+++ b/configure.ac
@@ -19,6 +19,7 @@
 AC_CHECK_LIB([gsl],[gsl_blas_dgemm])
 #AC_CHECK_LIB([xml2],[xmlNodeListGetString])
 PKG_CHECK_MODULES([libxml2], [libxml-2.0])
+AC_CHECK_LIB([z],[deflate])
 
 # Checks for header files.
 AC_CHECK_HEADERS([stdlib.h string.h])
@@ -40,6 +41,13 @@
 AC_MSG_RESULT(no)
 fi
 
+#detect commit version and date
+#-                   ["Trisurf $VERSION on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"],
+#                   ["Trisurf (commit `cd $srcdir && git log -1 --format=format:%h`) on $host, compiled by $cc_string, `expr $ac_cv_sizeof_void_p \* 8`-bit"],
+AC_DEFINE_UNQUOTED(TS_VERSION,
+                    ["Trisurf (commit `git describe  --abbrev=6 --dirty --always --tags`) on `hostname`."],
+                    [A string containing the version number])
+
 # Checks for library functions.
 AC_FUNC_MALLOC
 AC_FUNC_REALLOC

--
Gitblit v1.9.3