https://bugs.winehq.org/show_bug.cgi?id=52140
--- Comment #4 from Hans Leidekker hans@meelstraat.net --- Debian's libldap2-dev:amd64 installs a symlink from libldap.so to libldap_r.so. If that's the case in other major distributions and if that's been done long enough I guess we can just switch the configure check from ldap_r to ldap.