From 42fab5fbc85e243b958beff95912c46fb81abcc0 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Tue, 17 Mar 2015 16:51:29 +0100 Subject: demote missing gtest to a buildtime warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We just need it for unit tests and our debian/rules file actually skips calling them if nocheck is given… but this fails anyhow as we declared a hard-dependency on it. Demoting the error to a warning in configuration and adding a test in the 'make test' path with a friendly message allows nocheck to be useful again. (Running unit tests is fully encouraged of course, but bootstrappers and co do not need to be burdened with this stuff) --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 06879f839..3fb393335 100644 --- a/configure.ac +++ b/configure.ac @@ -91,7 +91,7 @@ AC_CHECK_LIB(curl, curl_easy_init, AC_LANG_PUSH([C++]) AC_CHECK_HEADER(gtest/gtest.h,, - AC_MSG_ERROR([failed: I need gtest to build tests]), + AC_MSG_WARN([failed: I need gtest (packaged as libgtest-dev) for unit testing]), ) AC_LANG_POP([C++]) -- cgit v1.2.3