fix typo and add m4 file to EXTRA_DIST
[libt2n] / configure.in
index 967635f..1b30c42 100644 (file)
@@ -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
+LIBT2N_CFLAGS="-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"
+
+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 example-codegen/Makefile)