pandora-build v0.46 - fixed a plugin system problem when it's not in use.
[m6w6/libmemcached] / m4 / pandora_plugins.m4
1 dnl Copyright (C) 2009 Sun Microsystems
2 dnl This file is free software; Sun Microsystems
3 dnl gives unlimited permission to copy and/or distribute it,
4 dnl with or without modifications, as long as this notice is preserved.
5 dnl--------------------------------------------------------------------
6 dnl PANDORA_PLUGINS
7 dnl Declare our plugin modules
8 dnl--------------------------------------------------------------------
9
10 AC_DEFUN([PANDORA_PLUGINS],[
11
12 m4_include(config/plugin.ac)
13 dnl Add code here to read set plugin lists and set drizzled_default_plugin_list
14 AC_DEFINE_UNQUOTED([PANDORA_PLUGIN_LIST],[$pandora_default_plugin_list],
15 [List of plugins that should be loaded on startup if no
16 value is given for --plugin-load])
17
18 pandora_builtin_list=`echo $pandora_builtin_list | sed 's/, *$//'`
19 AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_LIST],[$pandora_builtin_list],
20 [List of plugins to be built in])
21
22 AC_SUBST(pandora_plugin_test_list)
23 AC_SUBST(pandora_plugin_libs)
24
25 pandora_plugin_defs=`echo $pandora_plugin_defs | sed 's/, *$//'`
26 AC_SUBST(pandora_plugin_defs)
27
28 AC_SUBST(PANDORA_PLUGIN_DEP_LIBS)
29 AC_SUBST(pkgplugindir,"\$(pkglibdir)/plugin")
30 ])
31
32 AC_DEFUN([PANDORA_ADD_PLUGIN_DEP_LIB],[
33 PANDORA_PLUGIN_DEP_LIBS="${PANDORA_PLUGIN_DEP_LIBS} $*"
34 ])