Bring back original autoconf check for OpenGL.