Fix tests configuration and building when only GLVND full OpenGL implementation is present #4201
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PREVIOUS ISSUE
Many of the tests in /tests wouldn't link if only the modern full OpenGL implementation (GLVND) is present on the system. This commit fixes that.
WHAT THIS COMMIT DOES
What this commit does is enable the
libOpenGL.so
detection intests/configure.ac
.So if
libOpenGL.so
is present test programs will be linked against-lOpenGL
instead of-lGL
.-If both
libGL.so
andlibOpenGL.so
are present,libOpenGL.so
is preferred as it's a modern and vendor-neutral implementation, vs the old and X11-boundlibGL.so
-If only
libGL.so
is present, libGL.so will be used.-If only
libOpenGL.so
is present it will be used.