This is NOT a waf tool but generic functions to be called from a waf
tool, in particular by wcb.py.
There's probably a wafier way to do this.
The interpretation of options are very specific so don't change them
unless you really know all the use cases. The rules are:
If package is optional:
- omitting all --with-NAME* options will omit use the package
- explicitly using --with-NAME=false (or "no" or "off") will omit
use of the package.
If package is mandatory:
- omitting all --with-NAME* options will use pkg-config to find
the package.
- explicitly using --with-NAME=false (or "no" or "off") will
assert.
In either case:
- explicitly using --with-NAME=true (or "yes" or "on") will use
pkg-config to find the package.
- using --with-NAME* with a path will attempt to locate the
package without using pkg-config
Note, actually, pgk-config fails often to do its job. Best to always
use explicit --with-NAME=[<bool>|<dir>].