Using the new ID_BOOST macro.
[metaproxy-moved-to-github.git] / configure.ac
1 ## -*- Autoconf -*-
2 ## Process this file with autoconf to produce a configure script.
3
4 # Autoconf and automake setup
5 AC_PREREQ(2.60)
6 AC_INIT([metaproxy],[1.0.13],[metaproxy-help@indexdata.dk])
7
8 AC_CONFIG_HEADERS(src/config.hpp)
9
10 AC_CONFIG_SRCDIR([configure.ac]) 
11 AC_CONFIG_AUX_DIR([config])
12 AC_CANONICAL_SYSTEM
13 ##AC_PREFIX_DEFAULT(`pwd`/install) 
14
15 AM_INIT_AUTOMAKE([1.9])
16
17 # Checks for programs.
18 AC_PROG_CXX
19 AC_PROG_CXXCPP
20 AC_PROG_INSTALL
21 AC_PROG_LN_S
22 AC_PROG_MAKE_SET
23 AC_PROG_RANLIB
24 AM_PROG_LIBTOOL
25
26 # Default language to use for tests (some tests may switch to C++)
27 AC_LANG(C)
28
29 if test "$enable_shared" = "yes"; then
30     AC_DEFINE([HAVE_DL_SUPPORT],[1],
31         [Define to 1 if you have shared module support])
32 fi
33
34 # Checks for libraries.
35 AC_CHECK_LIB(dl,dlopen)
36 AC_CHECK_LIB(m,main)
37
38 AC_CHECK_FUNCS([localtime_r])
39
40 ## YAZPP checks
41 YAZPP_INIT([threads],[1.1.0])
42 if test -z "$YAZPPLIB"; then
43     AC_MSG_ERROR([YAZ++ development libraries missing])
44 fi
45 YAZ_DOC
46 CPPFLAGS="$YAZPPINC $CPPFLAGS"
47
48 # check for Boost C++ development libs and headers
49
50 ID_BOOST([thread test], [1.33])
51
52 # Checks for header files.
53 ##AC_HEADER_STDC
54 ##AC_HEADER_SYS_WAIT
55 ##AC_HEADER_TIME 
56 AC_CHECK_HEADERS(sys/select.h sys/socket.h)
57
58 # Checks for typedefs, structures, and compiler characteristics.
59 ##AC_TYPE_SIZE_T 
60 ##AC_CHECK_SIZEOF(int)
61 ##AC_CHECK_SIZEOF(long int)
62
63 # Checks for library functions.
64
65 AC_CONFIG_FILES([
66         Doxyfile
67         Makefile
68         src/Makefile
69         src/Jamfile
70         xml/Makefile
71         xml/schema/Makefile
72         xml/xslt/Makefile
73         doc/Makefile
74         doc/local.ent
75         doc/common/Makefile
76         doc/common/print.dsl
77         etc/Makefile
78 ])
79
80 AC_OUTPUT
81
82
83 # postamble
84
85
86 echo \
87 "------------------------------------------------------------------------
88
89   Package:                    ${PACKAGE}
90   Version:                    ${VERSION}
91   Source code location:       ${srcdir}
92   CPP Preprocessor:           ${CPP}
93   CPP Preprocessor flags:     ${CPPFLAGS}
94   CXX Compiler:               ${CXX}
95   CXX Compiler flags:         ${CXXFLAGS}
96   Linker flags:               ${LDFLAGS}
97   Linked libs:                ${LIBS}
98   Host System Type:           ${host}
99   Install path:               ${prefix}
100   Automake:                   ${AUTOMAKE}
101   Archiver:                   ${AR}
102   Ranlib:                     ${RANLIB}
103   Boost Version:              ${BOOST_VERSION}               
104   Boost Include:              ${BOOST_CPPFLAGS}               
105   Boost linker flags:         ${BOOST_LDFLAGS}               
106   Boost Libs:                 ${BOOST_DATE_TIME_LIB} ${BOOST_THREAD_LIB}               
107   YAZPP Version:              ${YAZPPVERSION}
108   YAZPP Include:              ${YAZPPINC}
109   YAZPP La Lib:               ${YAZPPLALIB}
110   YAZPP Lib:                  ${YAZPPLIB}
111   Bugreport:                  ${PACKAGE_BUGREPORT}
112
113 ------------------------------------------------------------------------"
114 dnl Local Variables:
115 dnl mode:shell-script
116 dnl sh-indentation: 2
117 dnl sh-basic-offset: 4
118 dnl End: