deps are now required, no need for defines
authorMartin Schanzenbach <mschanzenbach@posteo.de>
Sun, 17 May 2020 18:02:57 +0000 (20:02 +0200)
committerMartin Schanzenbach <mschanzenbach@posteo.de>
Sun, 17 May 2020 18:02:57 +0000 (20:02 +0200)
src/Makefile.am
src/gns/Makefile.am
src/hostlist/Makefile.am
src/hostlist/gnunet-daemon-hostlist.c
src/identity/Makefile.am
src/integration-tests/Makefile.am
src/namestore/Makefile.am
src/peerinfo-tool/Makefile.am
src/pt/Makefile.am
src/reclaim/Makefile.am
src/transport/Makefile.am

index 4642b6215c44a4eb36c15a1ef345fecbe09a8559..446b1aa2a35e27ca99507c15029c9b92609cdc57 100644 (file)
@@ -17,26 +17,12 @@ if HAVE_ABE
  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
@@ -58,9 +44,7 @@ if HAVE_POSTGRESQL
  POSTGRES_DIR = pq
 endif
 
-if HAVE_REST
- REST_DIR = rest
-endif
+REST_DIR = rest
 
 
 SUBDIRS = \
index 7a5f7cfd825c3cbcbe3e137fcfe9e198bdd7a4ad..5a9c70997e3b52e2810b26fe492adedc61e7013b 100644 (file)
@@ -55,7 +55,6 @@ lib_LTLIBRARIES = \
   libgnunetgns.la
 
 
-if HAVE_MHD
 if HAVE_GNUTLS
 if HAVE_LIBGNURL
   DO_PROXY=gnunet-gns-proxy
@@ -69,7 +68,6 @@ CPP_GNURL=@LIBCURL_CPPFLAGS@
 endif
 endif
 endif
-endif
 
 libexec_PROGRAMS = \
   gnunet-service-gns \
@@ -82,15 +80,11 @@ bin_PROGRAMS = \
 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 \
@@ -258,14 +252,12 @@ libgnunet_plugin_block_gns_la_LDFLAGS = \
   $(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 \
@@ -286,18 +278,14 @@ check_SCRIPTS = \
   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
index a8621a2b0fef75ffbb2ab0c44795dea42179c679..3b534de70324b4c7c067cf68c02e9e64404e1490 100644 (file)
@@ -10,12 +10,10 @@ if USE_COVERAGE
   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 = \
@@ -70,13 +68,11 @@ check_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
index 704c796b49479bc8565ff935b4515a27f77b333e..54e070f89bab3ff6b61b9857e2f6031600aeb87e 100644 (file)
@@ -30,8 +30,6 @@
 #include "gnunet_protocols.h"
 #include "gnunet_statistics_service.h"
 
-#if HAVE_MHD
-
 #include "gnunet-daemon-hostlist_server.h"
 
 /**
@@ -49,8 +47,6 @@ static int provide_hostlist;
  */
 static GNUNET_CORE_ConnectEventHandler server_ch;
 
-#endif
-
 /**
  * Set if we are allowed to learn about peers by accessing
  * hostlist servers.
@@ -211,13 +207,11 @@ connect_handler (void *cls,
                    (*client_ch)(cls,
                                 peer,
                                 mq));
-#if HAVE_MHD
   if (NULL != server_ch)
     GNUNET_assert (NULL ==
                    (*server_ch)(cls,
                                 peer,
                                 mq));
-#endif
   return (void *) peer;
 }
 
@@ -265,12 +259,10 @@ cleaning_task (void *cls)
   {
     GNUNET_HOSTLIST_client_stop ();
   }
-#if HAVE_MHD
   if (provide_hostlist)
   {
     GNUNET_HOSTLIST_server_stop ();
   }
-#endif
   if (NULL != stats)
   {
     GNUNET_STATISTICS_destroy (stats,
@@ -306,9 +298,7 @@ run (void *cls,
   };
 
   if ((! bootstrapping) && (! learning)
-#if HAVE_MHD
       && (! provide_hostlist)
-#endif
       )
   {
     GNUNET_log (GNUNET_ERROR_TYPE_WARNING,
@@ -338,14 +328,12 @@ run (void *cls,
                          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);
 
@@ -370,13 +358,11 @@ int
 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 (
@@ -387,12 +373,10 @@ main (int argc, char *const *argv)
                                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
   };
 
index 17e72c78432dfb0837720e78c1300ddb65dd5f58..e806f0059dc323a14b0d2fc8ee6137517ea6a2d2 100644 (file)
@@ -8,9 +8,7 @@ if USE_COVERAGE
   XLIB = -lgcov
 endif
 
-if HAVE_REST
 plugin_LTLIBRARIES = libgnunet_plugin_rest_identity.la
-endif
 
 pkgcfgdir= $(pkgdatadir)/config.d/
 
index f456544db78cbc14abdcb51f6a327ffc6780b08e..b3adc3a0fff28a969855190634ffb6e63616d958 100644 (file)
@@ -21,7 +21,6 @@ check_SCRIPTS = \
 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
@@ -34,7 +33,6 @@ TESTS = \
 endif
 endif
 endif
-endif
 
 SUFFIXES = .py.in .py
 .py.in.py:
index 94861b4784f8bdf0ea5fa74ebfe02c71095c04b4..f4b8460650859682270d086d73db5e6258b0b585 100644 (file)
@@ -99,9 +99,7 @@ TESTS = \
   $(check_SCRIPTS)
 endif
 
-if HAVE_REST
 REST_PLUGIN = libgnunet_plugin_rest_namestore.la
-endif
 
 lib_LTLIBRARIES = \
   libgnunetnamestore.la
@@ -114,10 +112,8 @@ bin_PROGRAMS = \
  gnunet-namestore \
  gnunet-zoneimport
 
-if HAVE_MHD
 libexec_PROGRAMS += \
  gnunet-namestore-fcfsd
-endif
 
 
 plugin_LTLIBRARIES = \
@@ -679,12 +675,8 @@ check_SCRIPTS = \
   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 \
index 93252570c001d9086c271fc80e5ed7aa4f63a4cb..dfcdcd3da71df418f3b5d7ab10569b3b2bbb8b0f 100644 (file)
@@ -6,9 +6,7 @@ if USE_COVERAGE
   XLIB = -lgcov
 endif
 
-if HAVE_REST
 REST_PLUGIN = libgnunet_plugin_rest_peerinfo.la
-endif
 
 plugindir = $(libdir)/gnunet
 
index 09a68b779760363b4481f3292d1dc904e65bd0dc..10ae04931ba77fb18ea177f21b34523daf4b9520 100644 (file)
@@ -29,7 +29,6 @@ gnunet_daemon_pt_LDADD = \
   $(GN_LIBINTL)
 
 if HAVE_TESTING
-if HAVE_MHD
 
 if HAVE_LIBGNURL
 LIB_GNURL=@LIBGNURL@
@@ -57,7 +56,6 @@ endif
 endif
 endif
 
-endif
 endif
 
 check_PROGRAMS = $(VPN_TEST)
index 6d448cc3c82802f03ef26e6e1852a64e3971a99c..b6d73bdf7cdec57c5ad09b8ed76635482a15c2ac 100644 (file)
@@ -9,16 +9,12 @@ if USE_COVERAGE
 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 \
index 3028b29b4d0666823579cbc9d733dc0ac46bc5c7..02e87da0f62ae328525fae66e4af0a45e8b9d3ae 100644 (file)
@@ -11,12 +11,10 @@ pkgcfg_DATA = \
   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
@@ -36,7 +34,6 @@ CPP_GNURL=@LIBCURL_CPPFLAGS@
 endif
 endif
 
-if HAVE_MHD
 if HAVE_LIBGNURL
  HTTP_API_TEST = test_transport_api_http
  HTTP_REVERSE_API_TEST = test_transport_api_http_reverse
@@ -76,7 +73,6 @@ endif
  HTTPS_SWITCH = test_transport_address_switch_https
 endif
 endif
-endif
 
 if USE_COVERAGE
   AM_CFLAGS = --coverage -O0