build: fix a test in configure.ac
authorBartosz Golaszewski <bartekgola@gmail.com>
Tue, 28 Feb 2017 17:17:17 +0000 (18:17 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Tue, 28 Feb 2017 17:19:11 +0000 (18:19 +0100)
We were checking the 'with_tools' variable instead of 'with_tests'.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
configure.ac

index 9b79797447073f3bd163efba2b4f1dd368028393..946059b486a70786a4ef433684499af6a7e53830 100644 (file)
@@ -102,7 +102,7 @@ AC_DEFUN([HEADER_NOT_FOUND_TESTS],
 AC_DEFUN([FUNC_NOT_FOUND_TESTS],
        [ERR_NOT_FOUND([$1()], [tests])])
 
-if test "x$with_tools" = xtrue
+if test "x$with_tests" = xtrue
 then
        AC_CHECK_LIB([kmod], [kmod_module_probe_insert_module], [],
                [AC_MSG_ERROR([libkmod not found (needed to build tests])])