PKG_CHECK_MODULES(REMIX, remix >= 0.2.0, HAVE_REMIX="yes", HAVE_REMIX="no") if test "x$HAVE_REMIX" = "xyes" ; then AC_SUBST(REMIX_CFLAGS) AC_SUBST(REMIX_LIBS) fiIf libremix is found, HAVE_REMIX will be set to "yes", and the autoconf variables REMIX_CFLAGS and REMIX_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.
REMIX_CFLAGS=`pkg-config --cflags remix`
REMIX_LIBS=`pkg-config --libs remix`