X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=configure.in;h=1d07fab9f7ee301db9824d92aaa4c415673df69c;hp=967635fdcbfae1c9b370902136190e0963138729;hb=044cb458410020e50b1c40b7b5078fc203669ee1;hpb=eea21b24bf7f76e16a25f17c2e466635d09fbf3b diff --git a/configure.in b/configure.in index 967635f..1d07fab 100644 --- a/configure.in +++ b/configure.in @@ -27,4 +27,18 @@ 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 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_PCTEMPLATE="\$(top_srcdir)/codegen/clientlib.pc.in" +LIBT2N_CODEGEN_MAKESNIPPET="include \$(top_srcdir)/codegen/codegen.make" + +AC_SUBST(LIBT2N_CPPFLAGS) +AC_SUBST(LIBT2N_LIBS) +AC_SUBST(LIBT2N_CODEGEN) +AC_SUBST(LIBT2N_CLIENT_PCTEMPLATE) +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)