$NetBSD: patch-aa,v 1.12 2014/09/14 17:48:37 wiz Exp $

--- setup.cfg.orig	2014-09-10 12:17:37.000000000 +0000
+++ setup.cfg
@@ -1,10 +1,10 @@
 [_ldap]
-library_dirs = /opt/openldap/lib64 /usr/lib
-include_dirs = /opt/openldap/include /usr/include/sasl /usr/include
-defines = HAVE_SASL HAVE_TLS HAVE_LIBLDAP_R
+library_dirs = @PY_LDAP_LIBRARY_DIRS@
+include_dirs = @PY_LDAP_INCLUDE_DIRS@
+defines = HAVE_TLS HAVE_LIBLDAP_R
 extra_compile_args = 
 extra_objects = 
-libs = ldap_r
+libs = @PY_LDAP_LIBS@
 
 [install]
 compile = 1
