EXP_DIR += \
abe
endif
-if HAVE_JSON
EXP_DIR += \
auction
endif
-endif
-if HAVE_JSON
-if HAVE_MHD
- JSON_DIR = json
-endif
-endif
-if HAVE_MHD
-if HAVE_LIBGNURL
- CURL_DIR = curl
-else
-if HAVE_LIBCURL
- CURL_DIR = curl
-endif
-endif
-endif
+JSON_DIR = json
+CURL_DIR = curl
if BUILD_PULSE_HELPERS
CONVERSATION_DIR = conversation
POSTGRES_DIR = pq
endif
-if HAVE_REST
- REST_DIR = rest
-endif
+REST_DIR = rest
SUBDIRS = \
libgnunetgns.la
-if HAVE_MHD
if HAVE_GNUTLS
if HAVE_LIBGNURL
DO_PROXY=gnunet-gns-proxy
endif
endif
endif
-endif
libexec_PROGRAMS = \
gnunet-service-gns \
noinst_PROGRAMS = \
gnunet-gns-benchmark
-if HAVE_MHD
if LINUX
bin_PROGRAMS += gnunet-bcd
endif
-endif
-if HAVE_REST
REST_PLUGIN = libgnunet_plugin_rest_gns.la
-endif
plugin_LTLIBRARIES = \
libgnunet_plugin_block_gns.la \
$(GN_LIBINTL) \
$(GN_PLUGIN_LDFLAGS)
-if HAVE_MHD
if HAVE_GNUTLS
if HAVE_LIBGNURL
check_PROGRAMS = \
test_gns_proxy
endif
endif
-endif
check_SCRIPTS = \
test_gns_lookup.sh \
test_gns_revocation.sh\
test_gns_cname_lookup.sh
-if HAVE_MHD
if HAVE_GNUTLS
if HAVE_LIBGNURL
check_SCRIPTS += \
test_proxy.sh
endif
endif
-if HAVE_JSON
check_SCRIPTS += \
test_plugin_rest_gns.sh
-endif
-endif
if ENABLE_TEST_RUN
AM_CFLAGS = --coverage -O0
endif
-if HAVE_MHD
HOSTLIST_SERVER_SOURCES = \
gnunet-daemon-hostlist_server.c gnunet-daemon-hostlist_server.h
GN_LIBMHD = $(MHD_LIBS)
GN_CPPMHD = $(MHD_CFLAGS)
-endif
if HAVE_LIBGNURL
libexec_PROGRAMS = \
endif
endif
-if HAVE_MHD
if ENABLE_TEST_RUN
AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
TESTS = \
$(check_PROGRAMS)
endif
-endif
test_gnunet_daemon_hostlist_SOURCES = \
test_gnunet_daemon_hostlist.c
#include "gnunet_protocols.h"
#include "gnunet_statistics_service.h"
-#if HAVE_MHD
-
#include "gnunet-daemon-hostlist_server.h"
/**
*/
static GNUNET_CORE_ConnectEventHandler server_ch;
-#endif
-
/**
* Set if we are allowed to learn about peers by accessing
* hostlist servers.
(*client_ch)(cls,
peer,
mq));
-#if HAVE_MHD
if (NULL != server_ch)
GNUNET_assert (NULL ==
(*server_ch)(cls,
peer,
mq));
-#endif
return (void *) peer;
}
{
GNUNET_HOSTLIST_client_stop ();
}
-#if HAVE_MHD
if (provide_hostlist)
{
GNUNET_HOSTLIST_server_stop ();
}
-#endif
if (NULL != stats)
{
GNUNET_STATISTICS_destroy (stats,
};
if ((! bootstrapping) && (! learning)
-#if HAVE_MHD
&& (! provide_hostlist)
-#endif
)
{
GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
learning ? learn_handlers : no_learn_handlers);
-#if HAVE_MHD
if (provide_hostlist)
GNUNET_HOSTLIST_server_start (cfg,
stats,
core,
&server_ch,
advertising);
-#endif
GNUNET_SCHEDULER_add_shutdown (&cleaning_task,
NULL);
main (int argc, char *const *argv)
{
struct GNUNET_GETOPT_CommandLineOption options[] = {
-#if HAVE_MHD
GNUNET_GETOPT_option_flag ('a',
"advertise",
gettext_noop (
"advertise our hostlist to other peers"),
&advertising),
-#endif
GNUNET_GETOPT_option_flag ('b',
"bootstrap",
gettext_noop (
gettext_noop (
"enable learning about hostlist servers from other peers"),
&learning),
-#if HAVE_MHD
GNUNET_GETOPT_option_flag ('p',
"provide-hostlist",
gettext_noop ("provide a hostlist server"),
&provide_hostlist),
-#endif
GNUNET_GETOPT_OPTION_END
};
XLIB = -lgcov
endif
-if HAVE_REST
plugin_LTLIBRARIES = libgnunet_plugin_rest_identity.la
-endif
pkgcfgdir= $(pkgdatadir)/config.d/
endif
-if HAVE_MHD
if ENABLE_TEST_RUN
AM_TESTS_ENVIRONMENT=export GNUNET_PREFIX=$${GNUNET_PREFIX:-@libdir@};export PATH=$${GNUNET_PREFIX:-@prefix@}/bin:$$PATH;unset XDG_DATA_HOME;unset XDG_CONFIG_HOME;
if HAVE_LIBGNURL
endif
endif
endif
-endif
SUFFIXES = .py.in .py
.py.in.py:
$(check_SCRIPTS)
endif
-if HAVE_REST
REST_PLUGIN = libgnunet_plugin_rest_namestore.la
-endif
lib_LTLIBRARIES = \
libgnunetnamestore.la
gnunet-namestore \
gnunet-zoneimport
-if HAVE_MHD
libexec_PROGRAMS += \
gnunet-namestore-fcfsd
-endif
plugin_LTLIBRARIES = \
test_namestore_lookup.sh \
test_namestore_delete.sh
-if HAVE_MHD
-if HAVE_JSON
check_SCRIPTS += \
test_plugin_rest_namestore.sh
-endif
-endif
EXTRA_DIST = \
test_common.c \
XLIB = -lgcov
endif
-if HAVE_REST
REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la
-endif
plugindir = $(libdir)/gnunet
$(GN_LIBINTL)
if HAVE_TESTING
-if HAVE_MHD
if HAVE_LIBGNURL
LIB_GNURL=@LIBGNURL@
endif
endif
-endif
endif
check_PROGRAMS = $(VPN_TEST)
endif
-if HAVE_REST
REST_PLUGIN = \
libgnunet_plugin_rest_openid_connect.la \
libgnunet_plugin_rest_reclaim.la
-endif
-if HAVE_JSON
ATTESTATION_PLUGIN = \
libgnunet_plugin_reclaim_attestation_jwt.la
-endif
EXTRA_DIST = \
reclaim.conf \
transport.conf \
communicator-unix.conf
-if HAVE_MHD
- HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la
- HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la
- HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server
- HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server
-endif
+HTTP_SERVER_PLUGIN_LA = libgnunet_plugin_transport_http_server.la
+HTTPS_SERVER_PLUGIN_LA = libgnunet_plugin_transport_https_server.la
+HTTP_SERVER_PLUGIN_TEST = test_plugin_http_server
+HTTPS_SERVER_PLUGIN_TEST = test_plugin_https_server
if HAVE_LIBGNURL
HTTP_CLIENT_PLUGIN_TEST = test_plugin_http_client
endif
endif
-if HAVE_MHD
if HAVE_LIBGNURL
HTTP_API_TEST = test_transport_api_http
HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
HTTPS_SWITCH = test_transport_address_switch_https
endif
endif
-endif
if USE_COVERAGE
AM_CFLAGS = --coverage -O0