From 9a41f96ad0a53af6bd52ca2299ca108606dbb928 Mon Sep 17 00:00:00 2001 From: Aisha Tammy Date: Sat, 27 Jun 2020 19:21:34 -0400 Subject: [PATCH] add systemtap option for sys/std.h Signed-off-by: Aisha Tammy --- meson.build | 2 +- meson_options.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 42b553c..b8b5c9f 100644 --- a/meson.build +++ b/meson.build @@ -88,7 +88,7 @@ if gnutls.found() config.set('ENABLE_TLS', true) endif -if host_system == 'linux' and cc.has_header('sys/sdt.h') +if host_system == 'linux' and get_option('systemtap') and cc.has_header('sys/sdt.h') config.set('HAVE_USDT', true) endif diff --git a/meson_options.txt b/meson_options.txt index f32b394..4dfd836 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -2,3 +2,4 @@ option('benchmarks', type: 'boolean', value: false, description: 'Build benchmar option('examples', type: 'boolean', value: false, description: 'Build examples') option('jpeg', type: 'feature', value: 'auto', description: 'Enable JPEG compression') option('tls', type: 'feature', value: 'auto', description: 'Enable encryption & authentication') +option('systemtap', type: 'boolean', value: false, description: 'Enable tracing using sdt')