summaryrefslogtreecommitdiff
path: root/other/travis/autotools-script
diff options
context:
space:
mode:
authorDiadlo <polsha3@gmail.com>2017-11-15 12:48:48 +0300
committerDiadlo <polsha3@gmail.com>2017-11-15 15:22:19 +0300
commitb39cc55d374457f66606096904af9fe7ea6562f6 (patch)
treebdfdbf57bd6b6e757e156b6dad4ab6c6eeb8823d /other/travis/autotools-script
parentd037f938111c148c6956b58ebfba717e7c7cfb00 (diff)
Add support of IPv6 disabling
Diffstat (limited to 'other/travis/autotools-script')
-rwxr-xr-xother/travis/autotools-script12
1 files changed, 12 insertions, 0 deletions
diff --git a/other/travis/autotools-script b/other/travis/autotools-script
index d97b15b3..d47dc717 100755
--- a/other/travis/autotools-script
+++ b/other/travis/autotools-script
@@ -1,5 +1,16 @@
1#!/bin/sh 1#!/bin/sh
2 2
3if perl -e '
4 use Socket qw(PF_INET6 SOCK_STREAM pack_sockaddr_in6 IN6ADDR_LOOPBACK);
5
6 socket(S, PF_INET6, SOCK_STREAM, 0) || exit 1;
7 bind(S, pack_sockaddr_in6(0, IN6ADDR_LOOPBACK)) || exit 1;
8'; then
9 IPV6_FLAG="--enable-ipv6"
10else
11 IPV6_FLAG="--disable-ipv6"
12fi
13
3# Build toxcore with some custom flags here. Note that this does *not* run the 14# Build toxcore with some custom flags here. Note that this does *not* run the
4# tests, so any flags passed here are irrelevant to testing. This only checks 15# tests, so any flags passed here are irrelevant to testing. This only checks
5# that we can build toxcore with the specified flags. Tests run with default 16# that we can build toxcore with the specified flags. Tests run with default
@@ -12,6 +23,7 @@
12 --enable-daemon \ 23 --enable-daemon \
13 --enable-logging \ 24 --enable-logging \
14 --enable-ntox \ 25 --enable-ntox \
26 $IPV6_FLAG \
15 --with-log-level=TRACE 27 --with-log-level=TRACE
16 28
17# We use make instead of RUN $MAKE here, because the autotools build will only 29# We use make instead of RUN $MAKE here, because the autotools build will only