[Galago-commits] r2516 - trunk/libgalago

galago-commits at freedesktop.org galago-commits at freedesktop.org
Wed Feb 1 19:51:38 PST 2006


Author: chipx86
Date: 2006-02-01 19:51:35 -0800 (Wed, 01 Feb 2006)
New Revision: 2516

Modified:
   trunk/libgalago/ChangeLog
   trunk/libgalago/configure.ac
Log:
Patch by compnerd to allow for the disabling of unit tests during configure. This closes ticket #15.


Modified: trunk/libgalago/ChangeLog
===================================================================
--- trunk/libgalago/ChangeLog	2006-02-02 03:17:32 UTC (rev 2515)
+++ trunk/libgalago/ChangeLog	2006-02-02 03:51:35 UTC (rev 2516)
@@ -1,3 +1,9 @@
+Wed Feb 01 19:49:42 PST 2006  Christian Hammond <chipx86 at chipx86.com>
+
+	* configure.ac:
+	  - Patch by compnerd to allow for the disabling of unit tests during
+	    configure. This closes ticket #15.
+
 Fri Jan 27 11:07:47 PST 2006  Christian Hammond <chipx86 at chipx86.com>
 
 	* libgalago/galago-account.c:

Modified: trunk/libgalago/configure.ac
===================================================================
--- trunk/libgalago/configure.ac	2006-02-02 03:17:32 UTC (rev 2515)
+++ trunk/libgalago/configure.ac	2006-02-02 03:51:35 UTC (rev 2516)
@@ -129,11 +129,15 @@
 dnl #
 dnl # Check for Check
 dnl #
-AM_PATH_CHECK(, [have_check="yes"],
-[
-	AC_MSG_WARN([Check not found; cannot run some unit tests])
+AC_ARG_ENABLE([tests],
+              AC_HELP_STRING([--disable-tests], [Disable the unit tests]),,
+              [enable_tests=yes])
+
+if test "x$enable_tests" = "xyes"; then
+	AM_PATH_CHECK(, [have_check="yes"], AC_MSG_ERROR([Check not found]))
+else
 	have_check="no"
-])
+fi
 
 AM_CONDITIONAL(HAVE_CHECK, test "$have_check" = "yes")
 



More information about the galago-commits mailing list