X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=configure.in;h=eeb11723a3f04f0831cf5404674bcfbfa78ed194;hp=a27fa39477a7ed8f1d7816fa5775b6b716c9f6c8;hb=59c8cfaae8e45265c31da3614c5d1b89277e2148;hpb=ac7fdc22899c0c493fda5fdb3a4cb67e77504a6b diff --git a/configure.in b/configure.in index a27fa39..eeb1172 100644 --- a/configure.in +++ b/configure.in @@ -1,10 +1,44 @@ AC_INIT(configure.in) AM_CONFIG_HEADER(config.h) -AM_INIT_AUTOMAKE(libt2n, 0.1) +dnl AC_CONFIG_HEADERS([config.h:config.h.in]) +AM_INIT_AUTOMAKE(libt2n, 0.2) + +AC_DEFINE(PROTOCOL_VERSION, 1, [protocol version used (integers, increase version if incompatible)]) AC_LANG_CPLUSPLUS AC_PROG_CXX AM_PROG_LIBTOOL -AC_OUTPUT(Makefile src/Makefile) +dnl check for doxygen +AC_PATH_PROG(DOXYGEN, doxygen) +AM_CONDITIONAL(HAVE_DOXYGEN, test -n $DOXYGEN) + +AM_CONDITIONAL(AUTOCHECK, test "$enable_autocheck" = yes) +AM_PATH_CPPUNIT(1.8.0) + +AX_BOOST([1.33]) +if test "x$BOOST_SERIALIZATION_LIB" = "x"; then + echo "Sorry, we need the Serialization-Lib from Boost." + exit 1 +fi + +PKG_CHECK_MODULES(XMLPP, libxml++-2.6 >= 2.8.1) +AC_SUBST(XMLPP_CFLAGS) +AC_SUBST(XMLPP_LIBS) + +dnl fake installed libt2n (codegen) for example-codegen +dnl LIBT2N_CFLAGS="-I\$(top_srcdir)/src @BOOST_CPPFLAGS@ @CPPUNIT_CFLAGS@ -I\$(top_srcdir)/codegen" +dnl LIBT2N_LIBS="\$(top_builddir)/src/libt2n.la @BOOST_SERIALIZATION_LIB@ @BOOST_LDFLAGS@" +dnl LIBT2N_CODEGEN="\$(top_builddir)/codegen/libt2n-codegen" +dnl LIBT2N_CLIENT_PCTEMPLATE="\$(top_srcdir)/codegen/clientlib.pc.in" + +AC_SUBST(LIBT2N_CFLAGS) +AC_SUBST(LIBT2N_LIBS) +AC_SUBST(LIBT2N_CODEGEN) +AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE) + +dnl todo: do not create .pc file in configure but in make +dnl see also autoconf manual "Installation Directory Variables" + +AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile examples-codegen/Makefile)