Details on this package are located in Section 8.14.2, “Contents of M4.”
The M4 package contains a macro processor.
Ensure packages that use gnulib detect some newer functions found in glibc-2.44.
cat > $LFS/usr/share/config.site << EOF ac_cv_func_posix_spawn_file_actions_addchdir=yes ac_cv_func_posix_spawn_file_actions_addfchdir=yes EOF
Prepare M4 for compilation:
./configure --prefix=/usr \
--host=$LFS_TGT \
--build=$(build-aux/config.guess)
Compile the package:
make
Install the package:
make DESTDIR=$LFS install
Details on this package are located in Section 8.14.2, “Contents of M4.”