Building against libfishsound

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 libfishsound is available:

 PKG_CHECK_MODULES(FISHSOUND, fishsound >= 0.6.0,
                   HAVE_FISHSOUND="yes", HAVE_FISHSOUND="no")
 if test "x$HAVE_FISHSOUND" = "xyes" ; then
   AC_SUBST(FISHSOUND_CFLAGS)
   AC_SUBST(FISHSOUND_LIBS)
 fi
 

(Note that if your application requires FLAC support, you should check for a version of fishsound >= 0.9.0).

If libfishsound is found, HAVE_FISHSOUND will be set to "yes", and the autoconf variables FISHSOUND_CFLAGS and FISHSOUND_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.

 FISHSOUND_CFLAGS=`pkg-config --cflags fishsound`
 FISHSOUND_LIBS=`pkg-config --libs fishsound`
 
Generated on Tue Jun 8 12:57:06 2010 for libfishsound by  doxygen 1.6.3