@@ -51,6 +51,7 @@ cxx_available = add_languages('cpp', required: false, native: false)
5151# dependencies are present. Also, -Dpython=enabled forces -Dlibnvme=enabled.
5252want_nvme = get_option (' nvme' ).disabled() == false
5353want_libnvme = get_option (' libnvme' ).disabled() == false
54+ want_fabrics = get_option (' fabrics' ).disabled() == false
5455want_docs = get_option (' docs' )
5556want_docs_build = get_option (' docs-build' )
5657
@@ -128,6 +129,8 @@ endif
128129conf.set(' SYSCONFDIR' , ' "@0@"' .format(sysconfdir))
129130conf.set(' RUNDIR' , ' "@0@"' .format(rundir))
130131
132+ conf.set(' CONFIG_FABRICS' , want_fabrics, description : ' Is fabrics enabled' )
133+
131134# Check for libjson-c availability
132135if get_option (' json-c' ).disabled()
133136 json_c_dep = dependency ('' , required : false )
@@ -277,14 +280,14 @@ else
277280endif
278281
279282
280- if get_option (' liburing' ).disabled()
283+ if not want_fabrics or get_option (' liburing' ).disabled()
281284 liburing_dep = dependency ('' , required : false )
282285else
283286 liburing_dep = dependency (' liburing' , version : ' >=2.2' , required : get_option (' liburing' ))
284287endif
285288conf.set(' CONFIG_LIBURING' , liburing_dep.found(), description : ' Is liburing available?' )
286289
287- if get_option (' openssl' ).disabled()
290+ if not want_fabrics or get_option (' openssl' ).disabled()
288291 openssl_dep = dependency ('' , required : false )
289292else
290293 openssl_dep = dependency (
@@ -313,14 +316,14 @@ if openssl_dep.found()
313316endif
314317conf.set(' CONFIG_OPENSSL' , openssl_dep.found(), description : ' Is OpenSSL/LibreSSL available?' )
315318
316- if get_option (' keyutils' ).disabled()
319+ if not want_fabrics or get_option (' keyutils' ).disabled()
317320 keyutils_dep = dependency ('' , required : false )
318321else
319322 keyutils_dep = dependency (' libkeyutils' , required : get_option (' keyutils' ))
320323endif
321324conf.set(' CONFIG_KEYUTILS' , keyutils_dep.found(), description : ' Is libkeyutils available?' )
322325
323- if get_option (' libdbus' ).disabled()
326+ if not want_fabrics or get_option (' libdbus' ).disabled()
324327 libdbus_dep = dependency ('' , required : false )
325328else
326329 # Check for libdbus availability. Optional, only required for MCTP dbus scan
@@ -630,6 +633,7 @@ summary(dep_dict, section: 'Dependencies', bool_yn: true)
630633wanted_dict = {
631634 ' nvme' : want_nvme,
632635 ' libnvme' : want_libnvme,
636+ ' fabrics' : want_fabrics,
633637 ' python bindings ' : want_python,
634638 ' build docs' : want_docs_build,
635639}
0 commit comments