--- a/lib/ldb/wscript 2016-03-16 02:40:12.000000000 -0700 +++ b/lib/ldb/wscript 2016-08-07 10:57:07.315286959 -0700 @@ -68,7 +68,7 @@ conf.CHECK_XSLTPROC_MANPAGES() # we need this for the ldap backend - if conf.CHECK_FUNCS_IN('ber_flush ldap_open ldap_initialize', 'lber ldap', headers='lber.h ldap.h'): + if conf.CHECK_FUNCS('ber_flush ldap_open ldap_initialize', lib='ldap', headers='lber.h ldap.h'): conf.env.ENABLE_LDAP_BACKEND = True # we don't want any libraries or modules to rely on runtime