X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.ac;h=c6bad937875585d7c6a6737f02a3aed5fe06ba78;hb=e6db0e02a1c60fca3405cb5ecec96d2176a0be09;hp=55755ef10ca86240ed97c962c1574845e76b3415;hpb=e2a894e39368873395f9d6e60010569bcd740b59;p=metaproxy-moved-to-github.git diff --git a/configure.ac b/configure.ac index 55755ef..c6bad93 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,9 @@ # Autoconf and automake setup AC_PREREQ([2.60]) -AC_INIT([metaproxy],[1.3.9],[metaproxy-help@indexdata.dk]) +AC_INIT([metaproxy], +m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']), +[metaproxy-help@indexdata.dk]) AC_CONFIG_HEADERS([src/config.hpp]) @@ -35,17 +37,19 @@ AC_CHECK_LIB([m],[main]) AC_CHECK_FUNCS([localtime_r]) +USEMARCON_INIT + ## YAZPP checks YAZPP_INIT([threads],[1.2.7]) if test -z "$YAZPPLIB"; then AC_MSG_ERROR([YAZ++ development libraries missing]) fi CPPFLAGS="$YAZPPINC $CPPFLAGS" -AC_MSG_CHECKING([if YAZ is version 4.2.14 or later]) +AC_MSG_CHECKING([if YAZ is version 4.2.28 or later]) AC_COMPILE_IFELSE( [AC_LANG_PROGRAM([[#include ]], [[ -#if YAZ_VERSIONL < 0x4020e +#if YAZ_VERSIONL < 0x4021c #error too old #endif ]])], @@ -89,7 +93,7 @@ else fi AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git]) -AC_CONFIG_FILES([ +AC_OUTPUT([ metaproxy-config Doxyfile Makefile @@ -108,12 +112,6 @@ AC_CONFIG_FILES([ ]) -AC_OUTPUT - - -# postamble - - echo \ "------------------------------------------------------------------------