]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 2462: make check should tell when cppunit is missing
authorAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Aug 2009 12:20:03 +0000 (00:20 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Sat, 1 Aug 2009 12:20:03 +0000 (00:20 +1200)
Makefile.am

index 061ed3128867e7df4eb84e3bd1ed7078a1cb5517..1a2a161c610d593242bd9961c8b0a58e939dd57e 100644 (file)
@@ -40,3 +40,14 @@ EXTRA_DIST = \
 install-pinger:
        chown root $(DESTDIR)$(DEFAULT_PINGER)
        chmod 4711 $(DESTDIR)$(DEFAULT_PINGER)
+
+## hack to insert the test first, before building recursive child directories
+check: have-cppunit check-recursive
+
+have-cppunit:
+       @if test "@SQUID_CPPUNIT_INC@@SQUID_CPPUNIT_LA@@SQUID_CPPUNIT_LIBS@" = "" ; then \
+               echo "FATAL: 'make check' requires cppunit and cppunit development packages. They do not appear to be installed." ; \
+               exit 1 ; \
+       fi
+
+.PHONY: have-cppunit