1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
4 <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
5 <title>remix: Building against libremix</title>
6 <link href="tabs.css" rel="stylesheet" type="text/css"/>
7 <link href="doxygen.css" rel="stylesheet" type="text/css"/>
10 <!-- Generated by Doxygen 1.7.1 -->
11 <div class="navigation" id="top">
14 <li><a href="index.html"><span>Main Page</span></a></li>
15 <li><a href="modules.html"><span>Modules</span></a></li>
16 <li><a href="annotated.html"><span>Data Structures</span></a></li>
17 <li><a href="files.html"><span>Files</span></a></li>
22 <div class="headertitle">
23 <h1>Building against libremix</h1> </div>
25 <div class="contents">
26 <table class="memberdecls">
28 <h2><a class="anchor" id="autoconf"></a>
29 Using GNU autoconf</h2>
30 <p>If you are using GNU autoconf, you do not need to call pkg-config directly. Use the following macro to determine if libremix is available:</p>
32 PKG_CHECK_MODULES(REMIX, remix >= 0.2.0,
33 HAVE_REMIX="yes", HAVE_REMIX="no")
34 if test "x$HAVE_REMIX" = "xyes" ; then
35 AC_SUBST(REMIX_CFLAGS)
38 </pre><p>If libremix is found, HAVE_REMIX will be set to "yes", and the autoconf variables REMIX_CFLAGS and REMIX_LIBS will be set appropriately.</p>
39 <h2><a class="anchor" id="pkg-config"></a>
40 Determining compiler options with pkg-config</h2>
41 <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>
43 REMIX_CFLAGS=`pkg-config --cflags remix`</pre><pre> REMIX_LIBS=`pkg-config --libs remix`
45 <hr class="footer"/><address class="footer"><small>Generated on Tue Nov 8 2011 07:59:27 for remix by
46 <a href="http://www.doxygen.org/index.html">
47 <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>