build: Only allow GLX when finding the x11 pc file

You can refine earlier the ALLOW_GLX variable when enabling OpenGL builds:
No x11.pc? no GLX!
This commit is contained in:
Damien Lespiau 2011-05-12 11:43:27 +01:00
parent 0da07b4e3d
commit a789107860

View File

@ -396,7 +396,8 @@ AS_IF([test "x$enable_gl" = "xyes"],
[
DRIVER_COUNT=$((DRIVER_COUNT + 1))
COGL_DRIVER=gl
ALLOW_GLX=yes
PKG_CHECK_EXISTS([x11], [ALLOW_GLX=yes])
cogl_gl_headers="GL/gl.h"