2 ## Process this file with autoconf to produce a configure script.
4 # Autoconf and automake setup
6 AC_INIT([metaproxy],[1.1.4],[metaproxy-help@indexdata.dk])
8 AC_CONFIG_HEADERS([src/config.hpp])
10 AC_CONFIG_SRCDIR([configure.ac])
11 AC_CONFIG_AUX_DIR([config])
14 AM_INIT_AUTOMAKE([1.9])
24 # Default language to use for tests (some tests may switch to C++)
27 if test "$enable_shared" = "yes"; then
28 AC_DEFINE([HAVE_DL_SUPPORT],[1],
29 [Define to 1 if you have shared module support])
32 # Checks for libraries.
33 AC_CHECK_LIB([dl],[dlopen])
34 AC_CHECK_LIB([m],[main])
36 AC_CHECK_FUNCS([localtime_r])
39 YAZPP_INIT([threads],[1.2.2])
40 if test -z "$YAZPPLIB"; then
41 AC_MSG_ERROR([YAZ++ development libraries missing])
44 CPPFLAGS="$YAZPPINC $CPPFLAGS"
46 ID_BOOST([thread test],[1.33])
47 if test -z "${BOOST_THREAD_LIB}"; then
48 AC_MSG_ERROR([Boost thread development libraries required])
50 if test -z "${BOOST_TEST_LIB}"; then
51 AC_MSG_ERROR([Boost unit test framework libraries required])
54 AC_CHECK_HEADERS([sys/select.h sys/socket.h])
56 if test -d ${srcdir}/.git; then
57 SHA1=`git show --pretty=format:%H|head -1`
59 SHA1=`head -1 ${srcdir}/ChangeLog|awk '{print $2}'`
61 AC_DEFINE_UNQUOTED([VERSION_SHA1], "$SHA1", [SHA-1 from Git])
66 include/Makefile include/metaproxy/Makefile
85 "------------------------------------------------------------------------
89 Source code location: ${srcdir}
90 CPP Preprocessor: ${CPP}
91 CPP Preprocessor flags: ${CPPFLAGS}
93 CXX Compiler flags: ${CXXFLAGS}
94 Linker flags: ${LDFLAGS}
96 Host System Type: ${host}
97 Install path: ${prefix}
101 Boost Version: ${BOOST_VERSION}
102 Boost Include: ${BOOST_CPPFLAGS}
103 Boost linker flags: ${BOOST_LDFLAGS}
104 Boost Libs: ${BOOST_DATE_TIME_LIB} ${BOOST_THREAD_LIB}
105 YAZPP Version: ${YAZPPVERSION}
106 YAZPP Include: ${YAZPPINC}
107 YAZPP La Lib: ${YAZPPLALIB}
108 YAZPP Lib: ${YAZPPLIB}
109 Bugreport: ${PACKAGE_BUGREPORT}
111 ------------------------------------------------------------------------"
113 dnl mode:shell-script
114 dnl sh-indentation: 2
115 dnl sh-basic-offset: 4