diff --git a/configure b/configure index 46a75947cd..d44d6b887f 100755 --- a/configure +++ b/configure @@ -2442,9 +2442,9 @@ if test "$opengl" != "no" ; then #include #include #include -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