Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan McGovern <alan.mcgovern@gmail.com>2012-02-07 04:30:54 +0400
committerAlan McGovern <alan.mcgovern@gmail.com>2012-02-07 04:30:54 +0400
commiteb258abdffbb370ed9b2462b1b730da221d5f15f (patch)
tree69646cc84aab2253e3a31981b05e4159e8486797 /configure
parent853c5041b37367971a94fa95215b0f6623edefc6 (diff)
[Build] Allow tests to be enabled via the top level configure
Just pass --enable-tests to build the unit tests.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure12
1 files changed, 10 insertions, 2 deletions
diff --git a/configure b/configure
index a6310af01b..3a5f370109 100755
--- a/configure
+++ b/configure
@@ -1,7 +1,7 @@
#!/bin/bash
VERSION=2.1.0
profile=default
-
+tests=no
prefix=NONE
test -e "$CONFIG_SITE" && . "$CONFIG_SITE"
test "$prefix" = NONE && prefix=/usr/local
@@ -136,6 +136,11 @@ configure_packages ()
for p in `sed -e /#/d -e 's/ /,/g' < profiles/$profile` ; do
path=`echo $p | cut -d ',' -f 1`
ops=`echo $p | sed -e s,$path,, -e 's/,/ /'g`
+ if test xyes == x$tests; then
+ enable_tests=--enable-tests
+ else
+ enable_tests=" "
+ fi
title="Configuring package: $path"
nc=`echo $title | wc -m`
echo $title
@@ -143,7 +148,7 @@ configure_packages ()
echo
echo "Configuration options: $ops"
if test -a $path/autogen.sh; then
- sct=./autogen.sh
+ sct="./autogen.sh $enable_tests"
elif test -a $path/configure; then
sct=./configure
else
@@ -190,6 +195,9 @@ echo
while test x$1 != x; do
case $1 in
+ --enable-tests)
+ tests=yes
+ ;;
--prefix=*)
prefix=`echo $1 | sed 's/--prefix=//'`
;;