Un-break AIX build, take 2.

Tom Lane <tgl@sss.pgh.pa.us>

Commit: 3c612d9f66385f95d6e7a33e77ffac7bf6156a85
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2021-07-09T20:59:08Z
Releases: 9.6.23
Un-break AIX build, take 2.

I incorrectly diagnosed the reason why hoverfly is unhappy.
Looking closer, it appears that it fails to link libldap
unless libssl is also present; so the problem was my
idea of clearing LIBS before making the check.  Revert
to essentially the original coding, except that instead
of failing when libldap_r isn't there, use libldap.

Per buildfarm member hoverfly.

Discussion: https://postgr.es/m/17083-a19190d9591946a7@postgresql.org

Files

PathChange+/−
configure modified +39 −58
configure.in modified +12 −14

Discussion