Version 2.0.58
[idzebra-moved-to-github.git] / configure.ac
index 65c4883..db1eb89 100644 (file)
@@ -1,8 +1,10 @@
 dnl This file is part of the Zebra server.
-dnl   Copyright (C) 1994-2011 Index Data
+dnl Copyright (C) Index Data. See LICENSE.zebra for details.
 dnl
 AC_PREREQ(2.60)
-AC_INIT([idzebra],[2.0.50],[zebra-help@indexdata.dk])
+AC_INIT([idzebra],
+m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
+[zebra-help@indexdata.dk])
 AC_CONFIG_HEADERS([include/config.h])
 AC_CONFIG_SRCDIR([configure.ac])
 AC_CONFIG_AUX_DIR([config])
@@ -309,7 +311,7 @@ AC_OUTPUT([
   include/Makefile include/idzebra/Makefile
   tab/Makefile
   doc/Makefile
-  doc/local.ent
+  doc/local0.ent
   doc/common/Makefile
   doc/common/print.dsl
   test/Makefile test/gils/Makefile test/usmarc/Makefile test/api/Makefile
@@ -332,7 +334,11 @@ AC_OUTPUT([
   Doxyfile
   win/version.nsi
   include/idzebra/version.h
-],[sed s%echo_source=yes%echo_source=no%g < idzebra-config-2.0 > util/idzebra-config-2.0 && chmod +x idzebra-config-2.0 util/idzebra-config-2.0])
+],[
+       sed s%echo_source=yes%echo_source=no%g < idzebra-config-2.0 > util/idzebra-config-2.0 && chmod +x idzebra-config-2.0 util/idzebra-config-2.0
+       diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null \
+               || cp doc/local0.ent doc/local.ent
+])
 
 echo \
 "------------------------------------------------------------------------