X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=configure.ac;h=d58e72c4e19e2663efe38e847333724127a54b12;hb=87b0b422fffae5d350fc0110aa1c01745dfa1db3;hp=84b14f4a1d0170a3906f2fa82ffe65f5a530d283;hpb=7216ebcd3cc22c1d47010a94d5152f7ae3a53609;p=metaproxy-moved-to-github.git diff --git a/configure.ac b/configure.ac index 84b14f4..d58e72c 100644 --- a/configure.ac +++ b/configure.ac @@ -3,7 +3,7 @@ # Autoconf and automake setup AC_PREREQ([2.60]) -AC_INIT([metaproxy],[1.0.13],[metaproxy-help@indexdata.dk]) +AC_INIT([metaproxy],[1.2.6],[metaproxy-help@indexdata.dk]) AC_CONFIG_HEADERS([src/config.hpp]) @@ -36,7 +36,7 @@ AC_CHECK_LIB([m],[main]) AC_CHECK_FUNCS([localtime_r]) ## YAZPP checks -YAZPP_INIT([threads],[1.1.0]) +YAZPP_INIT([threads],[1.2.6]) if test -z "$YAZPPLIB"; then AC_MSG_ERROR([YAZ++ development libraries missing]) fi @@ -44,14 +44,28 @@ YAZ_DOC CPPFLAGS="$YAZPPINC $CPPFLAGS" ID_BOOST([thread test],[1.33]) +if test -z "${BOOST_THREAD_LIB}"; then + AC_MSG_ERROR([Boost thread development libraries required]) +fi +if test -z "${BOOST_TEST_LIB}"; then + AC_MSG_ERROR([Boost unit test framework libraries required]) +fi AC_CHECK_HEADERS([sys/select.h sys/socket.h]) +if test -d ${srcdir}/.git; then + SHA1=`git show --pretty=format:%H|head -1` +else + SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'` +fi +AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git]) + AC_CONFIG_FILES([ + metaproxy-config Doxyfile Makefile + include/Makefile include/metaproxy/Makefile src/Makefile - src/Jamfile xml/Makefile xml/schema/Makefile xml/xslt/Makefile @@ -60,6 +74,9 @@ AC_CONFIG_FILES([ doc/common/Makefile doc/common/print.dsl etc/Makefile +],[ + sed s%echo_source=yes%echo_source=no%g < metaproxy-config > src/metaproxy-config && chmod +x metaproxy-config src/metaproxy-config + ]) AC_OUTPUT