Skip to content

Commit

Permalink
configure: proper OpenGL/GLX probe
Browse files Browse the repository at this point in the history
Probe for GL and GLX symbols and X11 library. This fixes a build error
where the header files are available but the libraries are not.

Signed-off-by: Michael Walle <michael@walle.cc>
  • Loading branch information
mwalle committed Mar 18, 2013
1 parent 6635075 commit d3fcbb1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure
Expand Up @@ -2442,9 +2442,9 @@ if test "$opengl" != "no" ; then
#include <X11/Xlib.h>
#include <GL/gl.h>
#include <GL/glx.h>
int main(void) { return GL_VERSION != 0; }
int main(void) { glBegin(0); glXQueryVersion(0,0,0); return 0; }
EOF
if compile_prog "" "-lGL" ; then
if compile_prog "" "-lGL -lX11" ; then
opengl=yes
else
if test "$opengl" = "yes" ; then
Expand Down

0 comments on commit d3fcbb1

Please sign in to comment.