You should check the configure logs to see exactly what is failing.

You should also do an out of source build so you can more easily nuke and restart when you change something or you have an error and need to restart.