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.1])
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.69 or later])
50 [AC_LANG_PROGRAM([[#include <yaz/yaz-version.h>]],
52 #if YAZ_VERSIONL < 0x40245
56 [AC_MSG_RESULT([yes])],
58 AC_MSG_ERROR([newer version of YAZ required])]
62 ID_BOOST([system 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
103 diff doc/local.ent doc/local0.ent >/dev/null 2>/dev/null \
104 || cp doc/local0.ent doc/local.ent
108 "------------------------------------------------------------------------
112 Source code location: ${srcdir}
113 CPP Preprocessor: ${CPP}
114 CPP Preprocessor flags: ${CPPFLAGS}
116 CXX Compiler flags: ${CXXFLAGS}
117 Linker flags: ${LDFLAGS}
119 Host System Type: ${host}
120 Install path: ${prefix}
121 Automake: ${AUTOMAKE}
124 Boost Version: ${BOOST_VERSION}
125 Boost Include: ${BOOST_CPPFLAGS}
126 Boost linker flags: ${BOOST_LDFLAGS}
127 Boost Libs: ${BOOST_DATE_TIME_LIB} ${BOOST_THREAD_LIB}
128 YAZPP Version: ${YAZPPVERSION}
129 YAZPP Include: ${YAZPPINC}
130 YAZPP La Lib: ${YAZPPLALIB}
131 YAZPP Lib: ${YAZPPLIB}
132 Bugreport: ${PACKAGE_BUGREPORT}
134 ------------------------------------------------------------------------"
136 dnl mode:shell-script
137 dnl sh-indentation: 2
138 dnl sh-basic-offset: 4