mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
4170093ab5
and disable feedback plugin by default, if it's compiled in.
28 lines
1.2 KiB
Text
28 lines
1.2 KiB
Text
MYSQL_PLUGIN(feedback,[MariaDB User Feedback Plugin],
|
|
[MariaDB User Feedback Plugin])
|
|
|
|
dnl Although it's not exactly obvious, top-level CMakeLists.txt parses plug.in
|
|
dnl files, in particular looking for what the library name should be. It uses
|
|
dnl regexp that matches MYSQL_PLUGIN_DYNAMIC or MYSQL_PLUGIN_STATIC, followed
|
|
dnl by an open parenthesys, and the plugin name. Having engine name enclosed in
|
|
dnl square brackets below causes this regexp to fail and as a result feedback
|
|
dnl plugin will not be considered for dynamic builds on Windows.
|
|
dnl Unfortunately, feedback cannot be built dynamically on Windows, because it
|
|
dnl needs to access server internals that aren't designed for plugin use and
|
|
dnl aren't marked with MYSQL_PLUGIN_IMPORT.
|
|
MYSQL_PLUGIN_DYNAMIC([feedback], [feedback.la])
|
|
ifelse(index(AC_PACKAGE_NAME, [MariaDB]), -1, [], [
|
|
|
|
dnl MariaDB and MySQL define static plugins differently.
|
|
dnl I only support MariaDB here, for now.
|
|
MYSQL_PLUGIN_STATIC(feedback, [libfeedback.la])
|
|
|
|
])
|
|
|
|
dnl MariaDB before 5.5 needs this define:
|
|
MYSQL_PLUGIN_DEFINE(feedback, [WITH_FEEDBACK_PLUGIN])
|
|
|
|
MYSQL_PLUGIN_ACTIONS(feedback, [
|
|
AC_CHECK_HEADERS([netdb.h sys/utsname.h])
|
|
])
|
|
|