From subsecret
m4
tar xf m4-1.4.16.tar.gz cd m4-1.4.16
Edit lib/stdio.h and replace remove line: _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
./configure --prefix=/tools make -j 8 make install cd ..
ncurses
tar xf ncurses-5.9.tar.gz cd ncurses-5.9 ./configure --prefix=/tools --with-shared --with-termlib --with-ticlib --with-normal make -j 8 make install cd ..
bash
tar xf bash-4.2.tar.gz cd bash-4.2 ./configure --prefix=/tools make -j 8 make install cd ..
We are now ready for next step