I had the same "checking for X... configure: error:" and I managed to solve that part of the installation thanks to the help posted above.
Now I got a new problem. When I ./configure .. I get this error message.
"checking for Qt... configure: error: Qt (>= Qt 3.0.3) (headers and libraries) not found. Please check your installation!"
Would appreciate any help