[linux] don't call glxinfo or xdpyinfo when X11 or GL support was disabl...

...ed (fixes #15442)