source: clfs-sysroot/BOOK/final-system/common/bison.xml@ b517233

Last change on this file since b517233 was 12e6567, checked in by Joe Ciccone <jciccone@…>, 16 years ago

Added a sysroot wrapper.
Updated the build variables section of the book, each package uses its own.

  • Property mode set to 100644
File size: 3.4 KB
Line 
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]>
7
8<sect1 id="ch-system-bison" role="wrap">
9 <?dbhtml filename="bison.html"?>
10
11 <title>Bison-&bison-version;</title>
12
13 <indexterm zone="ch-system-bison">
14 <primary sortas="a-Bison">Bison</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The Bison package contains a parser generator.</para>
21
22 </sect2>
23
24 &env-target;
25
26 <sect2 role="installation">
27 <title>Installation of Bison</title>
28
29 <para os="a">Prepare Bison for compilation:</para>
30
31<screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
32 --prefix=/usr</userinput></screen>
33
34 <para os="b1">The configure system causes Bison to be built without support
35 for internationalization of error messages if a <command>bison</command>
36 program is not already in ${PATH}. The following addition will correct
37 this:</para>
38
39<screen os="b2"><userinput>cat &gt;&gt; config.h &lt;&lt; "EOF"
40#define YYENABLE_NLS 1
41EOF</userinput></screen>
42
43 <para os="c">Compile the package:</para>
44
45<screen os="d"><userinput>make</userinput></screen>
46
47 <para os="e">Install the package:</para>
48
49<screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
50
51 </sect2>
52
53 <sect2 id="contents-bison" role="content">
54 <title>Contents of Bison</title>
55
56 <segmentedlist>
57 <segtitle>Installed programs</segtitle>
58 <segtitle>Installed library</segtitle>
59
60 <seglistitem>
61 <seg>bison and yacc</seg>
62 <seg>liby.a</seg>
63 </seglistitem>
64 </segmentedlist>
65
66 <variablelist>
67 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
68 <?dbfo list-presentation="list"?>
69 <?dbhtml list-presentation="table"?>
70
71 <varlistentry id="bison">
72 <term><command>bison</command></term>
73 <listitem>
74 <para>Generates, from a series of rules, a program for analyzing
75 the structure of text files; Bison is a replacement for Yacc (Yet
76 Another Compiler Compiler)</para>
77 <indexterm zone="ch-system-bison bison">
78 <primary sortas="b-bison">bison</primary>
79 </indexterm>
80 </listitem>
81 </varlistentry>
82
83 <varlistentry id="yacc">
84 <term><command>yacc</command></term>
85 <listitem>
86 <para>A wrapper for <command>bison</command>, meant for programs that
87 still call <command>yacc</command> instead of <command>bison</command>;
88 it calls <command>bison</command> with the <option>-y</option>
89 option</para>
90 <indexterm zone="ch-system-bison yacc">
91 <primary sortas="b-yacc">yacc</primary>
92 </indexterm>
93 </listitem>
94 </varlistentry>
95
96 <varlistentry id="liby.a">
97 <term><filename class="libraryfile">liby.a</filename></term>
98 <listitem>
99 <para>The Yacc library containing implementations of Yacc-compatible
100 <emphasis>yyerror</emphasis> and <emphasis>main</emphasis> functions;
101 this library is normally not very useful, but POSIX requires it</para>
102 <indexterm zone="ch-system-bison liby.a">
103 <primary sortas="c-liby.a">liby.a</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 </variablelist>
109
110 </sect2>
111
112</sect1>
Note: See TracBrowser for help on using the repository browser.