add git-version-gen magic to automatically generate package version
diff --git a/configure.in b/configure.in
index 5e946b5..9879ebc 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,8 @@
-AC_INIT
+AC_INIT([libosmocore],
+ m4_esyscmd([./git-version-gen .tarball-version]),
+ [openbsc-devel@lists.openbsc.org])
-AM_INIT_AUTOMAKE(libosmocore, 0.1.0)
+AM_INIT_AUTOMAKE([dist-bzip2])
dnl kernel style compile messages
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
@@ -9,9 +11,11 @@
AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_INSTALL
-AC_PROG_RANLIB
+LT_INIT
AC_PROG_LIBTOOL
+AC_CONFIG_MACRO_DIR([m4])
+
dnl checks for header files
AC_HEADER_STDC
AC_CHECK_HEADERS(execinfo.h sys/select.h)