compiler: add "C::nameinfix" annotation

allows changing output filenames from "foo.capnp.c" to
"foo.capnpSOMETHING.c" where SOMETHING is the argument to the
annotation.
This commit is contained in:
David Lamparter 2016-06-22 15:16:40 +02:00
parent 87591da455
commit 5d787b698e
4 changed files with 71 additions and 3 deletions

View file

@ -31,6 +31,15 @@ if test x"${enable_werror}" = x"yes" ; then
fi
AC_SUBST(WERROR)
AC_ARG_WITH(capnpdir,
AS_HELP_STRING([--with-capnpdir=DIR], [directory to install c.capnp file in (default: $includedir/capnp)]))
if test x"${with_capnpdir}" != x ; then
capnpdir="${with_capnpdir}"
else
capnpdir="${includedir}/capnp"
fi
AC_SUBST(capnpdir)
#PKG_CHECK_MODULES(CAPNP, [capnp >= 0.5.2], [], [
# AC_MSG_ERROR([capnproto base package (0.5.2 or newer) not found])
#])