glib-networking: fix build without gnutls
authorPeter Korsgaard <jacmet@sunsite.dk>
Sun, 4 Mar 2012 19:34:02 +0000 (20:34 +0100)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sun, 4 Mar 2012 19:34:22 +0000 (20:34 +0100)
configure errors out when it doesn't find gnutls unless explicitly
disabled.

Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
package/glib-networking/glib-networking.mk

index b1ad6211011fdf3c95d3c753b8fddfd37843a08f..47415d85d6d4aaa200b1853e01eb2dea213aed9d 100644 (file)
@@ -16,7 +16,9 @@ GLIB_NETWORKING_DEPENDENCIES = $(if $(BR2_NEEDS_GETTEXT_IF_LOCALE),gettext libin
 
 ifeq ($(BR2_PACKAGE_GNUTLS),y)
 GLIB_NETWORKING_DEPENDENCIES += gnutls
-GLIB_NETWORKING_CONF_OPT = --with-libgcrypt-prefix=$(STAGING_DIR)/usr
+GLIB_NETWORKING_CONF_OPT += --with-libgcrypt-prefix=$(STAGING_DIR)/usr
+else
+GLIB_NETWORKING_CONF_OPT += --without-gnutls
 endif
 
 $(eval $(call AUTOTARGETS))