On Thu, Aug 8, 2013 at 2:47 PM, william eddie <willmeddie@xxxxxxxxx> wrote: > > > In this case how should I handle the dependency on libwebsockets? > > should the transport be conditionally included, based on ./configure > --with-wss or alike? Sounds right, the library uses pkgconfig. so you can leverage pkgconf m4 macros https://github.com/pkgconf/pkgconf/blob/master/pkg.m4#L281 So PKG_HAVE_DEFINE_WITH_MODULES([WSS], [libwebsockets], [Support for websockets]) (pkg.m4 has to be added to our m4 dir) and updating the Makefile.am accordingly is all you need. Ping me on irc if you need further details. lu