cmake MK_HAVE_MEMRCHR examples

monkey/monkey mk_core/CMakeLists.txt :190

check_c_source_compiles("
   #define _GNU_SOURCE
   #include <string.h>
   int main() {
      memrchr(\"test\", 'e', 4);
      return 0;
   }" MK_HAVE_MEMRCHR)

monkey/monkey mk_core/CMakeLists.txt :199

CHECK_FUNCTION_EXISTS(memrchr MK_HAVE_MEMRCHR)

fluent/fluent-bit lib/monkey/mk_core/CMakeLists.txt :190

check_c_source_compiles("
   #define _GNU_SOURCE
   #include <string.h>
   int main() {
      memrchr(\"test\", 'e', 4);
      return 0;
   }" MK_HAVE_MEMRCHR)

fluent/fluent-bit lib/monkey/mk_core/CMakeLists.txt :199

CHECK_FUNCTION_EXISTS(memrchr MK_HAVE_MEMRCHR)