can't remember for sure, but i think i ran into this problem too. i had to run configure multiple times because of missing dependencies (java etc.) on my new ubuntu system, but then the build would fail even after re-running configure. i resolved it by untarring into a new folder and then re-running configure.