endif
gst_version_is_dev = gst_version_minor % 2 == 1 and gst_version_micro < 90
-# FIXME: automagic
-have_cxx = add_languages('cpp', required : false)
+have_cxx = add_languages('cpp', native: false, required: false)
glib_req = '>= 2.44.0'
orc_req = '>= 0.4.17'
gstgl_dep = dependency('gstreamer-gl-1.0', version : gst_req,
fallback : ['gst-plugins-base', 'gstgl_dep'], required: false)
-build_gstgl = gstgl_dep.found() # FIXME: add option?
+have_gstgl = gstgl_dep.found()
-if build_gstgl
+if have_gstgl
if gstgl_dep.type_name() == 'pkgconfig'
gst_gl_apis = gstgl_dep.get_pkgconfig_variable('gl_apis').split()
gst_gl_winsys = gstgl_dep.get_pkgconfig_variable('gl_winsys').split()