File libchewing-check.patch of Package libchewing

--- configure.ac
+++ configure.ac
@@ -80,8 +80,8 @@
 AC_CHECK_FUNCS([memchr memmove memset mkdir strchr strstr])
 
 # Checks for check unit test framework
-AM_PATH_CHECK([0.8.2], [ enable_check=yes ], [ enable_check=no ])
-AM_CONDITIONAL(ENABLE_UNIT_TEST, test $enable_check = "yes")
+PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
+AM_CONDITIONAL(ENABLE_UNIT_TEST, test $CHECK_LIBS != "")
 
 # Checks for ncursesw
 LIB_NAME=ncursesw
openSUSE Build Service is sponsored by