1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
4 | <!ENTITY % patches-entities SYSTEM "../patches.ent">
|
---|
5 | %general-entities;
|
---|
6 | %patches-entities;
|
---|
7 | ]>
|
---|
8 | <sect1 id="ch-system-m4" role="wrap">
|
---|
9 | <title>M4-&m4-version;</title>
|
---|
10 | <?dbhtml filename="m4.html"?>
|
---|
11 |
|
---|
12 | <indexterm zone="ch-system-m4"><primary sortas="a-M4">M4</primary></indexterm>
|
---|
13 |
|
---|
14 | <sect2 role="package"><title/>
|
---|
15 | <para>The M4 package contains a macro processor.</para>
|
---|
16 |
|
---|
17 | <segmentedlist>
|
---|
18 | <segtitle>&buildtime;</segtitle>
|
---|
19 | <segtitle>&diskspace;</segtitle>
|
---|
20 | <seglistitem><seg>0.1 SBU</seg><seg>2.8 MB</seg></seglistitem>
|
---|
21 | </segmentedlist>
|
---|
22 |
|
---|
23 | <segmentedlist>
|
---|
24 | <segtitle>&dependencies;</segtitle>
|
---|
25 | <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC,
|
---|
26 | Gettext, Glibc, Grep, Make, Perl, and Sed</seg></seglistitem>
|
---|
27 | </segmentedlist>
|
---|
28 | </sect2>
|
---|
29 |
|
---|
30 | <sect2 role="installation">
|
---|
31 | <title>Installation of M4</title>
|
---|
32 |
|
---|
33 | <para>Prepare M4 for compilation:</para>
|
---|
34 |
|
---|
35 | <screen><userinput>./configure --prefix=/usr</userinput></screen>
|
---|
36 |
|
---|
37 | <para>Compile the package:</para>
|
---|
38 |
|
---|
39 | <screen><userinput>make</userinput></screen>
|
---|
40 |
|
---|
41 | <para>To test the results, issue:
|
---|
42 | <userinput>make check</userinput>.</para>
|
---|
43 |
|
---|
44 | <para>Install the package:</para>
|
---|
45 |
|
---|
46 | <screen><userinput>make install</userinput></screen>
|
---|
47 |
|
---|
48 | </sect2>
|
---|
49 |
|
---|
50 |
|
---|
51 | <sect2 id="contents-m4" role="content"><title>Contents of M4</title>
|
---|
52 |
|
---|
53 | <segmentedlist>
|
---|
54 | <segtitle>Installed program</segtitle>
|
---|
55 | <seglistitem><seg>m4</seg></seglistitem>
|
---|
56 | </segmentedlist>
|
---|
57 |
|
---|
58 | <variablelist><bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
59 | <?dbfo list-presentation="list"?>
|
---|
60 | <?dbhtml list-presentation="table"?>
|
---|
61 |
|
---|
62 | <varlistentry id="m4">
|
---|
63 | <term><command>m4</command></term>
|
---|
64 | <listitem>
|
---|
65 | <para>copies the given files while expanding the macros that they
|
---|
66 | contain. These macros are either built-in or user-defined and can take
|
---|
67 | any number of arguments. Besides performing macro expansion,
|
---|
68 | <command>m4</command> has
|
---|
69 | built-in functions for including named files, running Unix commands,
|
---|
70 | performing integer arithmetic, manipulating text, recursion, etc. The
|
---|
71 | <command>m4</command> program can be used either as a front-end to a compiler or as a
|
---|
72 | macro processor in its own right.</para>
|
---|
73 | <indexterm zone="ch-system-m4 m4"><primary sortas="b-m4">m4</primary></indexterm>
|
---|
74 | </listitem>
|
---|
75 | </varlistentry>
|
---|
76 | </variablelist>
|
---|
77 |
|
---|
78 | </sect2>
|
---|
79 |
|
---|
80 | </sect1>
|
---|
81 |
|
---|