Installed
program: m4
The M4 package contains a macro processor.
M4 can be compiled with warnings enabled:
find . -type f -name Makefile.in -exec \
sed 's/^CFLAGS =.*/& -Wall -Werror -Wfatal-errors/' -i.orig {} \;
Add assert() to deal with -D_FORTIFY_SOURCE=2 warnings:
sed -e 's/write (.*)/assert(&)/' \
-e 's/#include <signal.h>/&\n#include <assert.h>/' \
-i.orig src/stackovf.c
Prepare M4 for compilation:
./configure --prefix=/usr
Compile the package:
make
To test the results, issue: make check.
Install the package:
make install