configure.ac: Fallback to older detection code if pkg-config can't find expat
configure.ac: Fallback to older detection code if pkg-config can't find expat

This paritally reverts commit a4afd90f9f0c27ed5f3f313b915c260673f8be34.

On older expat versions (ie the one on Ubuntu 12.04) there is no pkg-config
file, so fall back to a test for the header and library. In addition the
source for expat does not seem to be in a git repository but in cvs instead
and it seems preferrable to not require cvs to build wayland.

The restored test has been updated to use AC_SEARCH_LIBS. This version
uses empty square brackets for the unused branches, similar to many other
if statements in configure.ac.
Reviewed-by: Bryce Harrington <bdb14cfc1ab8d24e13de84adc40b41ae60c13bd1@osg.samsung.com>
Reviewed-by: Andrew Oakley <4177a43972123160c21fd963ef3cc4ec3d01d472@espial.com>

sir-murray/wayland,mchalupa/wayland,eyolfson/wayland,mchalupa/wayland,abooij/wayland,tulcod/wayland,abooij/wayland,bitfactor/wayland,tulcod/wayland,sir-murray/wayland,mchalupa/wayland,eyolfson/wayland,eyolfson/wayland,tulcod/wayland,abooij/wayland,bitfactor/wayland,sir-murray/wayland,bitfactor/wayland