egl: add HAVE_LIBDRM define, fix EGL X11 platform
authorTapani Pälli <tapani.palli@intel.com>
Sun, 1 Dec 2013 09:53:55 +0000 (11:53 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 3 Dec 2013 17:21:24 +0000 (09:21 -0800)
commita057b837ddd1c725a7504eedc53c6df05a012773
treecd38ea0291c88629cacbeb34ba9c0e7058e9f222
parentad3937fd4efdd0a9a2b79ab6ae899a4ca1f3bb01
egl: add HAVE_LIBDRM define, fix EGL X11 platform

Commit a594cec broke EGL X11 backend by adding dependency between
X11 and DRM backends requiring HAVE_EGL_PLATFORM_DRM defined for X11.

This patch fixes the issue by adding additional define for libdrm
detection independent of which backend is being compiled. Tested by
compiling Mesa with '--with-egl-platforms=x11' and running es2gears_x11
+ glbenchmark2.7 successfully.

v2: return true for dri2_auth if running without libdrm (Samuel)
v3: check libdrm when building EGL drm platform + AM_CFLAGS fix (Emil)

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=72062
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: mesa-stable@lists.freedesktop.org
configure.ac
src/egl/drivers/dri2/platform_x11.c