On Feb 24, 2009, at 12:01 PM, richm@stanfordalumni.org wrote:
Kurt@OpenLDAP.org wrote:
On Feb 23, 2009, at 5:08 PM, hyc@symas.com wrote:
I'm still uncertain about how configure should detect the NSS header files though; they are not in any standardized location yet AFAICS.
Like with other things, I would assume the environment to be adjusted to find the right NSS prior to running configure.
I'm not sure I understand what you mean by "environment to be adjusted"
CPPFLAGS, CFLAGS, ... and PATH environmental variables.
- How does openldap detect the header files for other components?
autoconf is used, which uses the compiler to check if necessary headers are there, with the (additional to those built into the compiler) header path specified via CPPFLAGS.
The idea here is to give the builder the freedom over which header directories are searched, and the order in which they are searched.
Note that both NSPR and NSS support pkg-config
Here would be to ensure that the proper pkg-config is in the PATH.
Of course, pkg-config stuff gets stuff into the environment in some fixed order, which does take away some freedom from the builder. I guess the builder can always manually adjust the order (by providing CPPFLAGS, etc., directly) and then provide a pkg_config which does little. So the freedom is there, just harder to take advantage of.
-- Kurt