* configure.ac: Move the LDAP detecting code to m4/ldap.m4.