conf.set('HAVE_LIBBLKID', build_libblkid ? 1 : false)
summary('libblkid', build_libblkid ? 'enabled' : 'disabled', section : 'components')
-build_libuuid = not get_option('build-libuuid').disabled()
+build_libuuid = get_option('build-libuuid').allowed()
conf.set('HAVE_LIBUUID', build_libuuid ? 1 : false)
summary('libuuid', build_libuuid ? 'enabled' : 'disabled', section : 'components')
conf.set('USE_LIBMOUNT_MOUNTFD_SUPPORT', have_mountfd_api ? 1 : false)
summary('libmount', build_libmount ? 'enabled' : 'disabled', section : 'components')
-build_libsmartcols = not get_option('build-libsmartcols').disabled()
+build_libsmartcols = get_option('build-libsmartcols').allowed()
summary('libsmartcols', build_libsmartcols ? 'enabled' : 'disabled', section : 'components')
-build_libfdisk = not get_option('build-libfdisk').require(get_option('build-libblkid').allowed()).disabled()
+build_libfdisk = get_option('build-libfdisk').require(get_option('build-libblkid').allowed()).allowed()
summary('libfdisk', build_libfdisk ? 'enabled' : 'disabled', section : 'components')
-build_uuidd = not get_option('build-uuidd').disabled()
+build_uuidd = get_option('build-uuidd').allowed()
conf.set('HAVE_UUIDD', build_uuidd ? 1 : false)
summary('uuidd', build_uuidd ? 'enabled' : 'disabled', section : 'components')
'sd_device_new_from_devname',
dependencies : lib_systemd)
conf.set('USE_LIBMOUNT_UDEV_SUPPORT',
- not get_option('build-libmount-udev-support').disabled() and have ? 1 : false)
+ get_option('build-libmount-udev-support').allowed() and have ? 1 : false)
lib_udev = dependency(
'libudev',
required : get_option('cryptsetup'))
conf.set('HAVE_CRYPTSETUP', lib_cryptsetup.found() ? 1 : false)
-cryptsetup_dlopen = not get_option('cryptsetup').disabled() and get_option('cryptsetup-dlopen').enabled()
+cryptsetup_dlopen = get_option('cryptsetup').allowed() and get_option('cryptsetup-dlopen').enabled()
if cryptsetup_dlopen
if meson.version().version_compare('>= 0.62.0')
lib_dl = dependency('dl')
required : get_option('audit'))
conf.set('HAVE_LIBAUDIT', lib_audit.found() ? 1 : false)
-conf.set('HAVE_SMACK', not get_option('smack').disabled())
+conf.set('HAVE_SMACK', get_option('smack').allowed())
foreach header : headers
prefix : '#include <sys/socket.h>')
conf.set('HAVE_DECL_VMADDR_CID_LOCAL', have ? 1 : false)
-build_plymouth_support = (not build_plymouth_support.disabled() and
+build_plymouth_support = (build_plymouth_support.allowed() and
have_tiocglcktrmios and
have_sock_cloexec and
have_sock_nonblock and
flex = find_program('flex')
sed = find_program('sed')
-build_hwclock = not get_option('build-hwclock').disabled()
+build_hwclock = get_option('build-hwclock').allowed()
bison_gen = generator(
bison,
output : ['@BASENAME@.tab.c', '@BASENAME@.tab.h'],
exes = []
-opt = not get_option('build-chfn-chsh').disabled()
+opt = get_option('build-chfn-chsh').allowed()
exe = executable(
'chfn',
chfn_sources,
build_by_default : program_tests)
exes += exe
-opt = not get_option('build-last').disabled()
+opt = get_option('build-last').allowed()
exe = executable(
'last',
last_sources,
bashcompletionslinks += {'lastb': 'last'}
endif
-opt = not get_option('build-nologin').disabled()
+opt = get_option('build-nologin').allowed()
exe = executable(
'nologin',
'login-utils/nologin.c',
manadocs += nologin_manadocs
endif
-opt = not get_option('build-utmpdump').disabled()
+opt = get_option('build-utmpdump').allowed()
exe = executable(
'utmpdump',
'login-utils/utmpdump.c',
bashcompletions += ['su']
endif
-opt = not get_option('build-newgrp').disabled()
+opt = get_option('build-newgrp').allowed()
exe = executable(
'newgrp',
'login-utils/newgrp.c',
bashcompletions += ['newgrp']
endif
-opt = not get_option('build-lslogins').disabled()
+opt = get_option('build-lslogins').allowed()
exe = executable(
'lslogins',
'login-utils/lslogins.c',
bashcompletions += ['lslogins']
endif
-opt = not get_option('build-vipw').disabled()
+opt = get_option('build-vipw').allowed()
exe = executable(
'vipw',
'login-utils/vipw.c',
############################################################
-opt = not get_option('build-bits').require(have_cpu_set_t).disabled()
+opt = get_option('build-bits').require(have_cpu_set_t).allowed()
exe = executable(
'bits',
bits_sources,
bashcompletions += ['bits']
endif
-opt = not get_option('build-col').require(is_glibc).disabled()
+opt = get_option('build-col').require(is_glibc).allowed()
exe = executable(
'col',
col_sources,
bashcompletions += ['col']
endif
-opt = not get_option('build-colcrt').disabled()
+opt = get_option('build-colcrt').allowed()
exe = executable(
'colcrt',
colcrt_sources,
bashcompletions += ['colcrt']
endif
-opt = not get_option('build-colrm').disabled()
+opt = get_option('build-colrm').allowed()
exe = executable(
'colrm',
colrm_sources,
bashcompletions += ['colrm']
endif
-opt = not get_option('build-rev').disabled()
+opt = get_option('build-rev').allowed()
exe = executable(
'rev',
rev_sources,
bashcompletions += ['column']
endif
-opt = not get_option('build-line').disabled()
+opt = get_option('build-line').allowed()
exe = executable(
'line',
line_sources,
manadocs += line_manadocs
endif
-opt = not get_option('build-pg').disabled()
+opt = get_option('build-pg').allowed()
exe = executable(
'pg',
pg_sources,
bashcompletions += ['pg']
endif
-opt = not get_option('build-ul').disabled()
+opt = get_option('build-ul').allowed()
exe = executable(
'ul',
ul_sources,
bashcompletions += ['ul']
endif
-opt = not get_option('build-more').disabled()
+opt = get_option('build-more').allowed()
exe = executable(
'more',
more_sources,
bashcompletions += ['more']
endif
-opt = not get_option('build-hexdump').disabled()
+opt = get_option('build-hexdump').allowed()
exe = executable(
'hexdump',
hexdump_sources,
bashcompletions += ['hexdump']
endif
-opt = not get_option('build-lsmem').disabled()
+opt = get_option('build-lsmem').allowed()
exe = executable(
'lsmem',
lsmem_sources,
bashcompletions += ['lsmem']
endif
-opt = not get_option('build-chmem').disabled()
+opt = get_option('build-chmem').allowed()
exe = executable(
'chmem',
chmem_sources,
bashcompletions += ['chmem']
endif
-opt = not get_option('build-choom').disabled()
+opt = get_option('build-choom').allowed()
exe = executable(
'choom',
choom_sources,
bashcompletions += ['ipcrm']
endif
-opt = not get_option('build-ipcs').require(has_seminfo_type).disabled()
+opt = get_option('build-ipcs').require(has_seminfo_type).allowed()
exe = executable(
'ipcs',
ipcs_sources,
bashcompletions += ['ipcs']
endif
-opt = not get_option('build-rfkill').disabled()
+opt = get_option('build-rfkill').allowed()
exe = executable(
'rfkill',
rfkill_sources,
bashcompletions += ['readprofile']
endif
-opt = not get_option('build-tunelp').disabled()
+opt = get_option('build-tunelp').allowed()
exe = executable(
'tunelp',
tunelp_sources,
endforeach
endif
-opt = not get_option('build-eject').disabled()
+opt = get_option('build-eject').allowed()
exe = executable(
'eject',
eject_sources,
bashcompletions += ['eject']
endif
-opt = not get_option('build-losetup').disabled()
+opt = get_option('build-losetup').allowed()
exe = executable(
'losetup',
losetup_sources,
exes += exe
endif
-opt = not get_option('build-zramctl').disabled()
+opt = get_option('build-zramctl').allowed()
exe = executable(
'zramctl',
zramctl_sources,
bashcompletions += ['prlimit']
endif
-opt = not get_option('build-lsns').disabled()
+opt = get_option('build-lsns').allowed()
exe = executable(
'lsns',
lsns_sources,
bashcompletions += ['lsns']
endif
-opt = not get_option('build-mount').disabled()
+opt = get_option('build-mount').allowed()
exe = executable(
'mount',
mount_sources,
# setuid?
-opt = not get_option('build-swapon').disabled()
+opt = get_option('build-swapon').allowed()
exe = executable(
'swapon',
swapon_sources,
bashcompletions += ['swapon']
endif
-opt = not get_option('build-swapoff').disabled()
+opt = get_option('build-swapoff').allowed()
exe = executable(
'swapoff',
swapoff_sources,
bashcompletions += ['wdctl']
endif
-opt = not get_option('build-mountpoint').disabled()
+opt = get_option('build-mountpoint').allowed()
exe = executable(
'mountpoint',
mountpoint_sources,
bashcompletions += ['fallocate']
endif
-opt = not get_option('build-pivot_root').disabled()
+opt = get_option('build-pivot_root').allowed()
exe = executable(
'pivot_root',
pivot_root_sources,
bashcompletions += ['pivot_root']
endif
-opt = not get_option('build-switch_root').disabled()
+opt = get_option('build-switch_root').allowed()
if opt and not have_dirfd and not have_ddfd
error('neither dirfd nor ddfd are available')
endif
manadocs += switch_root_manadocs
endif
-opt = not get_option('build-unshare').disabled()
+opt = get_option('build-unshare').allowed()
exe = executable(
'unshare',
unshare_sources,
exes += exe
endif
-opt = not get_option('build-nsenter').disabled()
+opt = get_option('build-nsenter').allowed()
exe = executable(
'nsenter',
nsenter_sources,
exes += exe
endif
-opt = not get_option('build-setpriv').disabled() \
+opt = get_option('build-setpriv').allowed() \
and lib_cap_ng.found() \
and cc.has_header('linux/seccomp.h')
exe = executable(
bashcompletions += ['setpriv']
endif
-opt = not get_option('build-flock').disabled()
+opt = get_option('build-flock').allowed()
exe = executable(
'flock',
flock_sources,
bashcompletions += ['flock']
endif
-opt = not get_option('build-lsirq').disabled()
+opt = get_option('build-lsirq').allowed()
exe = executable(
'lsirq',
lsirq_sources,
bashcompletions += ['lsirq']
endif
-opt = not get_option('build-irqtop').disabled()
+opt = get_option('build-irqtop').allowed()
exe = executable(
'irqtop',
irqtop_sources,
bashcompletions += ['irqtop']
endif
-opt = not get_option('build-ipcs').disabled()
+opt = get_option('build-ipcs').allowed()
exe = executable(
'lsipc',
lsipc_sources,
bashcompletions += ['hwclock']
endif
-opt = not get_option('build-mkfs').disabled()
+opt = get_option('build-mkfs').allowed()
exe = executable(
'mkfs',
mkfs_sources,
bashcompletions += ['mkfs']
endif
-opt = not get_option('build-bfs').disabled()
+opt = get_option('build-bfs').allowed()
exe = executable(
'mkfs.bfs',
mkfs_bfs_sources,
bashcompletions += ['mkfs.bfs']
endif
-opt = not get_option('build-isosize').disabled()
+opt = get_option('build-isosize').allowed()
exe = executable(
'isosize',
isosize_sources,
bashcompletions += ['swaplabel']
endif
-opt = not get_option('build-fsck').disabled()
+opt = get_option('build-fsck').allowed()
exe = executable(
'fsck',
fsck_sources,
bashcompletions += ['fsck']
endif
-opt = not get_option('build-minix').disabled()
+opt = get_option('build-minix').allowed()
exe = executable(
'mkfs.minix',
mkfs_minix_sources,
bashcompletions += ['mkfs.minix', 'fsck.minix']
endif
-opt = not get_option('build-cramfs').disabled()
+opt = get_option('build-cramfs').allowed()
exe = executable(
'mkfs.cramfs',
mkfs_cramfs_sources,
bashcompletions += ['mkfs.cramfs', 'fsck.cramfs']
endif
-opt = not get_option('build-raw').disabled()
+opt = get_option('build-raw').allowed()
if opt
cc.has_header('linux/raw.h', required: opt)
endif
bashcompletions += ['raw']
endif
-opt = not get_option('build-fdformat').disabled()
+opt = get_option('build-fdformat').allowed()
exe = executable(
'fdformat',
fdformat_sources,
bashcompletions += ['blockdev']
endif
-opt = not get_option('build-fdisks').disabled()
+opt = get_option('build-fdisks').allowed()
if opt and not have_dirfd and not have_ddfd
error('neither dirfd nor ddfd are available')
endif
bashcompletions += ['cfdisk']
endif
-opt = not get_option('build-partx').disabled()
+opt = get_option('build-partx').allowed()
exe = executable(
'addpart',
addpart_sources,
bashcompletions += ['scriptreplay']
endif
-opt = not get_option('build-agetty').disabled()
+opt = get_option('build-agetty').allowed()
exe = executable(
'agetty',
agetty_sources,
manadocs += agetty_manadocs
endif
-opt = not get_option('build-setterm').disabled()
+opt = get_option('build-setterm').allowed()
exe = executable(
'setterm',
setterm_sources,
bashcompletions += ['setterm']
endif
-opt = not get_option('build-mesg').disabled()
+opt = get_option('build-mesg').allowed()
exe = executable(
'mesg',
mesg_sources,
tty_install_mode = [ false, false, false ]
endif
-opt = not get_option('build-wall').disabled()
+opt = get_option('build-wall').allowed()
exe = executable(
'wall',
wall_sources,
# chgrp tty $(DESTDIR)$(usrbin_execdir)/wall
# chmod g+s $(DESTDIR)$(usrbin_execdir)/wall
-opt = not get_option('build-write').disabled()
+opt = get_option('build-write').allowed()
exe = executable(
'write',
write_sources,
# chgrp tty $(DESTDIR)$(usrbin_execdir)/write
# chmod g+s $(DESTDIR)$(usrbin_execdir)/write
-opt = not get_option('build-login').disabled()
+opt = get_option('build-login').allowed()
exe = executable(
'login',
login_sources,
manadocs += login_manadocs
endif
-opt = not get_option('build-sulogin').disabled()
+opt = get_option('build-sulogin').allowed()
exe = executable(
'sulogin',
sulogin_sources,
manadocs += sulogin_manadocs
endif
-opt = not get_option('build-cal').disabled()
+opt = get_option('build-cal').allowed()
exe = executable(
'cal',
cal_sources,
bashcompletions += ['cal']
endif
-opt = not get_option('build-logger').disabled()
+opt = get_option('build-logger').allowed()
exe = executable(
'logger',
logger_sources,
exes += exe
endif
-opt = not get_option('build-look').disabled()
+opt = get_option('build-look').allowed()
exe = executable(
'look',
look_sources,
bashcompletions += ['look']
endif
-opt = not get_option('build-mcookie').disabled()
+opt = get_option('build-mcookie').allowed()
exe = executable(
'mcookie',
mcookie_sources,
manadocs += lib_lastlog2_manadocs
endif
-opt = not get_option('build-namei').disabled()
+opt = get_option('build-namei').allowed()
exe = executable(
'namei',
namei_sources,
bashcompletions += ['namei']
endif
-opt = not get_option('build-whereis').disabled()
+opt = get_option('build-whereis').allowed()
exe = executable(
'whereis',
whereis_sources,
bashcompletions += ['whereis']
endif
-opt = not get_option('build-lslocks').disabled()
+opt = get_option('build-lslocks').allowed()
exe = executable(
'lslocks',
lslocks_sources,
bashcompletions += ['lslocks']
endif
-opt = not get_option('build-lsblk').disabled()
+opt = get_option('build-lsblk').allowed()
exe = executable(
'lsblk',
lsblk_sources,
cc.cmd_array(), get_option('c_args')],
)
-opt = not get_option('build-lsfd').require(lib_rt.found()).disabled() \
+opt = get_option('build-lsfd').require(lib_rt.found()).allowed() \
and cc.has_header_symbol('linux/bpf.h', 'BPF_OBJ_NAME_LEN') \
and cc.has_header_symbol('linux/bpf.h', 'BPF_TAG_SIZE')
exe = executable(
############################################################
-opt = not get_option('build-findfs').disabled()
+opt = get_option('build-findfs').allowed()
exe = executable(
'findfs',
findfs_sources,
bashcompletions += ['wipefs']
endif
-opt = not get_option('build-findmnt').disabled()
+opt = get_option('build-findmnt').allowed()
exe = executable(
'findmnt',
findmnt_sources,
bashcompletions += ['findmnt']
endif
-opt = not get_option('build-kill').disabled()
+opt = get_option('build-kill').allowed()
exe = executable(
'kill',
kill_sources,
manadocs += kill_manadocs
endif
-opt = not get_option('build-rename').disabled()
+opt = get_option('build-rename').allowed()
exe = executable(
'rename',
rename_sources,
bashcompletions += ['rename']
endif
-opt = not get_option('build-getopt').disabled()
+opt = get_option('build-getopt').allowed()
exe = executable(
'getopt',
getopt_sources,
############################################################
-opt = not get_option('build-schedutils').disabled()
+opt = get_option('build-schedutils').allowed()
exe = executable(
'chrt',
'schedutils/chrt.c',