by snnn · 2y ago · 0 comments
1. Force enable 2. Enable if available 3. Force disable
Like,
--enable_landlock=always
--enable_landlock
--disable_landlockIt's much simpler to say "enable this if we can compile it" rather than detecting the compiler and target platform and throwing a mess of conditional compilation into an autoconf script.
Likewise, I'd rather distros figure out the hard way when a new release has a new feature and needs a new dependency rather than their users complain that a new feature is missing.
Principle of least surprises.
If you explicitly set the enable-landlock flag, configure will fail when the feature doesn't compile.
See: https://cmake.org/cmake/help/latest/command/option.html