bashcompletions += ['ldattach']
endif
+opt = get_option('build-rtcwake').require(cc.has_header('linux/rtc.h')).allowed()
exe = executable(
'rtcwake',
rtcwake_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrsbin_exec_dir,
- install : true)
-exes += exe
-manadocs += ['sys-utils/rtcwake.8.adoc']
-bashcompletions += ['rtcwake']
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
+ exes += exe
+ manadocs += ['sys-utils/rtcwake.8.adoc']
+ bashcompletions += ['rtcwake']
+endif
exe = executable(
'setarch',
description : 'build blkpr')
option('build-ldattach', type : 'feature',
description : 'build ldattach')
+option('build-rtcwake', type : 'feature',
+ description : 'build rtcwake')
option('build-kill', type : 'feature',
description : 'build kill')
option('build-last', type : 'feature',