exes += exe
endif
+have_posix_fadvise = conf.get('HAVE_POSIX_FADVISE').to_string() == '1'
+
+opt = get_option('build-fadvise').require(have_posix_fadvise).allowed()
exe = executable(
'fadvise',
fadvise_sources,
include_directories : includes,
link_with : [lib_common],
install_dir : usrbin_exec_dir,
- install : true)
-if not is_disabler(exe)
+ install : opt,
+ build_by_default : opt)
+if opt and not is_disabler(exe)
exes += exe
manadocs += ['misc-utils/fadvise.1.adoc']
bashcompletions += ['fadvise']
description : 'build pg')
option('build-pipesz', type : 'feature',
description : 'build pipesz')
+option('build-fadvise', type : 'feature',
+ description : 'build fadvise')
option('build-setterm', type : 'feature',
description : 'build setterm')
option('build-schedutils', type : 'feature',