package/bind: add json-c optional dependency

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
This commit is contained in:
Fabrice Fontaine 2022-07-23 22:59:54 +02:00 committed by Arnout Vandecappelle (Essensium/Mind)
parent 75a287a4fa
commit fbdcd55134

View File

@ -33,7 +33,6 @@ BIND_CONF_ENV = \
BIND_CONF_OPTS = \
--without-cmocka \
--without-lmdb \
--with-json-c=no \
--enable-epoll \
--disable-backtrace \
--with-openssl=$(STAGING_DIR)/usr
@ -47,6 +46,13 @@ else
BIND_CONF_OPTS += --without-zlib
endif
ifeq ($(BR2_PACKAGE_JSON_C),y)
BIND_CONF_OPTS += --with-json-c
BIND_DEPENDENCIES += json-c
else
BIND_CONF_OPTS += --without-json-c
endif
ifeq ($(BR2_PACKAGE_LIBCAP),y)
BIND_CONF_OPTS += --enable-linux-caps
BIND_DEPENDENCIES += libcap