Fix backslash alignments and a minor text update.
[linux_from_scratch.git] / chapter06 / pkgconfig.xml
blobeb9278d187f3e7c1315370626ed80eed4d922724
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3   "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4   <!ENTITY % general-entities SYSTEM "../general.ent">
5   %general-entities;
6 ]>
8 <sect1 id="ch-system-pkgconfig" role="wrap">
9   <?dbhtml filename="pkg-config.html"?>
11   <sect1info condition="script">
12     <productname>pkgconfig</productname>
13     <productnumber>&pkgconfig-version;</productnumber>
14     <address>&pkgconfig-url;</address>
15   </sect1info>
17   <title>Pkg-config-&pkgconfig-version;</title>
19   <indexterm zone="ch-system-pkgconfig">
20     <primary sortas="a-pkgconfig">Pkgconfig</primary>
21   </indexterm>
23   <sect2 role="package">
24     <title/>
26     <para> The pkg-config package contains a tool for passing the include path
27     and/or library paths to build tools during the configure and make file
28     execution.</para>
30     <segmentedlist>
31       <segtitle>&buildtime;</segtitle>
32       <segtitle>&diskspace;</segtitle>
34       <seglistitem>
35         <seg>&pkgconfig-ch6-sbu;</seg>
36         <seg>&pkgconfig-ch6-du;</seg>
37       </seglistitem>
38     </segmentedlist>
40   </sect2>
42   <sect2 role="installation">
43     <title>Installation of Pkg-config</title>
45     <para>Prepare Pkg-config for compilation:</para>
47 <screen><userinput remap="configure">./configure --prefix=/usr        \
48             --with-internal-glib \
49             --disable-host-tool  \
50             --docdir=/usr/share/doc/pkg-config-&pkgconfig-version;</userinput></screen>
52     <variablelist>
53       <title>The meaning of the new configure options:</title>
55       <varlistentry>
56         <term><parameter>--with-internal-glib</parameter></term>
57         <listitem>
58           <para>This will allow pkg-config to use its internal version of
59           Glib because an external version is not available in LFS.</para>
60         </listitem>
61       </varlistentry>
63       <varlistentry>
64         <term><parameter>--disable-host-tool</parameter></term>
65         <listitem>
66           <para>This option disables the creation of an undesired hard link
67           to the pkg-config program.</para>
68         </listitem>
69       </varlistentry>
71     </variablelist>
75     <para>Compile the package:</para>
77 <screen><userinput remap="make">make</userinput></screen>
79     <para>To test the results, issue:</para>
81 <screen><userinput remap="test">make check</userinput></screen>
83     <para>Install the package:</para>
85 <screen><userinput remap="install">make install</userinput></screen>
87   </sect2>
89   <sect2 id="contents-pkgconfig" role="content">
90     <title>Contents of Pkg-config</title>
92     <segmentedlist>
93       <segtitle>Installed program</segtitle>
94       <segtitle>Installed directory</segtitle>
96       <seglistitem>
97         <seg>pkg-config</seg>
98         <seg>/usr/share/doc/pkg-config-&pkgconfig-version;</seg>
99       </seglistitem>
100     </segmentedlist>
102     <variablelist>
103       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
104       <?dbfo list-presentation="list"?>
105       <?dbhtml list-presentation="table"?>
107       <varlistentry id="pkgconfig">
108          <!-- Don't remove the extra space, it prevents a FOP warning. -->
109         <term><command>pkg-config </command></term>
110         <listitem>
111           <para>returns meta information for the specified library or package
112           </para>
113           <indexterm zone="ch-system-pkgconfig pkgconfig">
114             <primary sortas="b-pkgconfig">pkg-config</primary>
115           </indexterm>
116         </listitem>
117       </varlistentry>
119     </variablelist>
121   </sect2>
123 </sect1>