]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
build docs: detect Lua sec and socket libraries in make info
authorPetr Špaček <petr.spacek@nic.cz>
Fri, 13 Jan 2017 16:46:11 +0000 (17:46 +0100)
committerPetr Špaček <petr.spacek@nic.cz>
Fri, 13 Jan 2017 16:46:11 +0000 (17:46 +0100)
Makefile
doc/build.rst
platform.mk

index 193f2f60fe81ba31b0eabd44e283e5ca91ec2c4b..3b6e5359388648f3f9da04b682eeefbb24ae12b5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,8 @@ $(eval $(call find_lib,lmdb))
 $(eval $(call find_lib,libuv,1.0,yes))
 $(eval $(call find_lib,nettle,,yes))
 $(eval $(call find_alt,lua,luajit))
+$(eval $(call find_luapkg,ltn12))
+$(eval $(call find_luapkg,ssl.https))
 $(eval $(call find_lib,cmocka))
 $(eval $(call find_bin,doxygen))
 $(eval $(call find_bin,sphinx-build))
@@ -105,6 +107,8 @@ info:
        $(info [$(HAS_cmocka)] cmocka (tests/unit))
        $(info [$(HAS_libsystemd)] systemd (daemon))
        $(info [$(HAS_nettle)] nettle (modules/cookies))
+       $(info [$(HAS_ltn12)] Lua socket ltn12 (modules/trust_anchors))
+       $(info [$(HAS_ssl.https)] Lua ssl.https (modules/trust_anchors))
        $(info )
 
 # Verify required dependencies are met, as listed above
index f4c67245b120c22468439cd622ba34a575cf6892..c23aa816fd0de582c42707f94582c8b369ec6dc6 100644 (file)
@@ -83,7 +83,7 @@ Most of the dependencies can be resolved from packages, here's an overview for s
    # integration tests
    sudo dnf install cmake git python-dns python-jinja2
    # optional features
-   sudo dnf install golang hiredis-devel libmemcached-devel systemd-devel
+   sudo dnf install golang hiredis-devel libmemcached-devel lua-sec-compat lua-socket-compat systemd-devel
    # docs
    sudo dnf install doxygen python-breathe python-sphinx
 
index 6bbbb0a20dc5edb8a77ae7b438df42fe670ae4f3..ad3367c18303fb6c95ce929bfb0f93ef8fc8c8cc 100644 (file)
@@ -183,6 +183,11 @@ define find_gopkg
        HAS_$(1) := $(shell go list $(2) > /dev/null 2>&1 && echo yes || echo no)
 endef
 
+# Find Lua package
+define find_luapkg
+       HAS_$(1) := $(shell luajit -l $(1) -e "os.exit(0)"> /dev/null 2>&1 && echo yes || echo no)
+endef
+
 # Find Python package
 define find_pythonpkg
        HAS_$(1) := $(shell python -c "import $(1)" > /dev/null 2>&1 && echo yes || echo no)