6.28. M4-1.4.16

The M4 package contains a macro processor.

Approximate build time: 0.4 SBU
Required disk space: 26.6 MB

6.28.1. Installation of M4

Fix an incompatibility between this package and Glibc-2.16.0:

sed -i -e '/gets is a/d' lib/stdio.in.h

Prepare M4 for compilation:

./configure --prefix=/usr

Compile the package:


To test the results, first fix a test program and then run the test programs:

sed -i -e '41s/ENOENT/& || errno == EINVAL/' tests/test-readlink.h
make check

Install the package:

make install

6.28.2. Contents of M4

Installed program: m4

Short Descriptions


copies the given files while expanding the macros that they contain. These macros are either built-in or user-defined and can take any number of arguments. Besides performing macro expansion, m4 has built-in functions for including named files, running Unix commands, performing integer arithmetic, manipulating text, recursion, etc. The m4 program can be used either as a front-end to a compiler or as a macro processor in its own right.