2 ## Process this file with autoconf to produce a configure script.
4 # Autoconf and automake setup
6 AC_INIT([metaproxy],[1.0.9],[metaproxy-help@indexdata.dk])
8 AC_CONFIG_HEADERS(src/config.hpp)
10 AC_CONFIG_SRCDIR([configure.ac])
11 AC_CONFIG_AUX_DIR([config])
13 ##AC_PREFIX_DEFAULT(`pwd`/install)
15 AM_INIT_AUTOMAKE([1.8])
17 # Checks for programs.
26 # Use C++ compilers only for tests
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)
38 # check for Boost C++ development libs and headers
40 AX_BOOST_DATE_TIME(1.32)
41 AX_BOOST_PROGRAM_OPTIONS(1.32)
43 AX_BOOST_UNIT_TEST_FRAMEWORK(1.32)
45 LD_FLAGS="$LD_FLAGS $BOOST_LDFLAGS"
46 #AM_LDLFAGS="$AM_LDLFAGS\
48 $BOOST_DATE_TIME_LIB $BOOST_PROGRAM_OPTIONS_LIB $BOOST_THREAD_LIB";
50 if test "$ax_cv_boost_base" = "no"; then
51 AC_MSG_ERROR([install libboost-dev or similar])
53 if test "$ax_cv_boost_date_time" = "no"; then
54 AC_MSG_ERROR([install libboost-date-time-dev or similar])
56 if test "$ax_cv_boost_program_options" = "no"; then
57 AC_MSG_ERROR([install libboost-program-options-dev or similar])
59 if test "$ax_cv_boost_thread" = "no"; then
60 AC_MSG_ERROR([install libboost-thread-dev or similar])
62 if test "$ax_cv_boost_unit_test_framework" = "no"; then
63 AC_MSG_ERROR([install libboost-test-dev or similar])
68 YAZPP_INIT(threads,1.0.2)
69 if test -z "$YAZPPLIB"; then
70 AC_MSG_ERROR([YAZ++ development libraries missing])
74 # Checks for header files.
78 AC_CHECK_HEADERS(sys/select.h sys/socket.h iostream list vector stdexcept)
80 # Checks for typedefs, structures, and compiler characteristics.
82 ##AC_CHECK_SIZEOF(int)
83 ##AC_CHECK_SIZEOF(long int)
86 # Checks for library functions.
110 "------------------------------------------------------------------------
114 Source code location: ${srcdir}
115 CPP Preprocessor: ${CPP}
116 CPP Preprocessor flags: ${CPPFLAGS}
118 CXX Compiler flags: ${CXXFLAGS}
119 Linker flags: ${LDFLAGS}
121 Host System Type: ${host}
122 Install path: ${prefix}
123 Automake: ${AUTOMAKE}
126 YAZPP Version: ${YAZPPVERSION}
127 YAZPP Include: ${YAZPPINC}
128 YAZPP La Lib: ${YAZPPLALIB}
129 YAZPP Lib: ${YAZPPLIB}
130 Bugreport: ${PACKAGE_BUGREPORT}
132 ------------------------------------------------------------------------"