]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
configure: Interpret --disable-module-dirauth=no correctly
authorteor <teor@torproject.org>
Thu, 17 Oct 2019 06:04:39 +0000 (16:04 +1000)
committerteor <teor@torproject.org>
Fri, 18 Oct 2019 07:15:34 +0000 (17:15 +1000)
Fixes bug 32134; bugfix on 0.3.4.1-alpha.

configure.ac

index 0540ffb40ce4a9f7625a31c4ce1036b03f7ab25c..11d49df45807971d4f8fe52b938c4616591bfb73 100644 (file)
@@ -258,11 +258,11 @@ m4_define(MODULES, dirauth)
 dnl Directory Authority module.
 AC_ARG_ENABLE([module-dirauth],
               AS_HELP_STRING([--disable-module-dirauth],
-                             [Build tor without the Directory Authority module: tor can not run as a directory authority or bridge authority]),
-              [], dnl Action if-given
-              AC_DEFINE([HAVE_MODULE_DIRAUTH], [1],
-                        [Compile with Directory Authority feature support]))
-AM_CONDITIONAL(BUILD_MODULE_DIRAUTH, [test "x$enable_module_dirauth" != "xno"])
+                             [Build tor without the Directory Authority module: tor can not run as a directory authority or bridge authority]))
+AM_CONDITIONAL(BUILD_MODULE_DIRAUTH,[test "x$enable_module_dirauth" != "xno"])
+AM_COND_IF(BUILD_MODULE_DIRAUTH,
+           AC_DEFINE([HAVE_MODULE_DIRAUTH], [1],
+                     [Compile with Directory Authority feature support]))
 
 dnl Helper variables.
 TOR_MODULES_ALL_ENABLED=