build: configure: Pick config values from env variables.

This allows us to use clang static analysis.