1
0

gettext.xml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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. ]>
  6. <sect1 id="ch-tools-gettext">
  7. <title>Gettext-&gettext-version;</title>
  8. <?dbhtml filename="gettext.html"?>
  9. <indexterm zone="ch-tools-gettext">
  10. <primary sortas="a-Gettext">Gettext</primary>
  11. <secondary>tools</secondary></indexterm>
  12. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/para[1])"/>
  13. <screen>&buildtime; 0.5 SBU
  14. &diskspace; 55 MB</screen>
  15. <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../chapter06/gettext.xml" xpointer="xpointer(/sect1/para[2])"/>
  16. <sect2>
  17. <title>Installation of Gettext</title>
  18. <para>Prepare Gettext for compilation:</para>
  19. <screen><userinput>./configure --prefix=/tools --disable-libasprintf \
  20. --disable-csharp</userinput></screen>
  21. <itemizedlist>
  22. <listitem><para><userinput>--disable-libasprintf</userinput>: This flag tells
  23. Gettext that we don't want its asprintf library. Nothing in Chapter 5 or 6
  24. requires this, and gettext gets rebuilt later, so we exclude it to save
  25. time/space.</para></listitem>
  26. <listitem><para><userinput>--disable-csharp</userinput>: Gettext has a nasty
  27. habit of searching for a C# compiler on the host, and building bindings for it.
  28. We've already <quote>locked</quote> ourselves into the temporary tools though,
  29. which doesn't have a C# compiler.</para></listitem>
  30. </itemizedlist>
  31. <para>Compile the programs:</para>
  32. <screen><userinput>make</userinput></screen>
  33. <para>(If you insist on testing the results, then issue: <userinput>make
  34. check</userinput>. This takes a very long time, around 7 SBUs. Moreover, the
  35. Gettext test suite is known to experience failures under certain host
  36. conditions -- for example when it finds a Java compiler on the host (but an
  37. experimental patch to disable Java is available from the LFS Patches
  38. project).)</para>
  39. <para>And install the package:</para>
  40. <screen><userinput>make install</userinput></screen>
  41. </sect2>
  42. <sect2><title> </title><para> </para>
  43. <para>The details on this package are found in <xref linkend="contents-gettext"/>.</para>
  44. <para> </para></sect2>
  45. </sect1>