[grisbi-cvs] grisbi configure.in,1.78,1.79

Mickaƫl Remars mykeul at users.sourceforge.net
Fri May 22 20:43:34 CEST 2009


Update of /cvsroot/grisbi/grisbi
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv15525/grisbi

Modified Files:
	configure.in 
Log Message:
cunit tests are now disabled by default. They can be enabled by passing the --with-cunit argument to configure.

Index: configure.in
===================================================================
RCS file: /cvsroot/grisbi/grisbi/configure.in,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -d -r1.78 -r1.79
--- configure.in	17 Apr 2009 12:28:57 -0000	1.78
+++ configure.in	22 May 2009 18:43:32 -0000	1.79
@@ -142,6 +142,31 @@
 
 
 dnl
+dnl Check for cunit
+dnl
+AC_CHECK_HEADER(CUnit/Basic.h,,nocunit=true)
+AC_ARG_WITH(cunit,
+	[  --with-cunit         build grisbi with cunit tests [default=without]],
+	[build_cunit=$withval],
+	[build_cunit=no]
+)
+if test x$build_cunit != xyes
+then
+	nocunit=true
+else
+	if test x$nocunit != xtrue
+	then
+		nocunit=false
+		CFLAGS="${CFLAGS} -DHAVE_CUNIT"
+		LDFLAGS="${LDFLAGS} -lcunit"
+	else
+		AC_MSG_RESULT([libcunit header missing. Check your libcunit installation])
+	fi
+fi
+AM_CONDITIONAL(HAVE_CUNIT, test x$nocunit != xtrue)
+
+
+dnl
 dnl Check for libofx
 dnl
 AC_CHECK_HEADER(libofx/libofx.h,,noofx=true)



More information about the cvs mailing list