package/apr-util: add optional support for openldap
authorBernd Kuhls <bernd.kuhls@t-online.de>
Fri, 4 May 2018 18:26:15 +0000 (20:26 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Tue, 8 May 2018 13:26:57 +0000 (15:26 +0200)
apr-util contains optional support for openldap:

$ ls -1 output/target/usr/lib/apr-util-1/apr_ldap*
output/target/usr/lib/apr-util-1/apr_ldap-1.so
output/target/usr/lib/apr-util-1/apr_ldap.la
output/target/usr/lib/apr-util-1/apr_ldap.so

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/apr-util/apr-util.mk

index 22f1913865f82c2d465b7f18a30a6c2aca07a509..973194b915a830935fa4ed32da623f5b3fc0dc2d 100644 (file)
@@ -47,6 +47,16 @@ else
 APR_UTIL_CONF_OPTS += --without-sqlite3
 endif
 
+ifeq ($(BR2_PACKAGE_OPENLDAP),y)
+APR_UTIL_CONF_OPTS += \
+       --with-ldap \
+       --with-ldap-include="$(STAGING_DIR)/usr/include/" \
+       --with-ldap-lib="$(STAGING_DIR)/usr/lib"
+APR_UTIL_DEPENDENCIES += openldap
+else
+APR_UTIL_CONF_OPTS += --without-ldap
+endif
+
 ifeq ($(BR2_PACKAGE_OPENSSL),y)
 APR_UTIL_CONF_OPTS += --with-crypto --with-openssl="$(STAGING_DIR)/usr"
 APR_UTIL_DEPENDENCIES += openssl