source: BOOK/final-system/common/m4.xml@ 1ded6e3

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1ded6e3 was b50d1dc, checked in by William Harrington <kb0iic@…>, 11 years ago

Add no gets patch to all m4 installs.

  • Property mode set to 100644
File size: 2.5 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[3f8be484]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-m4" role="wrap">
9 <?dbhtml filename="m4.html"?>
10
11 <title>M4-&m4-version;</title>
12
13 <indexterm zone="ch-system-m4">
14 <primary sortas="a-M4">M4</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The M4 package contains a macro processor.</para>
21
22 </sect2>
23
24 <sect2 role="installation">
25 <title>Installation of M4</title>
26
[b50d1dc]27 <para os="p1">The following patch contains a fix when building
28 with a host having Glibc or EGLIBC 2.16 or later.</para>
29
30 <screen os="p2"><userinput>patch -Np1 -i ../&m4-gets-patch;</userinput></screen>
31
[e0e40d3]32 <para os="a">Prepare M4 for compilation:</para>
[3f8be484]33
[e0e40d3]34<screen os="b"><userinput>./configure --prefix=/usr</userinput></screen>
[3f8be484]35
[e0e40d3]36 <para os="c">Compile the package:</para>
[3f8be484]37
[e0e40d3]38<screen os="d"><userinput>make</userinput></screen>
[3f8be484]39
[e0e40d3]40 <para os="e">To test the results, issue:
[3f8be484]41 <userinput>make check</userinput>.</para>
42
[e0e40d3]43 <para os="f">Install the package:</para>
[3f8be484]44
[e0e40d3]45<screen os="g"><userinput>make install</userinput></screen>
[3f8be484]46
47 </sect2>
48
49 <sect2 id="contents-m4" role="content">
50 <title>Contents of M4</title>
51
52 <segmentedlist>
53 <segtitle>Installed program</segtitle>
54
55 <seglistitem>
56 <seg>m4</seg>
57 </seglistitem>
58 </segmentedlist>
59
60 <variablelist>
61 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
62 <?dbfo list-presentation="list"?>
63 <?dbhtml list-presentation="table"?>
64
65 <varlistentry id="m4">
[d018b81]66 <!-- Don't remove the extra space, it prevet a FOP warning. -->
67 <term><command>m4 </command></term>
[3f8be484]68 <listitem>
69 <para>copies the given files while expanding the macros that they
70 contain. These macros are either built-in or user-defined and can
71 take any number of arguments. Besides performing macro expansion,
72 <command>m4</command> has built-in functions for including named
73 files, running Unix commands, performing integer arithmetic,
74 manipulating text, recursion, etc. The <command>m4</command>
75 program can be used either as a front-end to a compiler or as a
76 macro processor in its own right.</para>
77 <indexterm zone="ch-system-m4 m4">
78 <primary sortas="b-m4">m4</primary>
79 </indexterm>
80 </listitem>
81 </varlistentry>
82
83 </variablelist>
84
85 </sect2>
86
87</sect1>
Note: See TracBrowser for help on using the repository browser.