2 ## Process this file with autoconf to produce a configure script.
4 # Autoconf and automake setup
7 m4_esyscmd([. ./IDMETA; echo $VERSION|tr -d '\n']),
8 [metaproxy-help@indexdata.dk])
10 AC_CONFIG_HEADERS([src/config.hpp])
12 AC_CONFIG_SRCDIR([configure.ac])
13 AC_CONFIG_AUX_DIR([config])
16 AM_INIT_AUTOMAKE([1.9])
26 # Default language to use for tests (some tests may switch to C++)
29 if test "$enable_shared" = "yes"; then
30 AC_DEFINE([HAVE_DL_SUPPORT],[1],
31 [Define to 1 if you have shared module support])
34 # Checks for libraries.
35 AC_CHECK_LIB([dl],[dlopen])
36 AC_CHECK_LIB([m],[main])
38 AC_CHECK_FUNCS([localtime_r])
43 YAZPP_INIT([threads],[1.4.0])
44 if test -z "$YAZPPLIB"; then
45 AC_MSG_ERROR([YAZ++ development libraries missing])
47 CPPFLAGS="$YAZPPINC $CPPFLAGS"
48 AC_MSG_CHECKING([if YAZ is version 4.2.50 or later])
50 [AC_LANG_PROGRAM([[#include <yaz/yaz-version.h>]],
52 #if YAZ_VERSIONL < 0x40232
56 [AC_MSG_RESULT([yes])],
58 AC_MSG_ERROR([newer version of YAZ required])]
62 ID_BOOST([thread test regex],[1.33])
63 if test -z "${BOOST_THREAD_LIB}"; then
64 AC_MSG_ERROR([Boost thread development libraries required])
66 if test -z "${BOOST_TEST_LIB}"; then
67 AC_MSG_ERROR([Boost unit test framework libraries required])
69 if test -z "${BOOST_REGEX_LIB}"; then
70 AC_MSG_ERROR([Boost regex development libraries required])
75 *) AC_MSG_ERROR([YAZ not compiled with Libxslt support]) ;;
78 AC_CHECK_HEADERS([sys/select.h sys/socket.h])
80 if test -d ${srcdir}/.git; then
81 SHA1=`git show --pretty=format:%H|head -1`
83 SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
85 AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git])
91 include/Makefile include/metaproxy/Makefile
102 sed s%echo_source=yes%echo_source=no%g < metaproxy-config > src/metaproxy-config && chmod +x metaproxy-config src/metaproxy-config
107 "------------------------------------------------------------------------
111 Source code location: ${srcdir}
112 CPP Preprocessor: ${CPP}
113 CPP Preprocessor flags: ${CPPFLAGS}
115 CXX Compiler flags: ${CXXFLAGS}
116 Linker flags: ${LDFLAGS}
118 Host System Type: ${host}
119 Install path: ${prefix}
120 Automake: ${AUTOMAKE}
123 Boost Version: ${BOOST_VERSION}
124 Boost Include: ${BOOST_CPPFLAGS}
125 Boost linker flags: ${BOOST_LDFLAGS}
126 Boost Libs: ${BOOST_DATE_TIME_LIB} ${BOOST_THREAD_LIB}
127 YAZPP Version: ${YAZPPVERSION}
128 YAZPP Include: ${YAZPPINC}
129 YAZPP La Lib: ${YAZPPLALIB}
130 YAZPP Lib: ${YAZPPLIB}
131 Bugreport: ${PACKAGE_BUGREPORT}
133 ------------------------------------------------------------------------"
135 dnl mode:shell-script
136 dnl sh-indentation: 2
137 dnl sh-basic-offset: 4