From 6b22dbb2a115342a3e46f07503636b04e5ed26ac Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Mon, 7 Jan 2019 20:42:45 -0500 Subject: build: Don't build tests unless asked This was attempted previously but didn't get the logic quite right. Include pthread unconditionally since it is needed by the 'all' target. Change-Id: I9db7fb15280357b53a748f1c385a5523e37e34a4 Fixes: 35aba2347fd0ffbbaf704d4cc067304881348182 Signed-off-by: Brad Bishop --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 34a70e5..84a946f 100644 --- a/configure.ac +++ b/configure.ac @@ -41,11 +41,11 @@ LT_INIT # Removes 'unrecognized options: --with-libtool-sysroot' AC_ARG_ENABLE([tests], [Whether we should build test cases]) # Check/set gtest specific functions. -AS_IF([test "x$enable_tests" != "xno"], [ +AS_IF([test "x$enable_tests" = "xyes"], [ PKG_CHECK_MODULES([GMOCK], [gtest_main],,) PKG_CHECK_MODULES([GTEST], [gmock],,) - AX_PTHREAD ]) +AX_PTHREAD AC_ARG_ENABLE([oe-sdk], AS_HELP_STRING([--enable-oe-sdk], [Link testcases absolutely against OE SDK so they can be ran within it.]) -- cgit v1.2.1