<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../../general.ent">
  %general-entities;
]>

<sect1 id="ch-system-mpfr" role="wrap">
  <?dbhtml filename="mpfr.html"?>

  <title>MPFR-&mpfr-version;</title>

  <indexterm zone="ch-system-mpfr">
    <primary sortas="a-MPFR">MPFR</primary>
    <secondary>temporary system</secondary>
  </indexterm>

  <sect2 role="package">
    <title/>

    <para>The MPFR library is a C library for multiple-precision floating-point
    computations with correct rounding.</para>

  </sect2>

  <sect2 role="installation">
    <title>Installation of MPFR</title>

    <para os="p1">The following patch contains a number of updates to the
    &mpfr-version; branch by the MPFR developers:</para>

<screen os="p2"><userinput>patch -Np1 -i ../&mpfr-branch_update-patch;</userinput></screen>

    <para os="a">Prepare MPFR for compilation:</para>

<screen os="b"><userinput>CC="gcc -isystem /usr/include" LDFLAGS="-Wl,-rpath-link,/lib" \
    ./configure --prefix=/usr --enable-shared \
	--with-gmp=/usr</userinput></screen>

    <para os="c">Compile the package:</para>

<screen os="d"><userinput>make</userinput></screen>

    <important os="e">
      <para>The test suite for MPFR is considered
      critical. Do not skip it under any circumstance.</para>
    </important>

    <para os="f">Test the results:</para>

<screen os="g"><userinput>make check</userinput></screen>

    <para os="h">Install the package:</para>

<screen os="i"><userinput>make install</userinput></screen>

  </sect2>

  <sect2 id="contents-mpfr" role="content">
    <title>Contents of MPFR</title>

    <segmentedlist>
      <segtitle>Installed Libraries</segtitle>

      <seglistitem>
        <seg>libmpfr.[a,so]</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="libmpfr">
        <term><filename class="libraryfile">libmpfr</filename></term>
        <listitem>
          <para>The Multiple Precision Floating-Point Reliable Library.</para>
          <indexterm zone="ch-system-mpfr libmpfr">
            <primary sortas="b-libmpfr">libmpfr</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
