summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xscripts/travis/before_script.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/travis/before_script.sh b/scripts/travis/before_script.sh
index b22340211..7ef9fb3a1 100755
--- a/scripts/travis/before_script.sh
+++ b/scripts/travis/before_script.sh
@@ -62,7 +62,10 @@ if [ "$NGTCP2" = yes ]; then
git clone --depth 1 https://github.com/ngtcp2/ngtcp2
cd ngtcp2
autoreconf -i
- ./configure PKG_CONFIG_PATH=$HOME/ngbuild/lib/pkgconfig LDFLAGS="-Wl,-rpath,$HOME/ngbuild/lib" --prefix=$HOME/ngbuild --enable-lib-only
+ if test -n "$GNUTLS"; then
+ WITHGNUTLS="--with-gnutls"
+ fi
+ ./configure PKG_CONFIG_PATH=$HOME/ngbuild/lib/pkgconfig LDFLAGS="-Wl,-rpath,$HOME/ngbuild/lib" --prefix=$HOME/ngbuild --enable-lib-only $WITHGNUTLS
make
make install
fi