1 diff --git i/meson.build w/meson.build
2 index b159b4071..2a1c68891 100644
3 --- i/meson.build
4 +++ w/meson.build
5 @@ -313,7 +313,7 @@ endif
6
7 if feature_conf.get('CAIRO_HAS_XCB_SURFACE', 0) == 1 and feature_conf.get('CAIRO_HAS_XLIB_SURFACE', 0) == 1
8 # FIXME: automagic
9 - x11xcb_dep = dependency('x11-xcb', required: false)
10 + x11xcb_dep = dependency('x11-xcb', required: get_option('xlib-xcb'))
11 if x11xcb_dep.found()
12 deps += [x11xcb_dep]
13 feature_conf.set('CAIRO_HAS_XLIB_XCB_FUNCTIONS', 1)
14 diff --git i/meson_options.txt w/meson_options.txt
15 index ff11fe7ed..d1ae959e1 100644
16 --- i/meson_options.txt
17 +++ w/meson_options.txt
18 @@ -17,6 +17,7 @@ option('qt', type : 'feature', value : 'disabled')
19 option('tee', type : 'feature', value : 'disabled')
20 option('xcb', type : 'feature', value : 'auto')
21 option('xlib', type : 'feature', value : 'auto')
22 +option('xlib-xcb', type : 'feature', value : 'disabled')
23 #option('xml', type : 'feature', value : 'disabled')
24 option('zlib', type : 'feature', value : 'auto') # script, ps, pdf, xml surfaces
25
|