From 859a9d87c302e3ac8d375ca04ab42d220d8ee344 Mon Sep 17 00:00:00 2001 From: Koichiro IWAO Date: Thu, 15 Apr 2021 22:33:09 +0900 Subject: [PATCH] rely on pkg-config when finding check The former code complains to install check even it is actually installed. --- configure.ac | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index f05fafb6..afac52ab 100644 --- a/configure.ac +++ b/configure.ac @@ -358,8 +358,7 @@ AC_CHECK_HEADER([X11/extensions/Xrandr.h], [], CFLAGS="$save_CFLAGS" # checking for libcheck (used for unit testing) -PKG_CHECK_MODULES([CHECK], [check >= 0.10.0]) -AC_CHECK_HEADER([check.h], [], +PKG_CHECK_MODULES([CHECK], [check >= 0.10.0], [], [AC_MSG_ERROR([please install check])]) AC_SUBST([moduledir], '${libdir}/xrdp')