X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=configure.in;h=65137d840ca11b65cc144c0f629ef88bcaf1f5c6;hp=2522ab0c374eab981dd2a14038cdb6ee2f8b9f83;hb=44a58adde741c1cde579b8d2a678906023475536;hpb=28cb45a5725e9c6054d7048a9bf969b9f2c94d64 diff --git a/configure.in b/configure.in index 2522ab0..65137d8 100644 --- a/configure.in +++ b/configure.in @@ -23,4 +23,22 @@ if test "x$BOOST_SERIALIZATION_LIB" = "x"; then exit 1 fi -AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile) +PKG_CHECK_MODULES(XMLPP, libxml++-2.6 >= 2.8.1) +AC_SUBST(XMLPP_CFLAGS) +AC_SUBST(XMLPP_LIBS) + +dnl fake installed libt2n (codegen) +dnl todo: remove codegen include path (codegen-stubhead.hxx will be removed) +LIBT2N_CPPFLAGS="-I\$(top_srcdir)/src @BOOST_CPPFLAGS@ @CPPUNIT_CFLAGS@ -I\$(top_srcdir)/codegen" +LIBT2N_LIBS="\$(top_builddir)/src/libt2n.la @BOOST_SERIALIZATION_LIB@ @BOOST_LDFLAGS@" +LIBT2N_CODEGEN="\$(top_builddir)/codegen/libt2n-codegen" +LIBT2N_CLIENT_PC_IN = "\$(top_srcdir)/codegen/clientlib.pc.in" +LIBT2N_CODEGEN_MAKESNIPPET="\$(top_srcdir)/codegen/codegen.make" + +AC_SUBST(LIBT2N_CPPFLAGS) +AC_SUBST(LIBT2N_LIBS) +AC_SUBST(LIBT2N_CODEGEN) +AC_SUBST(LIBT2N_CLIENT_PC_IN) +AC_SUBST(LIBT2N_CODEGEN_MAKESNIPPET) + +AC_OUTPUT(Makefile doc/Doxyfile doc/Makefile src/Makefile libt2n.pc libt2n.spec test/Makefile examples/Makefile codegen/Makefile example-codegen/Makefile)