To answer your first question:
Code:
apt-get search [PACKAGE_NAME]
Check out the
APT Howto for more command details
If you are running a desktop manager you could always install
Synaptic. Although I still find myself using the apt-cache command more often, since I can pipe the results through grep enabling me to narrow the results.
For the second problem:
Why is it looking in /usr/
5bin for libraries?
to see if m4 is installed try:
And there should be and
ii next to the m4 package if it is install (although it should be).
Otherwise install it and re-run your configure script.