summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorserg@sergbook.mysql.com <>2006-05-06 07:43:18 -0400
committerserg@sergbook.mysql.com <>2006-05-06 07:43:18 -0400
commit549fe7c8508c973cc78c1be7b6ec6c507a9862ae (patch)
treeceebe7c6ae0a80d9af1480e65417392e47b474d7 /config
parent376117eb988bf3ac33782c372a3c666b242b7321 (diff)
downloadmariadb-git-549fe7c8508c973cc78c1be7b6ec6c507a9862ae.tar.gz
auto-set MYSQL_PLUGIN_DIRECTORY for plug.in files
Diffstat (limited to 'config')
-rw-r--r--config/ac-macros/plugins.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/config/ac-macros/plugins.m4 b/config/ac-macros/plugins.m4
index c70aba0bc34..c00741bcfc0 100644
--- a/config/ac-macros/plugins.m4
+++ b/config/ac-macros/plugins.m4
@@ -39,6 +39,10 @@ AC_DEFUN([_MYSQL_PLUGIN],[
m4_define([MYSQL_PLUGIN_NAME_]AS_TR_CPP([$1]), [$3])
m4_define([MYSQL_PLUGIN_DESC_]AS_TR_CPP([$1]), [$4])
_MYSQL_PLUGAPPEND_META([$1], $5)
+ ifelse(m4_bregexp(__mysql_include__,[/plug\.in$]),-1,[],[
+ MYSQL_PLUGIN_DIRECTORY([$1],
+ m4_bregexp(__mysql_include__,[^\(.*\)/plug\.in$],[\1]))
+ ])
])
])
@@ -745,7 +749,9 @@ dnl
dnl ---------------------------------------------------------------------------
AC_DEFUN([_MYSQL_INCLUDE_LIST],[
ifelse([$1], [], [], [
+ m4_define([__mysql_include__],[$1])
sinclude($1)
+ m4_undefine([__mysql_include__])
_MYSQL_INCLUDE_LIST(m4_shift($@))
])
])