aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-17 20:02:57 +0200
committerMartin Schanzenbach <mschanzenbach@posteo.de>2020-05-17 20:02:57 +0200
commitd89a4c1ee6f00924233c799e50777ea985d5b213 (patch)
tree215610256687d848ab5c0661360763143d6c193f
parent3362a671f77099f9f53cb998a45eec073576391a (diff)
downloadgnunet-d89a4c1ee6f00924233c799e50777ea985d5b213.tar.gz
gnunet-d89a4c1ee6f00924233c799e50777ea985d5b213.zip
deps are now required, no need for defines
-rw-r--r--src/Makefile.am22
-rw-r--r--src/gns/Makefile.am12
-rw-r--r--src/hostlist/Makefile.am4
-rw-r--r--src/hostlist/gnunet-daemon-hostlist.c16
-rw-r--r--src/identity/Makefile.am2
-rw-r--r--src/integration-tests/Makefile.am2
-rw-r--r--src/namestore/Makefile.am8
-rw-r--r--src/peerinfo-tool/Makefile.am2
-rw-r--r--src/pt/Makefile.am2
-rw-r--r--src/reclaim/Makefile.am4
-rw-r--r--src/transport/Makefile.am12
11 files changed, 7 insertions, 79 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4642b6215..446b1aa2a 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -17,26 +17,12 @@ if HAVE_ABE
17 EXP_DIR += \ 17 EXP_DIR += \
18 abe 18 abe
19endif 19endif
20if HAVE_JSON
21 EXP_DIR += \ 20 EXP_DIR += \
22 auction 21 auction
23endif 22endif
24endif
25 23
26if HAVE_JSON 24JSON_DIR = json
27if HAVE_MHD 25CURL_DIR = curl
28 JSON_DIR = json
29endif
30endif
31if HAVE_MHD
32if HAVE_LIBGNURL
33 CURL_DIR = curl
34else
35if HAVE_LIBCURL
36 CURL_DIR = curl
37endif
38endif
39endif
40 26
41if BUILD_PULSE_HELPERS 27if BUILD_PULSE_HELPERS
42CONVERSATION_DIR = conversation 28CONVERSATION_DIR = conversation
@@ -58,9 +44,7 @@ if HAVE_POSTGRESQL
58 POSTGRES_DIR = pq 44 POSTGRES_DIR = pq
59endif 45endif
60 46
61if HAVE_REST 47REST_DIR = rest
62 REST_DIR = rest
63endif
64 48
65 49
66SUBDIRS = \ 50SUBDIRS = \
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am
index 7a5f7cfd8..5a9c70997 100644
--- a/src/gns/Makefile.am
+++ b/src/gns/Makefile.am
@@ -55,7 +55,6 @@ lib_LTLIBRARIES = \
55 libgnunetgns.la 55 libgnunetgns.la
56 56
57 57
58if HAVE_MHD
59if HAVE_GNUTLS 58if HAVE_GNUTLS
60if HAVE_LIBGNURL 59if HAVE_LIBGNURL
61 DO_PROXY=gnunet-gns-proxy 60 DO_PROXY=gnunet-gns-proxy
@@ -69,7 +68,6 @@ CPP_GNURL=@LIBCURL_CPPFLAGS@
69endif 68endif
70endif 69endif
71endif 70endif
72endif
73 71
74libexec_PROGRAMS = \ 72libexec_PROGRAMS = \
75 gnunet-service-gns \ 73 gnunet-service-gns \
@@ -82,15 +80,11 @@ bin_PROGRAMS = \
82noinst_PROGRAMS = \ 80noinst_PROGRAMS = \
83 gnunet-gns-benchmark 81 gnunet-gns-benchmark
84 82
85if HAVE_MHD
86if LINUX 83if LINUX
87bin_PROGRAMS += gnunet-bcd 84bin_PROGRAMS += gnunet-bcd
88endif 85endif
89endif
90 86
91if HAVE_REST
92REST_PLUGIN = libgnunet_plugin_rest_gns.la 87REST_PLUGIN = libgnunet_plugin_rest_gns.la
93endif
94 88
95plugin_LTLIBRARIES = \ 89plugin_LTLIBRARIES = \
96 libgnunet_plugin_block_gns.la \ 90 libgnunet_plugin_block_gns.la \
@@ -258,14 +252,12 @@ libgnunet_plugin_block_gns_la_LDFLAGS = \
258 $(GN_LIBINTL) \ 252 $(GN_LIBINTL) \
259 $(GN_PLUGIN_LDFLAGS) 253 $(GN_PLUGIN_LDFLAGS)
260 254
261if HAVE_MHD
262if HAVE_GNUTLS 255if HAVE_GNUTLS
263if HAVE_LIBGNURL 256if HAVE_LIBGNURL
264check_PROGRAMS = \ 257check_PROGRAMS = \
265 test_gns_proxy 258 test_gns_proxy
266endif 259endif
267endif 260endif
268endif
269 261
270check_SCRIPTS = \ 262check_SCRIPTS = \
271 test_gns_lookup.sh \ 263 test_gns_lookup.sh \
@@ -286,18 +278,14 @@ check_SCRIPTS = \
286 test_gns_revocation.sh\ 278 test_gns_revocation.sh\
287 test_gns_cname_lookup.sh 279 test_gns_cname_lookup.sh
288 280
289if HAVE_MHD
290if HAVE_GNUTLS 281if HAVE_GNUTLS
291if HAVE_LIBGNURL 282if HAVE_LIBGNURL
292check_SCRIPTS += \ 283check_SCRIPTS += \
293 test_proxy.sh 284 test_proxy.sh
294endif 285endif
295endif 286endif
296if HAVE_JSON
297check_SCRIPTS += \ 287check_SCRIPTS += \
298 test_plugin_rest_gns.sh 288 test_plugin_rest_gns.sh
299endif
300endif
301 289
302 290
303if ENABLE_TEST_RUN 291if ENABLE_TEST_RUN
diff --git a/src/hostlist/Makefile.am b/src/hostlist/Makefile.am
index a8621a2b0..3b534de70 100644
--- a/src/hostlist/Makefile.am
+++ b/src/hostlist/Makefile.am
@@ -10,12 +10,10 @@ if USE_COVERAGE
10 AM_CFLAGS = --coverage -O0 10 AM_CFLAGS = --coverage -O0
11endif 11endif
12 12
13if HAVE_MHD
14 HOSTLIST_SERVER_SOURCES = \ 13 HOSTLIST_SERVER_SOURCES = \
15 gnunet-daemon-hostlist_server.c gnunet-daemon-hostlist_server.h 14 gnunet-daemon-hostlist_server.c gnunet-daemon-hostlist_server.h
16 GN_LIBMHD = $(MHD_LIBS) 15 GN_LIBMHD = $(MHD_LIBS)
17 GN_CPPMHD = $(MHD_CFLAGS) 16 GN_CPPMHD = $(MHD_CFLAGS)
18endif
19 17
20if HAVE_LIBGNURL 18if HAVE_LIBGNURL
21libexec_PROGRAMS = \ 19libexec_PROGRAMS = \
@@ -70,13 +68,11 @@ check_PROGRAMS = \
70endif 68endif
71endif 69endif
72 70
73if HAVE_MHD
74if ENABLE_TEST_RUN 71if ENABLE_TEST_RUN
75AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; 72AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
76TESTS = \ 73TESTS = \
77 $(check_PROGRAMS) 74 $(check_PROGRAMS)
78endif 75endif
79endif
80 76
81test_gnunet_daemon_hostlist_SOURCES = \ 77test_gnunet_daemon_hostlist_SOURCES = \
82 test_gnunet_daemon_hostlist.c 78 test_gnunet_daemon_hostlist.c
diff --git a/src/hostlist/gnunet-daemon-hostlist.c b/src/hostlist/gnunet-daemon-hostlist.c
index 704c796b4..54e070f89 100644
--- a/src/hostlist/gnunet-daemon-hostlist.c
+++ b/src/hostlist/gnunet-daemon-hostlist.c
@@ -30,8 +30,6 @@
30#include "gnunet_protocols.h" 30#include "gnunet_protocols.h"
31#include "gnunet_statistics_service.h" 31#include "gnunet_statistics_service.h"
32 32
33#if HAVE_MHD
34
35#include "gnunet-daemon-hostlist_server.h" 33#include "gnunet-daemon-hostlist_server.h"
36 34
37/** 35/**
@@ -49,8 +47,6 @@ static int provide_hostlist;
49 */ 47 */
50static GNUNET_CORE_ConnectEventHandler server_ch; 48static GNUNET_CORE_ConnectEventHandler server_ch;
51 49
52#endif
53
54/** 50/**
55 * Set if we are allowed to learn about peers by accessing 51 * Set if we are allowed to learn about peers by accessing
56 * hostlist servers. 52 * hostlist servers.
@@ -211,13 +207,11 @@ connect_handler (void *cls,
211 (*client_ch)(cls, 207 (*client_ch)(cls,
212 peer, 208 peer,
213 mq)); 209 mq));
214#if HAVE_MHD
215 if (NULL != server_ch) 210 if (NULL != server_ch)
216 GNUNET_assert (NULL == 211 GNUNET_assert (NULL ==
217 (*server_ch)(cls, 212 (*server_ch)(cls,
218 peer, 213 peer,
219 mq)); 214 mq));
220#endif
221 return (void *) peer; 215 return (void *) peer;
222} 216}
223 217
@@ -265,12 +259,10 @@ cleaning_task (void *cls)
265 { 259 {
266 GNUNET_HOSTLIST_client_stop (); 260 GNUNET_HOSTLIST_client_stop ();
267 } 261 }
268#if HAVE_MHD
269 if (provide_hostlist) 262 if (provide_hostlist)
270 { 263 {
271 GNUNET_HOSTLIST_server_stop (); 264 GNUNET_HOSTLIST_server_stop ();
272 } 265 }
273#endif
274 if (NULL != stats) 266 if (NULL != stats)
275 { 267 {
276 GNUNET_STATISTICS_destroy (stats, 268 GNUNET_STATISTICS_destroy (stats,
@@ -306,9 +298,7 @@ run (void *cls,
306 }; 298 };
307 299
308 if ((! bootstrapping) && (! learning) 300 if ((! bootstrapping) && (! learning)
309#if HAVE_MHD
310 && (! provide_hostlist) 301 && (! provide_hostlist)
311#endif
312 ) 302 )
313 { 303 {
314 GNUNET_log (GNUNET_ERROR_TYPE_WARNING, 304 GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -338,14 +328,12 @@ run (void *cls,
338 learning ? learn_handlers : no_learn_handlers); 328 learning ? learn_handlers : no_learn_handlers);
339 329
340 330
341#if HAVE_MHD
342 if (provide_hostlist) 331 if (provide_hostlist)
343 GNUNET_HOSTLIST_server_start (cfg, 332 GNUNET_HOSTLIST_server_start (cfg,
344 stats, 333 stats,
345 core, 334 core,
346 &server_ch, 335 &server_ch,
347 advertising); 336 advertising);
348#endif
349 GNUNET_SCHEDULER_add_shutdown (&cleaning_task, 337 GNUNET_SCHEDULER_add_shutdown (&cleaning_task,
350 NULL); 338 NULL);
351 339
@@ -370,13 +358,11 @@ int
370main (int argc, char *const *argv) 358main (int argc, char *const *argv)
371{ 359{
372 struct GNUNET_GETOPT_CommandLineOption options[] = { 360 struct GNUNET_GETOPT_CommandLineOption options[] = {
373#if HAVE_MHD
374 GNUNET_GETOPT_option_flag ('a', 361 GNUNET_GETOPT_option_flag ('a',
375 "advertise", 362 "advertise",
376 gettext_noop ( 363 gettext_noop (
377 "advertise our hostlist to other peers"), 364 "advertise our hostlist to other peers"),
378 &advertising), 365 &advertising),
379#endif
380 GNUNET_GETOPT_option_flag ('b', 366 GNUNET_GETOPT_option_flag ('b',
381 "bootstrap", 367 "bootstrap",
382 gettext_noop ( 368 gettext_noop (
@@ -387,12 +373,10 @@ main (int argc, char *const *argv)
387 gettext_noop ( 373 gettext_noop (
388 "enable learning about hostlist servers from other peers"), 374 "enable learning about hostlist servers from other peers"),
389 &learning), 375 &learning),
390#if HAVE_MHD
391 GNUNET_GETOPT_option_flag ('p', 376 GNUNET_GETOPT_option_flag ('p',
392 "provide-hostlist", 377 "provide-hostlist",
393 gettext_noop ("provide a hostlist server"), 378 gettext_noop ("provide a hostlist server"),
394 &provide_hostlist), 379 &provide_hostlist),
395#endif
396 GNUNET_GETOPT_OPTION_END 380 GNUNET_GETOPT_OPTION_END
397 }; 381 };
398 382
diff --git a/src/identity/Makefile.am b/src/identity/Makefile.am
index 17e72c784..e806f0059 100644
--- a/src/identity/Makefile.am
+++ b/src/identity/Makefile.am
@@ -8,9 +8,7 @@ if USE_COVERAGE
8 XLIB = -lgcov 8 XLIB = -lgcov
9endif 9endif
10 10
11if HAVE_REST
12plugin_LTLIBRARIES = libgnunet_plugin_rest_identity.la 11plugin_LTLIBRARIES = libgnunet_plugin_rest_identity.la
13endif
14 12
15pkgcfgdir= $(pkgdatadir)/config.d/ 13pkgcfgdir= $(pkgdatadir)/config.d/
16 14
diff --git a/src/integration-tests/Makefile.am b/src/integration-tests/Makefile.am
index f456544db..b3adc3a0f 100644
--- a/src/integration-tests/Makefile.am
+++ b/src/integration-tests/Makefile.am
@@ -21,7 +21,6 @@ check_SCRIPTS = \
21endif 21endif
22 22
23 23
24if HAVE_MHD
25if ENABLE_TEST_RUN 24if ENABLE_TEST_RUN
26AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME; 25AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
27if HAVE_LIBGNURL 26if HAVE_LIBGNURL
@@ -34,7 +33,6 @@ TESTS = \
34endif 33endif
35endif 34endif
36endif 35endif
37endif
38 36
39SUFFIXES = .py.in .py 37SUFFIXES = .py.in .py
40.py.in.py: 38.py.in.py:
diff --git a/src/namestore/Makefile.am b/src/namestore/Makefile.am
index 94861b478..f4b846065 100644
--- a/src/namestore/Makefile.am
+++ b/src/namestore/Makefile.am
@@ -99,9 +99,7 @@ TESTS = \
99 $(check_SCRIPTS) 99 $(check_SCRIPTS)
100endif 100endif
101 101
102if HAVE_REST
103REST_PLUGIN = libgnunet_plugin_rest_namestore.la 102REST_PLUGIN = libgnunet_plugin_rest_namestore.la
104endif
105 103
106lib_LTLIBRARIES = \ 104lib_LTLIBRARIES = \
107 libgnunetnamestore.la 105 libgnunetnamestore.la
@@ -114,10 +112,8 @@ bin_PROGRAMS = \
114 gnunet-namestore \ 112 gnunet-namestore \
115 gnunet-zoneimport 113 gnunet-zoneimport
116 114
117if HAVE_MHD
118libexec_PROGRAMS += \ 115libexec_PROGRAMS += \
119 gnunet-namestore-fcfsd 116 gnunet-namestore-fcfsd
120endif
121 117
122 118
123plugin_LTLIBRARIES = \ 119plugin_LTLIBRARIES = \
@@ -679,12 +675,8 @@ check_SCRIPTS = \
679 test_namestore_lookup.sh \ 675 test_namestore_lookup.sh \
680 test_namestore_delete.sh 676 test_namestore_delete.sh
681 677
682if HAVE_MHD
683if HAVE_JSON
684check_SCRIPTS += \ 678check_SCRIPTS += \
685 test_plugin_rest_namestore.sh 679 test_plugin_rest_namestore.sh
686endif
687endif
688 680
689EXTRA_DIST = \ 681EXTRA_DIST = \
690 test_common.c \ 682 test_common.c \
diff --git a/src/peerinfo-tool/Makefile.am b/src/peerinfo-tool/Makefile.am
index 93252570c..dfcdcd3da 100644
--- a/src/peerinfo-tool/Makefile.am
+++ b/src/peerinfo-tool/Makefile.am
@@ -6,9 +6,7 @@ if USE_COVERAGE
6 XLIB = -lgcov 6 XLIB = -lgcov
7endif 7endif
8 8
9if HAVE_REST
10REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la 9REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la
11endif
12 10
13plugindir = $(libdir)/gnunet 11plugindir = $(libdir)/gnunet
14 12
diff --git a/src/pt/Makefile.am b/src/pt/Makefile.am
index 09a68b779..10ae04931 100644
--- a/src/pt/Makefile.am
+++ b/src/pt/Makefile.am
@@ -29,7 +29,6 @@ gnunet_daemon_pt_LDADD = \
29 $(GN_LIBINTL) 29 $(GN_LIBINTL)
30 30
31if HAVE_TESTING 31if HAVE_TESTING
32if HAVE_MHD
33 32
34if HAVE_LIBGNURL 33if HAVE_LIBGNURL
35LIB_GNURL=@LIBGNURL@ 34LIB_GNURL=@LIBGNURL@
@@ -58,7 +57,6 @@ endif
58endif 57endif
59 58
60endif 59endif
61endif
62 60
63check_PROGRAMS = $(VPN_TEST) 61check_PROGRAMS = $(VPN_TEST)
64 62
diff --git a/src/reclaim/Makefile.am b/src/reclaim/Makefile.am
index 6d448cc3c..b6d73bdf7 100644
--- a/src/reclaim/Makefile.am
+++ b/src/reclaim/Makefile.am
@@ -9,16 +9,12 @@ if USE_COVERAGE
9endif 9endif
10 10
11 11
12if HAVE_REST
13REST_PLUGIN = \ 12REST_PLUGIN = \
14 libgnunet_plugin_rest_openid_connect.la \ 13 libgnunet_plugin_rest_openid_connect.la \
15 libgnunet_plugin_rest_reclaim.la 14 libgnunet_plugin_rest_reclaim.la
16endif
17 15
18if HAVE_JSON
19ATTESTATION_PLUGIN = \ 16ATTESTATION_PLUGIN = \
20 libgnunet_plugin_reclaim_attestation_jwt.la 17 libgnunet_plugin_reclaim_attestation_jwt.la
21endif
22 18
23EXTRA_DIST = \ 19EXTRA_DIST = \
24 reclaim.conf \ 20 reclaim.conf \
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am
index 3028b29b4..02e87da0f 100644
--- a/src/transport/Makefile.am
+++ b/src/transport/Makefile.am
@@ -11,12 +11,10 @@ pkgcfg_DATA = \
11 transport.conf \ 11 transport.conf \
12 communicator-unix.conf 12 communicator-unix.conf
13 13
14if HAVE_MHD 14HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la
15 HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la 15HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la
16 HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la 16HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server
17 HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server 17HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server
18 HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server
19endif
20 18
21if HAVE_LIBGNURL 19if HAVE_LIBGNURL
22 HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client 20 HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client
@@ -36,7 +34,6 @@ CPP_GNURL=@LIBCURL_CPPFLAGS@
36endif 34endif
37endif 35endif
38 36
39if HAVE_MHD
40if HAVE_LIBGNURL 37if HAVE_LIBGNURL
41 HTTP_API_TEST = test_transport_api_http 38 HTTP_API_TEST = test_transport_api_http
42 HTTP_REVERSE_API_TEST = test_transport_api_http_reverse 39 HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
@@ -76,7 +73,6 @@ endif
76 HTTPS_SWITCH = test_transport_address_switch_https 73 HTTPS_SWITCH = test_transport_address_switch_https
77endif 74endif
78endif 75endif
79endif
80 76
81if USE_COVERAGE 77if USE_COVERAGE
82 AM_CFLAGS = --coverage -O0 78 AM_CFLAGS = --coverage -O0