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-readline" role="wrap">
|
---|
9 | <?dbhtml filename="readline.html"?>
|
---|
10 |
|
---|
11 | <title>Readline-&readline-version;</title>
|
---|
12 |
|
---|
13 | <indexterm zone="ch-system-readline">
|
---|
14 | <primary sortas="a-Readline">Readline</primary>
|
---|
15 | </indexterm>
|
---|
16 |
|
---|
17 | <sect2 role="package">
|
---|
18 | <title/>
|
---|
19 |
|
---|
20 | <para>The Readline package is a set of libraries that offers command-line
|
---|
21 | editing and history capabilities.</para>
|
---|
22 |
|
---|
23 | </sect2>
|
---|
24 |
|
---|
25 | &env-target;
|
---|
26 |
|
---|
27 | <sect2 role="installation">
|
---|
28 | <title>Installation of Readline</title>
|
---|
29 |
|
---|
30 | <para os="s1">This option forces Readline to link against the
|
---|
31 | <filename class="libraryfile">libncursesw</filename> library:</para>
|
---|
32 |
|
---|
33 | <screen os="s2"><userinput>sed -i 's:^SHLIB_LIBS=:SHLIB_LIBS=-lncursesw:' support/shobj-conf</userinput></screen>
|
---|
34 |
|
---|
35 | <para os="a">Prepare Readline for compilation:</para>
|
---|
36 |
|
---|
37 | <screen os="b"><userinput>./configure --build=${CLFS_HOST} --host=${CLFS_TARGET} \
|
---|
38 | --prefix=/usr --libdir=/lib</userinput></screen>
|
---|
39 |
|
---|
40 | <para os="c">Compile the package:</para>
|
---|
41 |
|
---|
42 | <screen os="d"><userinput>make</userinput></screen>
|
---|
43 |
|
---|
44 | <para os="e">Install the package:</para>
|
---|
45 |
|
---|
46 | <screen os="f"><userinput>make DESTDIR=${CLFS} install</userinput></screen>
|
---|
47 |
|
---|
48 | <para os="h">Install the documentation:</para>
|
---|
49 |
|
---|
50 | <screen os="i"><userinput>make DESTDIR=${CLFS} install-doc</userinput></screen>
|
---|
51 |
|
---|
52 | <para os="j">Now move the static libraries to a more appropriate location:</para>
|
---|
53 |
|
---|
54 | <screen os="k"><userinput>mv -v ${CLFS}/lib/lib{readline,history}.a ${CLFS}/usr/lib</userinput></screen>
|
---|
55 |
|
---|
56 | <para os="l">Next, remove the <filename class="extension">.so</filename>
|
---|
57 | files in <filename class="directory">/lib</filename> and relink them into
|
---|
58 | <filename class="directory">/usr/lib</filename>.</para>
|
---|
59 |
|
---|
60 | <screen os="m"><userinput>rm -v ${CLFS}/lib/lib{readline,history}.so
|
---|
61 | ln -sfv ../../lib/libreadline.so.&readline-version2; ${CLFS}/usr/lib/libreadline.so
|
---|
62 | ln -sfv ../../lib/libhistory.so.&readline-version2; ${CLFS}/usr/lib/libhistory.so</userinput></screen>
|
---|
63 |
|
---|
64 | </sect2>
|
---|
65 |
|
---|
66 | <sect2 id="contents-readline" role="content">
|
---|
67 | <title>Contents of Readline</title>
|
---|
68 |
|
---|
69 | <segmentedlist>
|
---|
70 | <segtitle>Installed libraries</segtitle>
|
---|
71 |
|
---|
72 | <seglistitem>
|
---|
73 | <seg>libhistory.[a,so], and libreadline.[a,so]</seg>
|
---|
74 | </seglistitem>
|
---|
75 | </segmentedlist>
|
---|
76 |
|
---|
77 | <variablelist>
|
---|
78 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
79 | <?dbfo list-presentation="list"?>
|
---|
80 | <?dbhtml list-presentation="table"?>
|
---|
81 |
|
---|
82 | <varlistentry id="libhistory">
|
---|
83 | <term><filename class="libraryfile">libhistory</filename></term>
|
---|
84 | <listitem>
|
---|
85 | <para>Provides a consistent user interface
|
---|
86 | for recalling lines of history</para>
|
---|
87 | <indexterm zone="ch-system-readline libhistory">
|
---|
88 | <primary sortas="c-libhistory">libhistory</primary>
|
---|
89 | </indexterm>
|
---|
90 | </listitem>
|
---|
91 | </varlistentry>
|
---|
92 |
|
---|
93 | <varlistentry id="libreadline">
|
---|
94 | <term><filename class="libraryfile">libreadline</filename></term>
|
---|
95 | <listitem>
|
---|
96 | <para>Aids in the consistency of user interface
|
---|
97 | across discrete programs that need to provide a command line
|
---|
98 | interface</para>
|
---|
99 | <indexterm zone="ch-system-readline libreadline">
|
---|
100 | <primary sortas="c-libreadline">libreadline</primary>
|
---|
101 | </indexterm>
|
---|
102 | </listitem>
|
---|
103 | </varlistentry>
|
---|
104 |
|
---|
105 | </variablelist>
|
---|
106 |
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | </sect1>
|
---|