diff options
author | teor <teor@torproject.org> | 2019-10-17 16:07:52 +1000 |
---|---|---|
committer | teor <teor@torproject.org> | 2019-10-20 17:52:38 +1000 |
commit | 2e2e1ed765e8aa42b31d5df92b59850f7db95a00 (patch) | |
tree | 871a479d714d7db6facc75615cc3df853bf17e8a /configure.ac | |
parent | 37320bce064730b111018d255009390d887a8a17 (diff) | |
download | tor-2e2e1ed765e8aa42b31d5df92b59850f7db95a00.tar.gz tor-2e2e1ed765e8aa42b31d5df92b59850f7db95a00.zip |
configure: Add a relay module, with --disable-module-relay
The Makefile and C defines don't actually do anything yet.
Part of 32123.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index c0db30e60e..dcb8b1e385 100644 --- a/configure.ac +++ b/configure.ac @@ -255,7 +255,16 @@ dnl Tor modules options. These options are namespaced with --disable-module-XXX dnl --- dnl All our modules. -m4_define(MODULES, dirauth) +m4_define(MODULES, relay dirauth) + +dnl Relay module. +AC_ARG_ENABLE([module-relay], + AS_HELP_STRING([--disable-module-relay], + [Build tor without the Relay modules: tor can not run as a relay, bridge, or authority])) +AM_CONDITIONAL(BUILD_MODULE_RELAY, [test "x$enable_module_relay" != "xno"]) +AM_COND_IF(BUILD_MODULE_RELAY, + AC_DEFINE([HAVE_MODULE_RELAY], [1], + [Compile with Relay feature support])) dnl Directory Authority module. AC_ARG_ENABLE([module-dirauth], |