2001-01-24 00:31:17 +00:00
|
|
|
<sect2>
|
|
|
|
<title>Installation of M4</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install M4 by running the following commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
<userinput>./configure --prefix=/usr &&</userinput>
|
|
|
|
<userinput>make &&</userinput>
|
|
|
|
<userinput>make install</userinput>
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
<para>
|
2001-03-19 16:02:50 +00:00
|
|
|
If the base system is running a 2.0 kernel and the Glibc version is
|
2001-05-13 23:07:24 +01:00
|
|
|
2.1 then you will most likely get problems executing M4 in the
|
2001-01-24 00:31:17 +00:00
|
|
|
chroot'ed environment due to incompatibilities between the M4 program,
|
2001-05-13 23:07:24 +01:00
|
|
|
Glibc-2.1 and the running 2.0 kernel. If you have problems executing the
|
|
|
|
m4 program in the chroot'ed environment (for example when you install
|
|
|
|
the autoconf and automake packages) you'll have to exit the chroot'ed
|
2001-01-24 00:31:17 +00:00
|
|
|
environment and compile M4 statically. This way the binary is linked
|
2001-03-19 16:02:50 +00:00
|
|
|
against Glibc 2.0 (if he runs kernel 2.0, Glibc version is 2.0 as
|
2001-01-24 00:31:17 +00:00
|
|
|
well on a decent system. Kernel 2.0 and Glibc-2.1 don't mix very well)
|
2001-03-19 16:02:50 +00:00
|
|
|
and won't give any problems.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
To create a statically linked version of M4, execute the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<blockquote><literallayout>
|
|
|
|
<userinput>logout</userinput>
|
|
|
|
<userinput>cd $LFS/usr/src/m4-1.4</userinput>
|
2001-03-29 16:42:09 +01:00
|
|
|
<userinput>./configure --prefix=/usr</userinput>
|
2001-01-24 00:31:17 +00:00
|
|
|
<userinput>make LDFLAGS=-static</userinput>
|
|
|
|
<userinput>make prefix=$LFS/usr install</userinput>
|
|
|
|
</literallayout></blockquote>
|
|
|
|
|
|
|
|
<para>
|
2001-03-19 16:02:50 +00:00
|
|
|
Now the chroot'ed environment can be re-entered and the
|
|
|
|
next package an be installed. If M4 should be re-compiled dynamically,
|
|
|
|
this can be done
|
|
|
|
after having rebooted into the LFS system rather than chrooting into it.
|
2001-01-24 00:31:17 +00:00
|
|
|
</para>
|
|
|
|
|
2001-06-19 23:42:12 +01:00
|
|
|
<blockquote><literallayout>
|
|
|
|
&c6-chrootcmd;
|
|
|
|
</literallayout></blockquote>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|