<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>liboggz: Building against liboggz</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.6.2-20100208 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="annotated.html"><span>Data Structures</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> </div> <div class="contents"> <h1>Building against liboggz</h1><table border="0" cellpadding="0" cellspacing="0"> </table> <h2><a class="anchor" id="autoconf"> Using GNU autoconf</a></h2> <p>If you are using GNU autoconf, you do not need to call pkg-config directly. Use the following macro to determine if liboggz is available:</p> <pre> PKG_CHECK_MODULES(OGGZ, oggz >= 0.6.0, HAVE_OGGZ="yes", HAVE_OGGZ="no") if test "x$HAVE_OGGZ" = "xyes" ; then AC_SUBST(OGGZ_CFLAGS) AC_SUBST(OGGZ_LIBS) fi </pre><p>If liboggz is found, HAVE_OGGZ will be set to "yes", and the autoconf variables OGGZ_CFLAGS and OGGZ_LIBS will be set appropriately.</p> <h2><a class="anchor" id="pkg-config"> Determining compiler options with pkg-config</a></h2> <p>If you are not using GNU autoconf in your project, you can use the pkg-config tool directly to determine the correct compiler options.</p> <pre> OGGZ_CFLAGS=`pkg-config --cflags oggz`</pre><pre> OGGZ_LIBS=`pkg-config --libs oggz` </pre> </div> <hr class="footer"/><address style="text-align: right;"><small>Generated by <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.2-20100208 </small></address> </body> </html>