summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rwxr-xr-xconfigure.ac10
2 files changed, 11 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am
index 19a90227..8371041b 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@
SUBDIRS = lib @ZEBRA@ @BGPD@ @RIPD@ @RIPNGD@ @OSPFD@ @OSPF6D@ @BABELD@ \
@ISISD@ @WATCHQUAGGA@ @VTYSH@ @OSPFCLIENT@ @DOC@ m4 @pkgsrcdir@ \
- redhat @SOLARIS@
+ redhat @SOLARIS@ @BUILD_TESTS@
DIST_SUBDIRS = lib zebra bgpd ripd ripngd ospfd ospf6d babeld \
isisd watchquagga vtysh ospfclient doc m4 pkgsrc redhat tests \
diff --git a/configure.ac b/configure.ac
index 4cc94006..dcca9682 100755
--- a/configure.ac
+++ b/configure.ac
@@ -198,6 +198,8 @@ AC_ARG_ENABLE(ipv6,
[ --disable-ipv6 turn off IPv6 related features and daemons])
AC_ARG_ENABLE(doc,
[ --disable-doc do not build docs])
+AC_ARG_ENABLE(tests,
+[ --disable-tests do not build tests])
AC_ARG_ENABLE(zebra,
[ --disable-zebra do not build zebra daemon])
AC_ARG_ENABLE(bgpd,
@@ -1232,6 +1234,13 @@ else
DOC="doc"
fi
+dnl can't use TESTS as name, that's special with automake
+if test "${enable_tests}" = "no";then
+ BUILD_TESTS=""
+else
+ BUILD_TESTS="tests"
+fi
+
dnl --------------------
dnl Daemon disable check
dnl --------------------
@@ -1325,6 +1334,7 @@ else
fi
AC_SUBST(DOC)
+AC_SUBST(BUILD_TESTS)
AC_SUBST(ZEBRA)
AC_SUBST(BGPD)
AC_SUBST(RIPD)