summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/monkey/cmake/FindLibkqueue.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'src/fluent-bit/lib/monkey/cmake/FindLibkqueue.cmake')
-rw-r--r--src/fluent-bit/lib/monkey/cmake/FindLibkqueue.cmake18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/fluent-bit/lib/monkey/cmake/FindLibkqueue.cmake b/src/fluent-bit/lib/monkey/cmake/FindLibkqueue.cmake
new file mode 100644
index 000000000..131fc98a3
--- /dev/null
+++ b/src/fluent-bit/lib/monkey/cmake/FindLibkqueue.cmake
@@ -0,0 +1,18 @@
+find_path(LIBKQUEUE_INCLUDE_DIR sys/event.h
+ PATHS
+ "/usr/include"
+ "/usr/local/include"
+ PATH_SUFFIXES "kqueue"
+)
+
+find_library(LIBKQUEUE_LIBRARY
+ NAMES libkqueue.so
+ PATHS /usr/lib /usr/local/lib
+)
+
+if (LIBKQUEUE_INCLUDE_DIR AND LIBKQUEUE_LIBRARY)
+ set(LIBKQUEUE_FOUND TRUE)
+ set(LIBKQUEUE_LIBRARIES ${LIBKQUEUE_LIBRARY})
+else (LIBKQUEUE_INCLUDE_DIR AND LIBKQUEUE_LIBRARY)
+ set(LIBKQUEUE_FOUND FALSE)
+endif (LIBKQUEUE_INCLUDE_DIR AND LIBKQUEUE_LIBRARY)