<?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-cloog" role="wrap">
  <?dbhtml filename="cloog.html"?>

  <sect1info condition="script">
    <productname>cloog</productname>
    <productnumber>&cloog-version;</productnumber>
    <address>&cloog-url;</address>
  </sect1info>

  <title>CLooG-&cloog-version;</title>

  <indexterm zone="ch-system-cloog">
    <primary sortas="a-CLooG">CLooG</primary>
  </indexterm>

  <sect2 role="package">
    <title/>

    <para>CLooG is a library to generate code for scanning Z-polyhedra.
    In other words, it finds code that reaches each integral point of one or
    more parameterized polyhedra.  GCC links with this library in order to
    enable the new loop generation code known as Graphite.</para>

    <segmentedlist>
      <segtitle>&buildtime;</segtitle>
      <segtitle>&diskspace;</segtitle>

      <seglistitem>
        <seg>&cloog-ch6-sbu;</seg>
        <seg>&cloog-ch6-du;</seg>
      </seglistitem>
    </segmentedlist>

  </sect2>

  <sect2 role="installation">
    <title>Installation of CLooG</title>
	
	<para> </para>

  </sect2>
  
  <sect2 role="installation">
    <title>32-bit Installation</title>

    <para>Prepare CLooG for 32-bit compilation:</para>

<screen><userinput remap="configure">./configure --prefix=/usr \
    --libdir=/usr/lib32   \
    CC="gcc -m32"</userinput></screen>

	<para>Apply a <command>sed</command> which prevents the attempted installation of an invalid file:</para>
<screen><userinput>sed -i '/cmake/d' Makefile</userinput></screen>

    <para>Compile the package:</para>

<screen><userinput remap="make">make</userinput></screen>

    <important>
      <para>The test suite for CLooG is considered
      critical. Do not skip it under any circumstance.</para>
    </important>

    <para>Test the results:</para>

<screen><userinput remap="test">make check</userinput></screen>

    <para>Install the package:</para>

<screen><userinput remap="install">make install</userinput></screen>

    <para>Clean up the build directory before moving on to the next platform:</para>
<screen><userinput remap="install">make clean</userinput></screen>

  </sect2>

  <sect2 role="installation">
    <title>x32 ABI Installation</title>

    <para>Prepare CLooG for x32 ABI compilation:</para>

<screen><userinput remap="configure">./configure --prefix=/usr \
    --libdir=/usr/libx32  \
    CC="gcc -mx32"</userinput></screen>

	<para>Apply a <command>sed</command> which prevents the attempted installation of an invalid file:</para>
<screen><userinput>sed -i '/cmake/d' Makefile</userinput></screen>

    <para>Compile the package:</para>

<screen><userinput remap="make">make</userinput></screen>

    <important>
      <para>The test suite for CLooG is considered
      critical. Do not skip it under any circumstance.</para>
    </important>

    <para>Test the results:</para>

<screen><userinput remap="test">make check</userinput></screen>

    <para>Install the package:</para>

<screen><userinput remap="install">make install</userinput></screen>

    <para>Clean up the build directory before moving on to the next platform:</para>
<screen><userinput remap="install">make clean</userinput></screen>

  </sect2>

  <sect2 role="installation">
    <title>64-bit Installation</title>

    <para>Prepare CLooG for 64-bit compilation:</para>

<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>

	<para>Apply a <command>sed</command> which prevents the attempted installation of an invalid file:</para>
<screen><userinput>sed -i '/cmake/d' Makefile</userinput></screen>

    <para>Compile the package:</para>

<screen><userinput remap="make">make</userinput></screen>

    <important>
      <para>The test suite for CLooG is considered
      critical. Do not skip it under any circumstance.</para>
    </important>

    <para>Test the results:</para>

<screen><userinput remap="test">make check</userinput></screen>

    <para>Install the package:</para>

<screen><userinput remap="install">make install</userinput></screen>

  </sect2>

  <sect2 id="contents-cloog" role="content">
    <title>Contents of CLooG</title>

    <segmentedlist>
      <segtitle>Installed Program</segtitle>
      <segtitle>Installed Libraries</segtitle>
      <segtitle>Installed Directories</segtitle>

      <seglistitem>
        <seg>cloog</seg>
        <seg>libcloog-isl.[a,so]</seg>
        <seg>/usr/include/cloog</seg>
      </seglistitem>
    </segmentedlist>

    <variablelist>
      <bridgehead renderas="sect3">Short Descriptions</bridgehead>
      <?dbfo list-presentation="list"?>
      <?dbhtml list-presentation="table"?>

      <varlistentry id="cloog">
        <term><command>cloog</command></term>
        <listitem>
          <para>Loop generator for scanning Z-polyhedra</para>
          <indexterm zone="ch-system-cloog cloog">
            <primary sortas="b-cloog">cloog</primary>
          </indexterm>
        </listitem>
      </varlistentry>
      <varlistentry id="libcloog-isl">
        <term><filename class="libraryfile">libcloog-isl</filename></term>
        <listitem>
          <para>Isl backend for CLooG.</para>
          <indexterm zone="ch-system-cloog libcloog-isl">
            <primary sortas="c-libcloog-isl">libcloog-isl</primary>
          </indexterm>
        </listitem>
      </varlistentry>

    </variablelist>

  </sect2>

</sect1>
