diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gns/Makefile.am | 12 | ||||
-rw-r--r-- | src/hostlist/Makefile.am | 14 | ||||
-rw-r--r-- | src/pt/Makefile.am | 44 | ||||
-rw-r--r-- | src/transport/Makefile.am | 37 |
4 files changed, 89 insertions, 18 deletions
diff --git a/src/gns/Makefile.am b/src/gns/Makefile.am index f8d266748..61e52ee98 100644 --- a/src/gns/Makefile.am +++ b/src/gns/Makefile.am | |||
@@ -55,6 +55,14 @@ if HAVE_MHD | |||
55 | if HAVE_GNUTLS | 55 | if HAVE_GNUTLS |
56 | if HAVE_LIBGNURL | 56 | if HAVE_LIBGNURL |
57 | DO_PROXY=gnunet-gns-proxy | 57 | DO_PROXY=gnunet-gns-proxy |
58 | LIB_GNURL=@LIBGNURL@ | ||
59 | CPP_GNURL=@LIBGNURL_CPPFLAGS@ | ||
60 | else | ||
61 | if HAVE_LIBCURL | ||
62 | DO_PROXY=gnunet-gns-proxy | ||
63 | LIB_GNURL=@LIBCURL@ | ||
64 | CPP_GNURL=@LIBCURL_CPPFLAGS@ | ||
65 | endif | ||
58 | endif | 66 | endif |
59 | endif | 67 | endif |
60 | endif | 68 | endif |
@@ -141,8 +149,8 @@ gnunet_dns2gns_DEPENDENCIES = \ | |||
141 | 149 | ||
142 | gnunet_gns_proxy_SOURCES = \ | 150 | gnunet_gns_proxy_SOURCES = \ |
143 | gnunet-gns-proxy.c | 151 | gnunet-gns-proxy.c |
144 | gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(LIBGNURL_CPPFLAGS) | 152 | gnunet_gns_proxy_CPPFLAGS = $(AM_CPPFLAGS) $(CPP_GNURL) |
145 | gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIBGNURL) -lgnutls \ | 153 | gnunet_gns_proxy_LDADD = -lmicrohttpd $(LIB_GNURL) -lgnutls \ |
146 | $(top_builddir)/src/gns/libgnunetgns.la \ | 154 | $(top_builddir)/src/gns/libgnunetgns.la \ |
147 | $(top_builddir)/src/identity/libgnunetidentity.la \ | 155 | $(top_builddir)/src/identity/libgnunetidentity.la \ |
148 | $(top_builddir)/src/util/libgnunetutil.la \ | 156 | $(top_builddir)/src/util/libgnunetutil.la \ |
diff --git a/src/hostlist/Makefile.am b/src/hostlist/Makefile.am index d777cd658..5d5a94b5d 100644 --- a/src/hostlist/Makefile.am +++ b/src/hostlist/Makefile.am | |||
@@ -20,6 +20,15 @@ endif | |||
20 | if HAVE_LIBGNURL | 20 | if HAVE_LIBGNURL |
21 | libexec_PROGRAMS = \ | 21 | libexec_PROGRAMS = \ |
22 | gnunet-daemon-hostlist | 22 | gnunet-daemon-hostlist |
23 | LIB_GNURL=@LIBGNURL@ | ||
24 | CPP_GNURL=@LIBGNURL_CPPFLAGS@ | ||
25 | else | ||
26 | if HAVE_LIBCURL | ||
27 | libexec_PROGRAMS = \ | ||
28 | gnunet-daemon-hostlist | ||
29 | LIB_GNURL=@LIBCURL@ | ||
30 | CPP_GNURL=@LIBCURL_CPPFLAGS@ | ||
31 | endif | ||
23 | endif | 32 | endif |
24 | 33 | ||
25 | gnunet_daemon_hostlist_SOURCES = \ | 34 | gnunet_daemon_hostlist_SOURCES = \ |
@@ -35,11 +44,12 @@ gnunet_daemon_hostlist_LDADD = \ | |||
35 | $(top_builddir)/src/transport/libgnunettransport.la \ | 44 | $(top_builddir)/src/transport/libgnunettransport.la \ |
36 | $(top_builddir)/src/util/libgnunetutil.la \ | 45 | $(top_builddir)/src/util/libgnunetutil.la \ |
37 | $(GN_LIBMHD) \ | 46 | $(GN_LIBMHD) \ |
38 | @LIBGNURL@ \ | 47 | $(LIB_GNURL) \ |
39 | $(GN_LIBINTL) | 48 | $(GN_LIBINTL) |
40 | 49 | ||
41 | gnunet_daemon_hostlist_CPPFLAGS = \ | 50 | gnunet_daemon_hostlist_CPPFLAGS = \ |
42 | @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) | 51 | $(CPP_GNURL) \ |
52 | $(AM_CPPFLAGS) | ||
43 | 53 | ||
44 | if HAVE_LIBGNURL | 54 | if HAVE_LIBGNURL |
45 | check_PROGRAMS = \ | 55 | check_PROGRAMS = \ |
diff --git a/src/pt/Makefile.am b/src/pt/Makefile.am index 650fabf09..9783ffc07 100644 --- a/src/pt/Makefile.am +++ b/src/pt/Makefile.am | |||
@@ -34,7 +34,29 @@ gnunet_daemon_pt_LDADD = \ | |||
34 | 34 | ||
35 | if HAVE_TESTING | 35 | if HAVE_TESTING |
36 | if HAVE_MHD | 36 | if HAVE_MHD |
37 | |||
37 | if HAVE_LIBGNURL | 38 | if HAVE_LIBGNURL |
39 | LIB_GNURL=@LIBGNURL@ | ||
40 | CPP_GNURL=@LIBGNURL_CPPFLAGS@ | ||
41 | if LINUX | ||
42 | VPN_TEST = \ | ||
43 | test_gnunet_vpn-4_to_6 \ | ||
44 | test_gnunet_vpn-6_to_4 \ | ||
45 | test_gnunet_vpn-6_over \ | ||
46 | test_gnunet_vpn-4_over \ | ||
47 | test_gns_vpn | ||
48 | endif | ||
49 | if MINGW | ||
50 | VPN_TEST = \ | ||
51 | test_gnunet_vpn-4_to_6 \ | ||
52 | test_gnunet_vpn-6_to_4 \ | ||
53 | test_gnunet_vpn-6_over \ | ||
54 | test_gnunet_vpn-4_over | ||
55 | endif | ||
56 | else | ||
57 | if HAVE_LIBCURL | ||
58 | LIB_GNURL=@LIBCURL@ | ||
59 | CPP_GNURL=@LIBCURL_CPPFLAGS@ | ||
38 | if LINUX | 60 | if LINUX |
39 | VPN_TEST = \ | 61 | VPN_TEST = \ |
40 | test_gnunet_vpn-4_to_6 \ | 62 | test_gnunet_vpn-4_to_6 \ |
@@ -52,6 +74,8 @@ if MINGW | |||
52 | endif | 74 | endif |
53 | endif | 75 | endif |
54 | endif | 76 | endif |
77 | |||
78 | endif | ||
55 | endif | 79 | endif |
56 | 80 | ||
57 | check_PROGRAMS = $(VPN_TEST) | 81 | check_PROGRAMS = $(VPN_TEST) |
@@ -69,48 +93,48 @@ EXTRA_DIST = \ | |||
69 | 93 | ||
70 | test_gns_vpn_SOURCES = \ | 94 | test_gns_vpn_SOURCES = \ |
71 | test_gns_vpn.c | 95 | test_gns_vpn.c |
72 | test_gns_vpn_LDADD = -lmicrohttpd @LIBGNURL@ \ | 96 | test_gns_vpn_LDADD = -lmicrohttpd $(LIB_GNURL) \ |
73 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ | 97 | $(top_builddir)/src/namestore/libgnunetnamestore.la \ |
74 | $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ | 98 | $(top_builddir)/src/gnsrecord/libgnunetgnsrecord.la \ |
75 | $(top_builddir)/src/testing/libgnunettesting.la \ | 99 | $(top_builddir)/src/testing/libgnunettesting.la \ |
76 | $(top_builddir)/src/util/libgnunetutil.la | 100 | $(top_builddir)/src/util/libgnunetutil.la |
77 | test_gns_vpn_CPPFLAGS = \ | 101 | test_gns_vpn_CPPFLAGS = \ |
78 | @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) | 102 | $(CPP_GNURL) $(AM_CPPFLAGS) |
79 | 103 | ||
80 | test_gnunet_vpn_4_over_SOURCES = \ | 104 | test_gnunet_vpn_4_over_SOURCES = \ |
81 | test_gnunet_vpn.c | 105 | test_gnunet_vpn.c |
82 | test_gnunet_vpn_4_over_LDADD = -lmicrohttpd @LIBGNURL@ \ | 106 | test_gnunet_vpn_4_over_LDADD = -lmicrohttpd $(LIB_GNURL) \ |
83 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | 107 | $(top_builddir)/src/vpn/libgnunetvpn.la \ |
84 | $(top_builddir)/src/testing/libgnunettesting.la \ | 108 | $(top_builddir)/src/testing/libgnunettesting.la \ |
85 | $(top_builddir)/src/util/libgnunetutil.la | 109 | $(top_builddir)/src/util/libgnunetutil.la |
86 | test_gnunet_vpn_4_over_CPPFLAGS = \ | 110 | test_gnunet_vpn_4_over_CPPFLAGS = \ |
87 | @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) | 111 | $(LIB_GNURL) $(AM_CPPFLAGS) |
88 | 112 | ||
89 | test_gnunet_vpn_6_over_SOURCES = \ | 113 | test_gnunet_vpn_6_over_SOURCES = \ |
90 | test_gnunet_vpn.c | 114 | test_gnunet_vpn.c |
91 | test_gnunet_vpn_6_over_LDADD = -lmicrohttpd @LIBGNURL@ \ | 115 | test_gnunet_vpn_6_over_LDADD = -lmicrohttpd $(LIB_GNURL) \ |
92 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | 116 | $(top_builddir)/src/vpn/libgnunetvpn.la \ |
93 | $(top_builddir)/src/testing/libgnunettesting.la \ | 117 | $(top_builddir)/src/testing/libgnunettesting.la \ |
94 | $(top_builddir)/src/util/libgnunetutil.la | 118 | $(top_builddir)/src/util/libgnunetutil.la |
95 | test_gnunet_vpn_6_over_CPPFLAGS = \ | 119 | test_gnunet_vpn_6_over_CPPFLAGS = \ |
96 | @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) | 120 | $(CPP_GNURL) $(AM_CPPFLAGS) |
97 | 121 | ||
98 | test_gnunet_vpn_4_to_6_SOURCES = \ | 122 | test_gnunet_vpn_4_to_6_SOURCES = \ |
99 | test_gnunet_vpn.c | 123 | test_gnunet_vpn.c |
100 | test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd @LIBGNURL@ \ | 124 | test_gnunet_vpn_4_to_6_LDADD = -lmicrohttpd $(LIB_GNURL) \ |
101 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | 125 | $(top_builddir)/src/vpn/libgnunetvpn.la \ |
102 | $(top_builddir)/src/testing/libgnunettesting.la \ | 126 | $(top_builddir)/src/testing/libgnunettesting.la \ |
103 | $(top_builddir)/src/util/libgnunetutil.la | 127 | $(top_builddir)/src/util/libgnunetutil.la |
104 | test_gnunet_vpn_4_to_6_CPPFLAGS = \ | 128 | test_gnunet_vpn_4_to_6_CPPFLAGS = \ |
105 | @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) | 129 | $(CPP_GNURL) $(AM_CPPFLAGS) |
106 | 130 | ||
107 | test_gnunet_vpn_6_to_4_SOURCES = \ | 131 | test_gnunet_vpn_6_to_4_SOURCES = \ |
108 | test_gnunet_vpn.c | 132 | test_gnunet_vpn.c |
109 | test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd @LIBGNURL@ \ | 133 | test_gnunet_vpn_6_to_4_LDADD = -lmicrohttpd $(LIB_GNURL) \ |
110 | $(top_builddir)/src/vpn/libgnunetvpn.la \ | 134 | $(top_builddir)/src/vpn/libgnunetvpn.la \ |
111 | $(top_builddir)/src/testing/libgnunettesting.la \ | 135 | $(top_builddir)/src/testing/libgnunettesting.la \ |
112 | $(top_builddir)/src/util/libgnunetutil.la | 136 | $(top_builddir)/src/util/libgnunetutil.la |
113 | test_gnunet_vpn_6_to_4_CPPFLAGS = \ | 137 | test_gnunet_vpn_6_to_4_CPPFLAGS = \ |
114 | @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) | 138 | $(CPP_GNURL) $(AM_CPPFLAGS) |
115 | 139 | ||
116 | 140 | ||
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index d4a1001c9..dd7bedbae 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -23,6 +23,17 @@ if HAVE_LIBGNURL | |||
23 | HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client | 23 | HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client |
24 | HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la | 24 | HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la |
25 | HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la | 25 | HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la |
26 | LIB_GNURL=@LIBGNURL@ | ||
27 | CPP_GNURL=@LIBGNURL_CPPFLAGS@ | ||
28 | else | ||
29 | if HAVE_LIBCURL | ||
30 | HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client | ||
31 | HTTPS_CLIENT_PLUGIN_TEST = test_plugin_https_client | ||
32 | HTTP_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_http_client.la | ||
33 | HTTPS_CLIENT_PLUGIN_LA = libgnunet_plugin_transport_https_client.la | ||
34 | LIB_GNURL=@LIBCURL@ | ||
35 | CPP_GNURL=@LIBCURL_CPPFLAGS@ | ||
36 | endif | ||
26 | endif | 37 | endif |
27 | 38 | ||
28 | if HAVE_MHD | 39 | if HAVE_MHD |
@@ -42,6 +53,24 @@ if HAVE_LIBGNURL | |||
42 | HTTPS_QUOTA_TEST = test_quota_compliance_https \ | 53 | HTTPS_QUOTA_TEST = test_quota_compliance_https \ |
43 | test_quota_compliance_https_asymmetric | 54 | test_quota_compliance_https_asymmetric |
44 | HTTPS_SWITCH = test_transport_address_switch_https | 55 | HTTPS_SWITCH = test_transport_address_switch_https |
56 | else | ||
57 | if HAVE_LIBCURL | ||
58 | HTTP_API_TEST = test_transport_api_http | ||
59 | HTTP_REVERSE_API_TEST = test_transport_api_http_reverse | ||
60 | HTTP_API_TIMEOUT_TEST = test_transport_api_timeout_http | ||
61 | HTTP_REL_TEST = test_transport_api_reliability_http \ | ||
62 | test_transport_api_reliability_http_xhr | ||
63 | HTTP_QUOTA_TEST = test_quota_compliance_http \ | ||
64 | test_quota_compliance_http_asymmetric | ||
65 | HTTP_SWITCH = test_transport_address_switch_http | ||
66 | HTTPS_API_TEST = test_transport_api_https | ||
67 | HTTPS_API_TIMEOUT_TEST = test_transport_api_timeout_https | ||
68 | HTTPS_REL_TEST = test_transport_api_reliability_https \ | ||
69 | test_transport_api_reliability_https_xhr | ||
70 | HTTPS_QUOTA_TEST = test_quota_compliance_https \ | ||
71 | test_quota_compliance_https_asymmetric | ||
72 | HTTPS_SWITCH = test_transport_address_switch_https | ||
73 | endif | ||
45 | endif | 74 | endif |
46 | endif | 75 | endif |
47 | 76 | ||
@@ -334,7 +363,7 @@ libgnunet_plugin_transport_http_client_la_LIBADD = \ | |||
334 | $(top_builddir)/src/hello/libgnunethello.la \ | 363 | $(top_builddir)/src/hello/libgnunethello.la \ |
335 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | 364 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ |
336 | $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ | 365 | $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ |
337 | @LIBGNURL@ \ | 366 | $(LIB_GNURL) \ |
338 | $(top_builddir)/src/nat/libgnunetnat.la \ | 367 | $(top_builddir)/src/nat/libgnunetnat.la \ |
339 | $(top_builddir)/src/util/libgnunetutil.la | 368 | $(top_builddir)/src/util/libgnunetutil.la |
340 | libgnunet_plugin_transport_http_client_la_LDFLAGS = \ | 369 | libgnunet_plugin_transport_http_client_la_LDFLAGS = \ |
@@ -342,7 +371,7 @@ libgnunet_plugin_transport_http_client_la_LDFLAGS = \ | |||
342 | libgnunet_plugin_transport_http_client_la_CFLAGS = \ | 371 | libgnunet_plugin_transport_http_client_la_CFLAGS = \ |
343 | $(CFLAGS) | 372 | $(CFLAGS) |
344 | libgnunet_plugin_transport_http_client_la_CPPFLAGS = \ | 373 | libgnunet_plugin_transport_http_client_la_CPPFLAGS = \ |
345 | @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) | 374 | $(CPP_GNURL) $(AM_CPPFLAGS) |
346 | 375 | ||
347 | 376 | ||
348 | libgnunet_plugin_transport_http_server_la_SOURCES = \ | 377 | libgnunet_plugin_transport_http_server_la_SOURCES = \ |
@@ -365,7 +394,7 @@ libgnunet_plugin_transport_https_client_la_LIBADD = \ | |||
365 | $(top_builddir)/src/hello/libgnunethello.la \ | 394 | $(top_builddir)/src/hello/libgnunethello.la \ |
366 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ | 395 | $(top_builddir)/src/statistics/libgnunetstatistics.la \ |
367 | $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ | 396 | $(top_builddir)/src/peerinfo/libgnunetpeerinfo.la \ |
368 | @LIBGNURL@ \ | 397 | $(LIB_GNURL) \ |
369 | $(top_builddir)/src/nat/libgnunetnat.la \ | 398 | $(top_builddir)/src/nat/libgnunetnat.la \ |
370 | $(top_builddir)/src/util/libgnunetutil.la | 399 | $(top_builddir)/src/util/libgnunetutil.la |
371 | libgnunet_plugin_transport_https_client_la_LDFLAGS = \ | 400 | libgnunet_plugin_transport_https_client_la_LDFLAGS = \ |
@@ -373,7 +402,7 @@ libgnunet_plugin_transport_https_client_la_LDFLAGS = \ | |||
373 | libgnunet_plugin_transport_https_client_la_CFLAGS = \ | 402 | libgnunet_plugin_transport_https_client_la_CFLAGS = \ |
374 | $(CFLAGS) -DBUILD_HTTPS | 403 | $(CFLAGS) -DBUILD_HTTPS |
375 | libgnunet_plugin_transport_https_client_la_CPPFLAGS = \ | 404 | libgnunet_plugin_transport_https_client_la_CPPFLAGS = \ |
376 | @LIBGNURL_CPPFLAGS@ $(AM_CPPFLAGS) | 405 | $(CPP_GNURL) $(AM_CPPFLAGS) |
377 | 406 | ||
378 | 407 | ||
379 | libgnunet_plugin_transport_https_server_la_SOURCES = \ | 408 | libgnunet_plugin_transport_https_server_la_SOURCES = \ |