From 3352b7410b47adf06a63c806651acc9e61606b4b Mon Sep 17 00:00:00 2001
From: philippegorley <gorley.philippe@gmail.com>
Date: Tue, 2 Oct 2018 12:20:07 -0400
Subject: [PATCH] opendht: revert to building using autotools

CMake build fails on MinGW when trying to find argon2

Change-Id: Ibe9451cfd324cbfd196434e3cbf8f01e1ae41a1d
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
---
 contrib/src/opendht/rules.mak | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/contrib/src/opendht/rules.mak b/contrib/src/opendht/rules.mak
index 139da915a6..7f84e8dacf 100644
--- a/contrib/src/opendht/rules.mak
+++ b/contrib/src/opendht/rules.mak
@@ -31,9 +31,11 @@ $(TARBALLS)/opendht-$(OPENDHT_VERSION).tar.gz:
 
 opendht: opendht-$(OPENDHT_VERSION).tar.gz
 	$(UNPACK)
+	$(UPDATE_AUTOCONFIG) && cd $(UNPACK_DIR)
 	$(MOVE)
 
 .opendht: opendht .sum-opendht
-	cd $< && $(HOSTVARS) $(CMAKE) -DOPENDHT_STATIC=On -DOPENDHT_SHARED=Off -DOPENDHT_TOOLS=Off -DOPENDHT_PROXY_CLIENT=On -DOPENDHT_PUSH_NOTIFICATIONS=On -DOPENDHT_DOCUMENTATION=Off .
+	mkdir -p $</m4 && $(RECONF)
+	cd $< && $(HOSTVARS) ./configure --enable-static --disable-shared --disable-tools --disable-python --disable-doc --enable-proxy-server --enable-proxy-client --enable-push-notifications $(HOSTCONF)
 	cd $< && $(MAKE) install
 	touch $@
-- 
GitLab