bc: enable readline

Using readline can improve line editing feature of bc, but it's not
enabled by default.

As readline is already installed before bc, let's pick up this
improvement with no cost.
This commit is contained in:
Xi Ruoyao 2022-06-22 15:12:06 +08:00 committed by William Harrington
parent 4a0172628b
commit e8afce4d2d
2 changed files with 14 additions and 6 deletions

View File

@ -244,7 +244,7 @@
<segmentedlist id="bc-depends">
<segtitle>&dependencies;</segtitle>
<seglistitem>
<seg>Bash, Binutils, Coreutils, GCC, Glibc, Grep, and Make</seg>
<seg>Bash, Binutils, Coreutils, GCC, Glibc, Grep, Make, and Readline</seg>
</seglistitem>
</segmentedlist>
@ -2652,7 +2652,7 @@
<segmentedlist id="readline-before">
<segtitle>&before;</segtitle>
<seglistitem>
<seg>Bash and Gawk</seg>
<seg>Bash, Bc, and Gawk</seg>
</seglistitem>
</segmentedlist>

View File

@ -43,7 +43,7 @@
<para>Prepare Bc for compilation:</para>
<screen><userinput remap="configure">CC=gcc ./configure --prefix=/usr -G -O3</userinput></screen>
<screen><userinput remap="configure">CC=gcc ./configure --prefix=/usr -G -O3 -r</userinput></screen>
<variablelist>
<title>The meaning of the configure options:</title>
@ -55,6 +55,14 @@
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>-G</parameter></term>
<listitem>
<para>Omit parts of the test suite that won't work
without a GNU bc present.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>-O3</parameter></term>
<listitem>
@ -63,10 +71,10 @@
</varlistentry>
<varlistentry>
<term><parameter>-G</parameter></term>
<term><parameter>-r</parameter></term>
<listitem>
<para>Omit parts of the test suite that won't work
without a GNU bc present.</para>
<para>Enable the use of <application>Readline</application> to
improve the line editing feature of bc.</para>
</listitem>
</varlistentry>
</variablelist>