If ./configure failed, it could be a lot of things, but you could also be missing the autoconf utilities.
the biggest mistake people make when installing linux is not installing all the development stuff.
If you have a redhat 6.1 cd, it has everything on it you need to compile php and all. You just need to install the rpms for development from that cd to your machine.