Hi Wesley,

* Wesley Smith wrote on Tue, Jun 29, 2010 at 02:52:38PM CEST:
> I'm looking for some sample code on how to best check for an optional
> dependencies (like gstreamer or some other lib) and set a compilation
> flag like -DMYLIB_HAVE_GSTREAMER.
> 
> I'm not exactly which one of these functions or how to use them to do
> this, so any pointers to a sample is much appreciated.
> AC_CHECK_LIB
> AC_SEARCH_LIBS

Do the examples in `info Autoconf "External Software"' help?
For macro definition, see e.g., `info Autoconf --index AC_CHECK_LIB'.
If you have any code at all, even if it doesn't work, show it, that
way it is usually easier to help.

Cheers,
Ralf

Reply via email to