--- a/meson.build  2026-03-07 22:33:25.770983216 +0000
+++ b/meson.build   2026-03-07 22:37:22.627752425 +0000
@@ -238,7 +238,8 @@
 config_h.set('HAVE_MALCONTENT', enable_malcontent,
              description: 'Define to 1 if malcontent support is enabled')
 
-if host_is_linux
+enable_network_manager = get_option('network_manager')
+if enable_network_manager
   # network manager
   network_manager_deps = [
     dependency('libnm', version: '>= 1.24.0'),
@@ -247,13 +247,13 @@
     dependency('mm-glib', version: '>= 0.7')
   ]
 endif
-config_h.set('BUILD_NETWORK', host_is_linux,
+config_h.set('BUILD_NETWORK', enable_network_manager,
              description: 'Define to 1 to build the Network panel')
-config_h.set('HAVE_NETWORK_MANAGER', host_is_linux,
+config_h.set('HAVE_NETWORK_MANAGER', enable_network_manager,
              description: 'Define to 1 if NetworkManager is available')
-config_h.set('BUILD_WWAN', host_is_linux,
+config_h.set('BUILD_WWAN', enable_network_manager,
              description: 'Define to 1 to build the WWan panel')
-config_h.set('HAVE_WWAN', host_is_linux,
+config_h.set('HAVE_WWAN', enable_network_manager,
              description: 'Define to 1 if WWan is available')

 if 1==0 # host_is_linux_not_s390 - disable building wacom
@@ -307,8 +309,7 @@
 })
 
 summary({
-  'NetworkManager': host_is_linux,
-  'Wacom': host_is_linux_not_s390,
+  'NetworkManager': enable_network_manager,
 }, section: 'Dependencies')
 
 summary({
