Skip to content

Commit

Permalink
Add a separate configure switch for DHT_bootstrap
Browse files Browse the repository at this point in the history
closes TokTok#319
  • Loading branch information
Sergey 'Jin' Bostandzhyan committed Dec 28, 2016
1 parent a096c71 commit 74878ca
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
14 changes: 14 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ if test "x${prefix}" = "xNONE"; then
fi

BUILD_DHT_BOOTSTRAP_DAEMON="no"
BUILD_DHT_BOOTSTRAP="yes"
BUILD_NTOX="no"
BUILD_TESTS="yes"
BUILD_AV="yes"
Expand Down Expand Up @@ -177,6 +178,18 @@ AC_ARG_ENABLE([daemon],
]
)

AC_ARG_ENABLE([dht-bootstrap],
[AC_HELP_STRING([--disable-dht-bootstrap], [build DHT bootstrap utility (default: enabled)]) ],
[
if test "x$enableval" = "xno"; then
BUILD_DHT_BOOTSTRAP="no"
elif test "x$enableval" = "xyes"; then
BUILD_DHT_BOOTSTRAP="yes"
fi
]
)


AC_ARG_ENABLE([rt],
[AC_HELP_STRING([--disable-rt], [Disables the librt check (default: auto)]) ],
[
Expand Down Expand Up @@ -688,6 +701,7 @@ if test "x$WIN32" = "xyes"; then
fi

AM_CONDITIONAL(BUILD_DHT_BOOTSTRAP_DAEMON, test "x$BUILD_DHT_BOOTSTRAP_DAEMON" = "xyes")
AM_CONDITIONAL(BUILD_DHT_BOOTSTRAP, test "x$BUILD_DHT_BOOTSTRAP" = "xyes")
AM_CONDITIONAL(BUILD_TESTS, test "x$BUILD_TESTS" = "xyes")
AM_CONDITIONAL(BUILD_NTOX, test "x$BUILD_NTOX" = "xyes")
AM_CONDITIONAL(BUILD_AV, test "x$BUILD_AV" = "xyes")
Expand Down
4 changes: 4 additions & 0 deletions other/Makefile.inc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
if BUILD_DHT_BOOTSTRAP

bin_PROGRAMS += DHT_bootstrap

DHT_bootstrap_SOURCES = ../other/DHT_bootstrap.c \
Expand All @@ -18,5 +20,7 @@ DHT_bootstrap_LDADD = $(LIBSODIUM_LDFLAGS) \
$(NACL_LIBS) \
$(WINSOCK2_LIBS)

endif

EXTRA_DIST += $(top_srcdir)/other/DHTnodes \
$(top_srcdir)/other/tox.png

0 comments on commit 74878ca

Please sign in to comment.