Blame doc/liboggz/latex/group__building.tex

Packit a38265
\section{Building against liboggz}
Packit a38265
\label{group__building}\index{Building against liboggz@{Building against liboggz}}
Packit a38265
\subsection{Using GNU autoconf}\label{group__building_autoconf}
Packit a38265
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:
Packit a38265
Packit a38265
Packit a38265
\begin{DoxyPre}
Packit a38265
 PKG\_CHECK\_MODULES(OGGZ, oggz >= 0.6.0,
Packit a38265
                   HAVE\_OGGZ="yes", HAVE\_OGGZ="no")
Packit a38265
 if test "x$HAVE\_OGGZ" = "xyes" ; then
Packit a38265
   AC\_SUBST(OGGZ\_CFLAGS)
Packit a38265
   AC\_SUBST(OGGZ\_LIBS)
Packit a38265
 fi
Packit a38265
 \end{DoxyPre}
Packit a38265
Packit a38265
Packit a38265
If liboggz is found, HAVE\_\-OGGZ will be set to \char`\"{}yes\char`\"{}, and the autoconf variables OGGZ\_\-CFLAGS and OGGZ\_\-LIBS will be set appropriately.\subsection{Determining compiler options with pkg-\/config}\label{group__building_pkg-config}
Packit a38265
If you are not using GNU autoconf in your project, you can use the pkg-\/config tool directly to determine the correct compiler options.
Packit a38265
Packit a38265
Packit a38265
\begin{DoxyPre}
Packit a38265
 OGGZ\_CFLAGS=`pkg-config --cflags oggz`\end{DoxyPre}
Packit a38265
Packit a38265
Packit a38265
Packit a38265
\begin{DoxyPre} OGGZ\_LIBS=`pkg-config --libs oggz`
Packit a38265
 \end{DoxyPre}
Packit a38265