Merge Trond
[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_sinclude(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 AS_IF([test "x$pandora_builtin_list" = "x"], pandora_builtin_list="NULL")
20 AC_SUBST([PANDORA_BUILTIN_LIST],[$pandora_builtin_list])
21 m4_ifval(m4_normalize([$1]),[
22 AC_CONFIG_FILES($*)
23 ],[
24 AC_DEFINE_UNQUOTED([PANDORA_BUILTIN_LIST],[$pandora_builtin_list],
25 [List of plugins to be built in])
26 ])
27
28
29 AC_SUBST(pandora_plugin_test_list)
30 AC_SUBST(pandora_plugin_libs)
31
32 pandora_plugin_defs=`echo $pandora_plugin_defs | sed 's/, *$//'`
33 AC_SUBST(pandora_plugin_defs)
34
35 AC_SUBST(PANDORA_PLUGIN_DEP_LIBS)
36 AC_SUBST(pkgplugindir,"\$(pkglibdir)/plugin")
37 ])
38
39 AC_DEFUN([PANDORA_ADD_PLUGIN_DEP_LIB],[
40 PANDORA_PLUGIN_DEP_LIBS="${PANDORA_PLUGIN_DEP_LIBS} $*"
41 ])