[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
---|
| 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[3be4d97] | 6 | <sect1 id="ch-tools-gettext">
|
---|
[673b0d8] | 7 | <title>Gettext-&gettext-version;</title>
|
---|
| 8 | <?dbhtml filename="gettext.html"?>
|
---|
[bc82645e] | 9 |
|
---|
[673b0d8] | 10 | <indexterm zone="ch-tools-gettext">
|
---|
| 11 | <primary sortas="a-Gettext">Gettext</primary>
|
---|
| 12 | <secondary>tools</secondary></indexterm>
|
---|
[bc82645e] | 13 |
|
---|
[673b0d8] | 14 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/para[1])"/>
|
---|
| 15 |
|
---|
| 16 | <screen>&buildtime; 0.5 SBU
|
---|
| 17 | &diskspace; 55 MB</screen>
|
---|
| 18 |
|
---|
| 19 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/para[2])"/>
|
---|
[73aedd1d] | 20 |
|
---|
| 21 |
|
---|
| 22 | <sect2>
|
---|
| 23 | <title>Installation of Gettext</title>
|
---|
| 24 |
|
---|
[d27a27b] | 25 | <para>Prepare Gettext for compilation:</para>
|
---|
[73aedd1d] | 26 |
|
---|
[9dfc02f] | 27 | <screen><userinput>./configure --prefix=/tools --disable-libasprintf \
|
---|
| 28 | --disable-csharp</userinput></screen>
|
---|
| 29 |
|
---|
| 30 | <itemizedlist>
|
---|
| 31 | <listitem><para><userinput>--disable-libasprintf</userinput>: This flag tells
|
---|
| 32 | Gettext that we don't want its asprintf library. Nothing in Chapter 5 or 6
|
---|
| 33 | requires this, and gettext gets rebuilt later, so we exclude it to save
|
---|
| 34 | time/space.</para></listitem>
|
---|
| 35 |
|
---|
| 36 | <listitem><para><userinput>--disable-csharp</userinput>: Gettext has a nasty
|
---|
| 37 | habit of searching for a C# compiler on the host, and building bindings for it.
|
---|
| 38 | We've already <quote>locked</quote> ourselves into the temporary tools though,
|
---|
| 39 | which doesn't have a C# compiler.</para></listitem>
|
---|
| 40 | </itemizedlist>
|
---|
[73aedd1d] | 41 |
|
---|
| 42 | <para>Compile the programs:</para>
|
---|
| 43 |
|
---|
| 44 | <screen><userinput>make</userinput></screen>
|
---|
| 45 |
|
---|
[c91dd5b] | 46 | <para>(If you insist on testing the results, then issue: <userinput>make
|
---|
[c3dc67c] | 47 | check</userinput>. This takes a very long time, around 7 SBUs. Moreover, the
|
---|
[c91dd5b] | 48 | Gettext test suite is known to experience failures under certain host
|
---|
| 49 | conditions -- for example when it finds a Java compiler on the host (but an
|
---|
| 50 | experimental patch to disable Java is available from the LFS Patches
|
---|
| 51 | project).)</para>
|
---|
[73aedd1d] | 52 |
|
---|
| 53 | <para>And install the package:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput>make install</userinput></screen>
|
---|
| 56 |
|
---|
| 57 | </sect2>
|
---|
[bc82645e] | 58 |
|
---|
[0868461] | 59 | <sect2><title/>
|
---|
[5888299] | 60 | <para>The details on this package are found in <xref linkend="contents-gettext"/>.</para>
|
---|
[0868461] | 61 | </sect2>
|
---|
[5888299] | 62 |
|
---|
[bc82645e] | 63 | </sect1>
|
---|