meson: make raw(7) optional
Fixes: https://github.com/karelzak/util-linux/issues/1442 Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
0c19e4ca61
commit
dff176e2f0
|
@ -160,7 +160,6 @@ headers = '''
|
||||||
linux/gsmmux.h
|
linux/gsmmux.h
|
||||||
linux/net_namespace.h
|
linux/net_namespace.h
|
||||||
linux/nsfs.h
|
linux/nsfs.h
|
||||||
linux/raw.h
|
|
||||||
linux/securebits.h
|
linux/securebits.h
|
||||||
linux/tiocl.h
|
linux/tiocl.h
|
||||||
linux/version.h
|
linux/version.h
|
||||||
|
@ -1897,6 +1896,9 @@ if not is_disabler(exe)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
opt = not get_option('build-raw').disabled()
|
opt = not get_option('build-raw').disabled()
|
||||||
|
if opt
|
||||||
|
cc.has_header('xlinux/raw.h', required: opt)
|
||||||
|
endif
|
||||||
exe = executable(
|
exe = executable(
|
||||||
'raw',
|
'raw',
|
||||||
raw_sources,
|
raw_sources,
|
||||||
|
|
|
@ -124,7 +124,7 @@ option('build-line', type : 'feature',
|
||||||
description : 'build line')
|
description : 'build line')
|
||||||
option('build-mesg', type : 'feature',
|
option('build-mesg', type : 'feature',
|
||||||
description : 'build mesg')
|
description : 'build mesg')
|
||||||
option('build-raw', type : 'feature',
|
option('build-raw', type : 'feature', value : 'disabled',
|
||||||
description : 'build raw')
|
description : 'build raw')
|
||||||
option('build-rename', type : 'feature',
|
option('build-rename', type : 'feature',
|
||||||
description : 'build rename')
|
description : 'build rename')
|
||||||
|
|
Loading…
Reference in New Issue