add systemtap option for sys/std.h

Signed-off-by: Aisha Tammy <gentoo@aisha.cc>
qemu-kb-ext
Aisha Tammy 2020-06-27 19:21:34 -04:00 committed by Andri Yngvason
parent e507a76d8d
commit 9a41f96ad0
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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')