bc: remove an extra quote
[linux_from_scratch.git] / BOOK / chapter08 / bc.xml
blob41d969e9473e923179cee4f815829bcf37081bd7
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-bc" role="wrap">
9   <?dbhtml filename="bc.html"?>
11   <sect1info condition="script">
12     <productname>bc</productname>
13     <productnumber>&bc-version;</productnumber>
14     <address>&bc-url;</address>
15   </sect1info>
17   <title>Bc-&bc-version;</title>
19   <indexterm zone="ch-system-bc">
20     <primary sortas="a-Bc">Bc</primary>
21   </indexterm>
23   <sect2 role="package">
24     <title/>
26     <para>The Bc package contains an arbitrary precision numeric processing 
27     language.</para>
29     <segmentedlist>
30       <segtitle>&buildtime;</segtitle>
31       <segtitle>&diskspace;</segtitle>
33       <seglistitem>
34         <seg>&bc-fin-sbu;</seg>
35         <seg>&bc-fin-du;</seg>
36       </seglistitem>
37     </segmentedlist>
39   </sect2>
41   <sect2 role="installation">
42     <title>Installation of Bc</title>
44     <para>Prepare Bc for compilation:</para>
46 <screen><userinput remap="configure">PREFIX=/usr CC=gcc ./configure.sh -G -O3</userinput></screen>
48     <variablelist>
49       <title>The meaning of the configure options:</title>
51       <varlistentry>
52         <term><parameter>CC=gcc</parameter></term>
53         <listitem>
54           <para>This parameter specifies the compiler to use.</para>
55         </listitem>
56       </varlistentry>
58       <varlistentry>
59         <term><parameter>-O3</parameter></term>
60         <listitem>
61           <para>Specify the optimization to use.</para>
62         </listitem>
63       </varlistentry>
65       <varlistentry>
66         <term><parameter>-G</parameter></term>
67         <listitem>
68           <para>Omit  parts of the test suite that won't work
69           without a GNU bc present.</para>
70         </listitem>
71       </varlistentry>
72     </variablelist>
74     <para>Compile the package:</para>
76 <screen><userinput remap="make">make</userinput></screen>
78     <para>To test bc, run:</para>
80 <screen><userinput remap="test">make test</userinput></screen>
83     <para>Install the package:</para>
85 <screen><userinput remap="install">make install</userinput></screen>
87   </sect2>
89   <sect2 id="contents-bc" role="content">
90     <title>Contents of Bc</title>
92     <segmentedlist>
93       <segtitle>Installed programs</segtitle>
95       <seglistitem>
96         <seg>bc and dc</seg>
97       </seglistitem>
98     </segmentedlist>
100     <variablelist>
101       <bridgehead renderas="sect3">Short Descriptions</bridgehead>
102       <?dbfo list-presentation="list"?>
103       <?dbhtml list-presentation="table"?>
105       <varlistentry id="bc">
106         <term><command>bc</command></term>
107         <listitem>
108           <para>A command line calculator</para>
109           <indexterm zone="ch-system-bc bc">
110             <primary sortas="b-bc">bc</primary>
111           </indexterm>
112         </listitem>
113       </varlistentry>
115       <varlistentry id="dc">
116         <term><command>dc</command></term>
117         <listitem>
118           <para>A reverse-polish command line calculator</para>
119           <indexterm zone="ch-system-bc dc">
120             <primary sortas="b-dc">dc</primary>
121           </indexterm>
122         </listitem>
123       </varlistentry>
125     </variablelist>
127   </sect2>
129 </sect1>