MINOR: config: add predicate "feature" to detect certain built-in features
authorWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 14:34:23 +0000 (16:34 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 May 2021 15:02:36 +0000 (17:02 +0200)
commit58ca706e164f1bc4973c7a96240ccae2647177fa
treee17e9afe481b3b8b29545e9173715b4254558138
parent6492e87b0ec24c2320927a16d742528349da7e2d
MINOR: config: add predicate "feature" to detect certain built-in features

The "feature(name)" predicate will return true if <name> corresponds to
a name listed after a '+' in the features list, that is it was enabled at
build time with USE_<name>=1. Typical use cases will include OPENSSL, LUA
and LINUX_SPLICE. But maybe it will also be convenient to use with optional
addons such as PROMEX and the device detection modules to help keeping the
same configs across various deployments.
doc/configuration.txt
src/cfgparse.c