Optional features should not depend on feature detection, ever. Feature detection for a security feature should be suspicious, even if it works as intended.
Optional features should always be configured by whoever tries to compile the code. There can be defaults, but they shouldn't depend on the environment.
Optional features should always be configured by whoever tries to compile the code. There can be defaults, but they shouldn't depend on the environment.