Commit 4b268005 authored by Xavier Claessens's avatar Xavier Claessens

Check for zlib header

parent b93e3759
Pipeline #9303 passed with stages
in 12 minutes and 8 seconds
......@@ -307,11 +307,15 @@ endif
zlib_dep = dependency('zlib', required : false)
if not zlib_dep.found()
zlib_dep = cc.find_library('z', required : false)
if not zlib_dep.found()
zlib_dep = subproject('zlib').get_variable('zlib_dep')
if zlib_dep.found() and not cc.has_header('zlib.h')
error('zlib found but not its header')
endif
endif
cdata.set('HAVE_ZLIB', true)
if not zlib_dep.found()
zlib_dep = subproject('zlib').get_variable('zlib_dep')
endif
core_conf.set('HAVE_ZLIB', true)
glib_deps = [dependency('glib-2.0', version : glib_req, fallback: ['glib', 'libglib_dep']),
dependency('gobject-2.0', fallback: ['glib', 'libgobject_dep'])]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment