build: fix EGL build when no X11 headers are present
authorRoss Burton <ross.burton@intel.com>
Thu, 27 Jun 2013 11:35:07 +0000 (12:35 +0100)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 1 Jul 2013 17:06:11 +0000 (10:06 -0700)
commit1a7275de9a0088cedab17131eec82bd2cada26c3
treed05e38abdbeb7d57e17eea1116d1d3c57955a068
parentacc6a141b8976d0615e03c4530b64cefdb1aa199
build: fix EGL build when no X11 headers are present

eglplatform.h defaults to X11 on Unix unless told otherwise, so if we're doing a
build without any X11 support tell it so that we don't try including headers
that don't exist.

Also set GL_PC_FLAGS so that the definition is in egl.pc, so that applications
using EGL don't try to pull in X11 headers on systems where EGL was configured
without X11 support.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=64959
Signed-off-by: Ross Burton <ross.burton@intel.com>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
configure.ac