Fix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6
Fix regression caused by 027a1298c22aeecc2fee2d270cd86790530892f6

VA/EGL depends on EGL/egl.h, so checking for eglGetDisplay in -lEGL
doesn't mean it could be compiled or not.

Signed-off-by: Xiang, Haihao <8d677183e5993577d4fa73a419b76987913292d6@intel.com>

halleyzhao/libva-fdo,CyanogenMod/android_hardware_intel_libva,CyanogenMod/android_hardware_intel_libva,halleyzhao/libva-fdo,android-ia/hardware_intel_libva,CyanogenMod/android_hardware_intel_libva,halleyzhao/libva-fdo,android-ia/hardware_intel_libva,android-ia/hardware_intel_libva