Skip to content

Commit

Permalink
Use test network in autotools build.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed May 2, 2020
1 parent 67fbd31 commit acc73b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions .travis/autotools-linux
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ travis_script() {
add_config_flag --with-nacl-libs="$CACHEDIR/lib/amd64"
add_config_flag --with-nacl-headers="$CACHEDIR/include/amd64"
add_config_flag --disable-ipv6
add_config_flag --enable-test-network
add_config_flag --enable-nacl
add_config_flag --enable-daemon
add_config_flag --enable-logging
Expand Down
10 changes: 10 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,16 @@ if test "$use_ipv6" != "yes"; then
AC_DEFINE([USE_IPV6],[0],[define to 0 to force ipv4])
fi

AC_ARG_ENABLE([[test_network]],
[AS_HELP_STRING([[--enable-test-network[=ARG]]], [build tox for a test network incompatible with the main DHT [no]])],
[use_test_network=${enableval}],
[use_test_network='no']
)

if test "$use_test_network" == "yes"; then
AC_DEFINE([USE_TEST_NETWORK],[1],[define to 1 to enable the test network])
fi

AX_HAVE_EPOLL
if test "$enable_epoll" != "no"; then
if test "${ax_cv_have_epoll}" = "yes"; then
Expand Down

0 comments on commit acc73b7

Please sign in to comment.