configure.ac: GLX cannot work without OpenGL
authorMichel Dänzer <michel.daenzer@amd.com>
Thu, 31 Jan 2013 10:47:55 +0000 (11:47 +0100)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Wed, 13 Feb 2013 17:46:40 +0000 (18:46 +0100)
commita8f8287154bfebc8bade25703ef252d251386186
tree593e085cc9c9470b1607e2ed4ccc5b4521653958
parentd2d3cd2be78022e585b4a155d742d346471453d0
configure.ac: GLX cannot work without OpenGL

GLX uses mapi/glapi/libglapi.la, which is only built for OpenGL.

If the user specified --enable-xlib-glx --disable-opengl, error out, as these
cannot be both observed at the same time. If the user just specified
--disable-opengl but not --disable-glx, print a warning and disable GLX as
well.

NOTE: This is a candidate for the stable branches.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59364

Tested-by: Tom Stellard <thomas.stellard@amd.com>
(cherry picked from commit 3b888f534cd42065b01ede8b9c646a2be0015509)
configure.ac