Since !6251 (merged) we return early if pkg-config provides the information. During review of that commit, code to populate the legacy
GLUT_INCLUDE_DIR result variable was removed from that code path. Add code to provide it.
Also fix the test case to use
GLUT_INCLUDE_DIR, the result variable documented officially by the module.
Fixes: #23018 (closed)