diff options
author | Sergei Golubchik <sergii@pisem.net> | 2010-09-14 13:29:14 +0200 |
---|---|---|
committer | Sergei Golubchik <sergii@pisem.net> | 2010-09-14 13:29:14 +0200 |
commit | 91b6216820e623148d4b9ed85482bc0a3bc50e13 (patch) | |
tree | efad75bb7ec82435d5c62ef2dfecbe8e48135675 /config | |
parent | 6767feafa506873c8838cdce148038b315687041 (diff) | |
download | mariadb-git-91b6216820e623148d4b9ed85482bc0a3bc50e13.tar.gz |
don't build dynamic plugins when configured with --disable-shared.
libtool does not like it and fails the build.
Diffstat (limited to 'config')
-rw-r--r-- | config/ac-macros/plugins.m4 | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/ac-macros/plugins.m4 b/config/ac-macros/plugins.m4 index e05bbc48d0e..69daf72a6a8 100644 --- a/config/ac-macros/plugins.m4 +++ b/config/ac-macros/plugins.m4 @@ -390,6 +390,14 @@ AC_DEFUN([__MYSQL_EMIT_CHECK_PLUGIN],[ fi ;; esac + # Similarly, disable shared plugins when configured with --disable-shared + # as libtool will not be able to produce them + if test "X[$enable_shared]" = Xno; then + if test "X[$mysql_plugin_]$2" != Xyes -a \ + "X[$with_plugin_]$2" != Xyes; then + [with_plugin_]$2=no + fi + fi ]) |