summaryrefslogtreecommitdiff
blob: d6f11ed63202c64574f3cbab0416a1afc6c24f01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
--- configure.ac.orig	2006-04-22 14:11:34.000000000 -0500
+++ configure.ac	2006-04-22 14:14:36.000000000 -0500
@@ -115,14 +115,25 @@
 	AC_MSG_ERROR([No gacutil tool found])
 fi
 
-dnl Check for the NUnit testing framework
-have_nunit="yes"
-AC_PATH_PROG(NUNIT, nunit-console)
-AC_PATH_PROG(XSLTPROC, xsltproc)
-if test "x$NUNIT" = "x" -o "x$XSLTPROC" = "x"; then
-	AC_MSG_WARN([Can't find NUnit and xsltproc. You will not be able to run unit tests])
-	have_nunit="no"
+AC_ARG_ENABLE([tests],
+              AC_HELP_STRING([--disable-tests], [Disable the unit tests]),,
+              [enable_tests=yes])
+
+if test "x$enable_tests" = "xyes" ; then
+   dnl Check for the NUnit testing framework
+   have_nunit="yes"
+
+   AC_PATH_PROG(NUNIT, nunit-console)
+   AC_PATH_PROG(XSLTPROC, xsltproc)
+
+   if test "x$NUNIT" = "x" -o "x$XSLTPROC" = "x"; then
+      AC_MSG_WARN([Can't find NUnit and xsltproc. You will not be able to run unit tests])
+      have_nunit="no"
+   fi
+else
+   have_nuint="no"
 fi
+
 AM_CONDITIONAL(HAVE_NUNIT, test "$have_nunit" = "yes")
 
 AC_SUBST(RUNTIME)