package/asterisk: add optional openldap dependency
authorYann E. MORIN <yann.morin.1998@free.fr>
Sat, 9 Sep 2017 21:39:23 +0000 (23:39 +0200)
committerArnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Sat, 23 Sep 2017 17:20:18 +0000 (19:20 +0200)
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
[Arnout: --with-ldap, suggested by Bernd]
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
package/asterisk/asterisk.mk

index 921281e2602e5974ffd78b483190d9bfc9810567..5ccd451cebbe6119d0cebd6cc1cadabe2101c137 100644 (file)
@@ -66,7 +66,6 @@ ASTERISK_CONF_OPTS = \
        --without-jack \
        --without-uriparser \
        --without-kqueue \
-       --without-ldap \
        --without-libedit \
        --without-libxslt \
        --without-ltdl \
@@ -155,6 +154,13 @@ else
 ASTERISK_CONF_OPTS += --without-ical
 endif
 
+ifeq ($(BR2_PACKAGE_OPENLDAP),y)
+ASTERISK_DEPENDENCIES += openldap
+ASTERISK_CONF_OPTS += --with-ldap
+else
+ASTERISK_CONF_OPTS += --without-ldap
+endif
+
 ifeq ($(BR2_PACKAGE_NEON),y)
 ASTERISK_DEPENDENCIES += neon
 ASTERISK_CONF_OPTS += --with-neon