--- a/meson.build
+++ b/meson.build
@@ -10,11 +10,12 @@ m_dep = cc.find_library('m', required: false)
 capng_dep = dependency('libcap-ng', required: get_option('capng'))
 ncurses_dep = dependency('curses', required: get_option('ui'))
 systemd_dep = dependency('libsystemd', required: get_option('systemd'))
+numa_dep = dependency('libnuma', required: get_option('numa'))
 
 cdata = configuration_data()
 cdata.set('HAVE_GETOPT_LONG', cc.has_function('getopt_long'))
 cdata.set('HAVE_IRQBALANCEUI', ncurses_dep.found())
-cdata.set('HAVE_NUMA_H', cc.has_header('numa.h'))
+cdata.set('HAVE_NUMA_H', numa_dep.found())
 cdata.set('HAVE_LIBCAP_NG', capng_dep.found())
 cdata.set('HAVE_LIBSYSTEMD', systemd_dep.found())
 cdata.set_quoted('VERSION', meson.project_version())
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -9,3 +9,7 @@ option('systemd', type : 'feature',
 option('ui', type : 'feature',
   description : 'Build the UI component',
 )
+
+option('numa', type : 'feature',
+  description : 'Build with numa support',
+)
