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])
41 YAZPP_INIT([threads],[1.2.7])
42 if test -z "$YAZPPLIB"; then
43 AC_MSG_ERROR([YAZ++ development libraries missing])
45 CPPFLAGS="$YAZPPINC $CPPFLAGS"
46 AC_MSG_CHECKING([if YAZ is version 4.2.22 or later])
48 [AC_LANG_PROGRAM([[#include <yaz/yaz-version.h>]],
50 #if YAZ_VERSIONL < 0x40216
54 [AC_MSG_RESULT([yes])],
56 AC_MSG_ERROR([newer version of YAZ required])]
60 ID_BOOST([thread test regex],[1.33])
61 if test -z "${BOOST_THREAD_LIB}"; then
62 AC_MSG_ERROR([Boost thread development libraries required])
64 if test -z "${BOOST_TEST_LIB}"; then
65 AC_MSG_ERROR([Boost unit test framework libraries required])
67 if test -z "${BOOST_REGEX_LIB}"; then
68 AC_MSG_ERROR([Boost regex development libraries required])
73 YAZ_LIBXML2([xml_avail=true])
75 YAZ_LIBXSLT([xslt_avail=true])
77 AC_MSG_ERROR([Libxml2 development files not found])
82 AC_MSG_ERROR([Libxslt development files not found])
85 AC_CHECK_HEADERS([sys/select.h sys/socket.h])
87 if test -d ${srcdir}/.git; then
88 SHA1=`git show --pretty=format:%H|head -1`
90 SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
92 AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git])
98 include/Makefile include/metaproxy/Makefile
109 sed s%echo_source=yes%echo_source=no%g < metaproxy-config > src/metaproxy-config && chmod +x metaproxy-config src/metaproxy-config
114 "------------------------------------------------------------------------
118 Source code location: ${srcdir}
119 CPP Preprocessor: ${CPP}
120 CPP Preprocessor flags: ${CPPFLAGS}
122 CXX Compiler flags: ${CXXFLAGS}
123 Linker flags: ${LDFLAGS}
125 Host System Type: ${host}
126 Install path: ${prefix}
127 Automake: ${AUTOMAKE}
130 Boost Version: ${BOOST_VERSION}
131 Boost Include: ${BOOST_CPPFLAGS}
132 Boost linker flags: ${BOOST_LDFLAGS}
133 Boost Libs: ${BOOST_DATE_TIME_LIB} ${BOOST_THREAD_LIB}
134 YAZPP Version: ${YAZPPVERSION}
135 YAZPP Include: ${YAZPPINC}
136 YAZPP La Lib: ${YAZPPLALIB}
137 YAZPP Lib: ${YAZPPLIB}
138 Bugreport: ${PACKAGE_BUGREPORT}
140 ------------------------------------------------------------------------"
142 dnl mode:shell-script
143 dnl sh-indentation: 2
144 dnl sh-basic-offset: 4