Dilyan Palauzov <Dilyan(dot)Palauzov(at)aegee(dot)org> writes:
> The current postgres/configure.ac logic is: if libldap_r is availabe,
> then use it, otherwise use libldap.
Right.
> I propose, instead of looking for the presence of libldap_r, to check
> the feature macro, and if libldap is reentrant, not to use libldap_r .
Why? This seems more fragile (i.e., it adds an assumption that the
visible header file matches the available libraries), and if there is
a concrete benefit, you did not say what that is.
regards, tom lane