index 7bf798674ce742fe31f5cc5047f726a11b98da67..253994931e8a1a4cf38dd89292d1b699a78f60f0 100644 (file)
###############################################################
ldapopt = get_option('ldap')
-if host_system == 'windows'
+if ldapopt.disabled()
+ ldap = not_found_dep
+ ldap_r = not_found_dep
+elif host_system == 'windows'
ldap = cc.find_library('wldap32', required: ldapopt)
ldap_r = ldap
else