gl/build: also check for the GL/gl.h header
authorMatthew Waters <matthew@centricular.com>
Wed, 23 Aug 2017 06:23:07 +0000 (16:23 +1000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:32:30 +0000 (19:32 +0000)
In order to successfully build against a detected libGL library we also need headers

gst-libs/gst/gl/meson.build

index 2c70492e0c1564965515f74a5f6bc3d647172241..78bdfd010afa14fc5cbe1f41795866ea2fe6db0f 100644 (file)
@@ -272,6 +272,10 @@ if need_api_opengl != 'no' or need_platform_glx != 'no'
       gl_dep = cc.find_library('GL', required : false)
     endif
 
+    if not cc.has_header('GL/gl.h', required : false)
+      gl_dep = unneeded_dep
+    endif
+
     if not gl_dep.found() and need_api_opengl == 'yes'
       error ('Could not find requested OpenGL library')
     endif