summaryrefslogtreecommitdiff
path: root/gr-howto-write-a-block/config/gr_standalone.m4
diff options
context:
space:
mode:
authorJohnathan Corgan <jcorgan@corganenterprises.com>2009-11-12 07:24:34 -0800
committerJohnathan Corgan <jcorgan@corganenterprises.com>2009-11-12 07:28:02 -0800
commit0a3595df4693b28031e7220c8c20fa1abeb99d76 (patch)
tree11233dea883d52e1e0d072431ffb92b3acddf8ea /gr-howto-write-a-block/config/gr_standalone.m4
parent4e0c8a37c3574f59e34186996cef0c44ff50bd16 (diff)
howto: adds C++ QA code
Diffstat (limited to 'gr-howto-write-a-block/config/gr_standalone.m4')
-rw-r--r--gr-howto-write-a-block/config/gr_standalone.m48
1 files changed, 8 insertions, 0 deletions
diff --git a/gr-howto-write-a-block/config/gr_standalone.m4 b/gr-howto-write-a-block/config/gr_standalone.m4
index 593583e2dd..3f8ddf1d62 100644
--- a/gr-howto-write-a-block/config/gr_standalone.m4
+++ b/gr-howto-write-a-block/config/gr_standalone.m4
@@ -124,4 +124,12 @@ m4_define([GR_STANDALONE],
[enable_python=yes]
)
AM_CONDITIONAL([PYTHON], [test x$enable_python = xyes])
+
+ dnl Define where to look for cppunit includes and libs
+ dnl sets CPPUNIT_CFLAGS and CPPUNIT_LIBS
+ dnl Try using pkg-config first, then fall back to cppunit-config.
+ PKG_CHECK_EXISTS(cppunit,
+ [PKG_CHECK_MODULES(CPPUNIT, cppunit >= 1.9.14)],
+ [AM_PATH_CPPUNIT([1.9.14],[],
+ [AC_MSG_ERROR([GNU Radio requires cppunit. Stop])])])
])