If you are using GNU autoconf, you do not need to call pkg-config directly. Use the following macro to determine if libshveu is available:
PKG_CHECK_MODULES(SHVEU, shveu >= 0.5.0,
HAVE_SHVEU="yes", HAVE_SHVEU="no")
if test "x$HAVE_SHVEU" = "xyes" ; then
AC_SUBST(SHVEU_CFLAGS)
AC_SUBST(SHVEU_LIBS)
fi
If libshveu is found, HAVE_SHVEU will be set to "yes", and the autoconf variables SHVEU_CFLAGS and SHVEU_LIBS will be set appropriately.
If you are not using GNU autoconf in your project, you can use the pkg-config tool directly to determine the correct compiler options.
SHVEU_CFLAGS=`pkg-config --cflags shveu`
SHVEU_LIBS=`pkg-config --libs shveu`
1.6.3