Main Page | Modules | Data Structures | File List | Globals | Related Pages

Building against libannodex

Using GNU autoconf

If you are using GNU autoconf, you do not need to call pkg-config directly. Use the following macro to determine if libannodex is available:

PKG_CHECK_MODULES(ANNODEX, annodex >= 0.6.0, HAVE_ANNODEX="yes", HAVE_ANNODEX="no") if test "x$HAVE_ANNODEX" = "xyes" ; then AC_SUBST(ANNODEX_CFLAGS) AC_SUBST(ANNODEX_LIBS) fi

If libannodex is found, HAVE_ANNODEX will be set to "yes", and the autoconf variables ANNODEX_CFLAGS and ANNODEX_LIBS will be set appropriately.

Determining compiler options with pkg-config

If you are not using GNU autoconf in your project, you can use the pkg-config tool directly to determine the correct compiler options.

ANNODEX_CFLAGS=`pkg-config --cflags annodex`

ANNODEX_LIBS=`pkg-config --libs annodex`


Generated on Sat May 22 19:44:49 2004 for libannodex by doxygen 1.3.5