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) fiIf 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`