myserver-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[myserver-commit] [SCM] GNU MyServer branch, master, updated. 814f9d55cf


From: Giuseppe Scrivano
Subject: [myserver-commit] [SCM] GNU MyServer branch, master, updated. 814f9d55cf85b01a99eac4750262df1953273c65
Date: Thu, 23 Jul 2009 07:32:24 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU MyServer".

The branch, master has been updated
       via  814f9d55cf85b01a99eac4750262df1953273c65 (commit)
      from  e9c335399e11d7b0fe9006ae908bd3ad392cb20d (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------


commit 814f9d55cf85b01a99eac4750262df1953273c65
Author: Giuseppe Scrivano <address@hidden>
Date:   Thu Jul 23 09:30:05 2009 +0200

    The tests suite build can be disabled at configure time.

diff --git a/myserver/configure.in b/myserver/configure.in
index 92ac4e5..7f170d2 100644
--- a/myserver/configure.in
+++ b/myserver/configure.in
@@ -62,6 +62,9 @@ LDFLAGS="$LDFLAGS $_LT_AC_TAGVAR(lt_prog_compiler_pic, CXX)"
 
 AC_ARG_ENABLE([ipv6], [--enable-ipv6 Build with IPv6 support], 
enable_ipv6="yes", enable_ipv6="")
 
+AC_ARG_ENABLE([tests], [--disable-tests Disable the tests suite],
+                       enable_tests="$enableval", enable_tests="yes")
+
 dnl Looking for argp.h
 AC_CHECK_HEADER([argp.h], AC_DEFINE(ARGP, 1, [Define if GNU argp tools are 
available]))
 
@@ -282,18 +285,24 @@ else
     AC_DEFINE(HAVE_IPV6, 0, [Disable IPv6 support])
 fi
 
-dnl Looking for cppunit
-AM_PATH_CPPUNIT(1.12.0, have_cppunit=yes)
-if test x$have_cppunit != xyes; then
+
+
+if test x$enable_tests == xyes; then
+  dnl Looking for cppunit
+  AM_PATH_CPPUNIT(1.12.0, have_cppunit=yes)
+  if test x$have_cppunit != xyes; then
     AC_MSG_WARN([
-*** Cannot find CppUnit (http://cppunit.sourceforge.net/.)
-*** tests driver program will not be built
-])
+      *** Cannot find CppUnit (http://cppunit.sourceforge.net/.)
+      *** tests driver program will not be built
+    ])
     MAKE_TESTS=no
     CPPUNIT_LDFLAGS=""
-else
+  else
     MAKE_TESTS=yes
     CPPUNIT_LDFLAGS="-lcppunit"
+  fi
+else
+  MAKE_TESTS=no
 fi
 
 LDFLAGS="$LDFLAGS $LIBS"

-----------------------------------------------------------------------

Summary of changes:
 myserver/configure.in |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)


hooks/post-receive
-- 
GNU MyServer




reply via email to

[Prev in Thread] Current Thread [Next in Thread]