In Kubuntu: checking for X... configure: error: Can't find X includes. Please check your installation and add the correct paths!

Try installing kdebase.