rely on pkg-config when finding check

The former code complains to install check even it is actually
installed.
This commit is contained in:
Koichiro IWAO 2021-04-15 22:33:09 +09:00
parent 3a9d62b05c
commit 859a9d87c3
No known key found for this signature in database
GPG Key ID: 03993B4065E7193B

View File

@ -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')