Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 2946d6d651bbdb069ce8220554506190 > files > 32

liboggz-devel-1.0.0-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>liboggz: Building against liboggz</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
<link href="tabs.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&nbsp;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&nbsp;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><h2><a class="anchor" name="autoconf">
Using GNU autoconf</a></h2>
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 &gt;= 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.<h2><a class="anchor" name="pkg-config">
Determining compiler options with pkg-config</a></h2>
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><p>
<pre> OGGZ_LIBS=`pkg-config --libs oggz`
 </pre> 
<p>
<table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
</table>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Tue Sep 15 08:06:11 2009 for liboggz by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address>
</body>
</html>