m4.xml 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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-system-m4" xreflabel="M4">
  7. <title>M4-&m4-version;</title>
  8. <?dbhtml filename="m4.html"?>
  9. <indexterm zone="ch-system-m4"><primary sortas="a-M4">M4</primary></indexterm>
  10. <para>The M4 package contains a macro processor.</para>
  11. <screen>&buildtime; 0.1 SBU
  12. &diskspace; 3.0 MB</screen>
  13. <para>M4 installation depends on: Bash, Binutils, Coreutils, Diffutils, GCC,
  14. Gettext, Glibc, Grep, Make, Perl, Sed.</para>
  15. <sect2>
  16. <title>Installation of M4</title>
  17. <para>Prepare M4 for compilation:</para>
  18. <screen><userinput>./configure --prefix=/usr</userinput></screen>
  19. <para>Compile the package:</para>
  20. <screen><userinput>make</userinput></screen>
  21. <para>To test the results, issue:
  22. <userinput>make check</userinput>.</para>
  23. <para>And install the package:</para>
  24. <screen><userinput>make install</userinput></screen>
  25. </sect2>
  26. <sect2 id="contents-m4"><title>Contents of M4</title>
  27. <para><emphasis>Installed program</emphasis>: m4</para>
  28. </sect2>
  29. <sect2><title>Short description</title>
  30. <indexterm zone="ch-system-m4 m4"><primary sortas="b-m4">m4</primary></indexterm>
  31. <para id="m4"><command>m4</command> copies the given files
  32. while expanding the macros that they contain. These macros are either built-in
  33. or user-defined and can take any number of arguments. Besides just doing macro
  34. expansion, m4 has built-in functions for including named files, running Unix
  35. commands, doing integer arithmetic, manipulating text in various ways,
  36. recursion, and so on. The m4 program can be used either as a front-end to a
  37. compiler or as a macro processor in its own right.</para>
  38. </sect2>
  39. </sect1>