Commit 7ee387f4 authored by Peter Korsgaard's avatar Peter Korsgaard
Browse files

libmicrohttpd: make https support optional



Libmicrohttpd works nicely without https support, so make it optional.
Also ensure the cross-libgcrypt-config is found, rather than whatever
is installed on the host.

Signed-off-by: default avatarPeter Korsgaard <jacmet@sunsite.dk>
parent cbd50992
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
config BR2_PACKAGE_LIBMICROHTTPD
	bool "libmicrohttpd"
	select BR2_PACKAGE_LIBGCRYPT
	help
	  GNU libmicrohttpd is a small C library that makes it easy to
	  run an HTTP server as part of another application.

	  http://www.gnu.org/software/libmicrohttpd/

config BR2_PACKAGE_LIBMICROHTTPD_SSL
       bool "https support"
       depends on BR2_PACKAGE_LIBMICROHTTPD
       select BR2_PACKAGE_LIBGCRYPT
       help
         Enable HTTPS (SSL) support.
+7 −1
Original line number Diff line number Diff line
@@ -8,6 +8,12 @@ LIBMICROHTTPD_SOURCE:=libmicrohttpd-$(LIBMICROHTTPD_VERSION).tar.gz
LIBMICROHTTPD_SITE:=$(BR2_GNU_MIRROR)/libmicrohttpd
LIBMICROHTTPD_INSTALL_STAGING = YES

LIBMICROHTTPD_DEPENDENCIES = libgcrypt
ifeq ($(BR2_PACKAGE_LIBMICROHTTPD_SSL),y)
LIBMICROHTTPD_DEPENDENCIES += libgcrypt
LIBMICROHTTPD_CONF_OPT += --enable-https \
			  --with-libgcrypt-prefix=$(STAGING_DIR)/usr
else
LIBMICROHTTPD_CONF_OPT += --disable-https
endif

$(eval $(call AUTOTARGETS,package,libmicrohttpd))