mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
MYSQL_PLUGIN_WITHOUT() macro for plug.in
Using it in oqgraph/plug.in to fix bug#635633
This commit is contained in:
parent
50ffaf6d0f
commit
422c136658
2 changed files with 25 additions and 1 deletions
|
@ -202,6 +202,30 @@ AC_DEFUN([_MYSQL_PLUGIN_DISABLED],[
|
|||
])
|
||||
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Macro: MYSQL_PLUGIN_WITHOUT
|
||||
dnl
|
||||
dnl SYNOPSIS
|
||||
dnl MYSQL_PLUGIN_WITHOUT([name])
|
||||
dnl
|
||||
dnl DESCRIPTION
|
||||
dnl Exclude the plugin from being built, as if --without-plugin-name
|
||||
dnl was specified.
|
||||
dnl If the plugin was selected manually by --with-plugin-name,
|
||||
dnl excluding it here will abort the configure script with an error,
|
||||
dnl otherwise plugin will be silently disabled.
|
||||
dnl
|
||||
dnl ---------------------------------------------------------------------------
|
||||
|
||||
AC_DEFUN([MYSQL_PLUGIN_WITHOUT],[
|
||||
MYSQL_REQUIRE_PLUGIN([$1])
|
||||
if test "X[$with_plugin_]$1" = Xyes; then
|
||||
AC_MSG_ERROR([Plugin $1 cannot be built])
|
||||
else
|
||||
[with_plugin_]$1=no
|
||||
fi
|
||||
])
|
||||
|
||||
dnl ---------------------------------------------------------------------------
|
||||
dnl Macro: MYSQL_PLUGIN_DEPENDS
|
||||
dnl
|
||||
|
|
|
@ -35,6 +35,6 @@ AC_PREPROC_IFELSE(
|
|||
],
|
||||
[AC_MSG_RESULT([yes])],
|
||||
[AC_MSG_RESULT([no])
|
||||
with_plugin_oqgraph=no])
|
||||
MYSQL_PLUGIN_WITHOUT(oqgraph)])
|
||||
|
||||
AC_LANG_POP()
|
||||
|
|
Loading…
Reference in a new issue