Change gccxml wrapper to work with older bash version. Hopefull this doesn't break...
[libt2n] / configure.in
... / ...
CommitLineData
1AC_INIT(configure.in)
2
3AM_CONFIG_HEADER(config.h)
4dnl AC_CONFIG_HEADERS([config.h:config.h.in])
5AM_INIT_AUTOMAKE(libt2n, 0.5)
6
7AC_DEFINE(PROTOCOL_VERSION, 1, [protocol version used (integers, increase version if incompatible)])
8
9AC_LANG_CPLUSPLUS
10AC_PROG_CXX
11AM_PROG_LIBTOOL
12
13dnl check for doxygen
14AC_PATH_PROG(DOXYGEN, doxygen)
15AM_CONDITIONAL(HAVE_DOXYGEN, test -n $DOXYGEN)
16
17AM_CONDITIONAL(AUTOCHECK, test "$enable_autocheck" = yes)
18
19AX_BOOST_BASE([1.33])
20AX_BOOST_SERIALIZATION
21AX_BOOST_UNIT_TEST_FRAMEWORK
22if test "x$BOOST_SERIALIZATION_LIB" = "x"; then
23 echo "Sorry, we need the Serialization-Lib from Boost."
24 exit 1
25fi
26if test "x$BOOST_UNIT_TEST_FRAMEWORK_LIB" = "x"; then
27 AC_MSG_ERROR([Sorry, we need the unit test framework from Boost.])
28fi
29
30PKG_CHECK_MODULES(XMLPP, libxml++-2.6 >= 2.8.1)
31AC_SUBST(XMLPP_CFLAGS)
32AC_SUBST(XMLPP_LIBS)
33
34dnl fake installed libt2n (codegen) for example-codegen
35dnl LIBT2N_CFLAGS="-I\$(top_srcdir)/src @BOOST_CPPFLAGS@ -I\$(top_srcdir)/codegen"
36dnl LIBT2N_LIBS="\$(top_builddir)/src/libt2n.la @BOOST_SERIALIZATION_LIB@ @BOOST_LDFLAGS@"
37dnl LIBT2N_CODEGEN="\$(top_builddir)/codegen/libt2n-codegen"
38dnl LIBT2N_CLIENT_PCTEMPLATE="\$(top_srcdir)/codegen/clientlib.pc.in"
39
40AC_SUBST(LIBT2N_CFLAGS)
41AC_SUBST(LIBT2N_LIBS)
42AC_SUBST(LIBT2N_CODEGEN)
43AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE)
44
45dnl todo: do not create .pc file in configure but in make
46dnl see also autoconf manual "Installation Directory Variables"
47
48AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile examples-codegen/Makefile)