summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 878fc62)
raw | patch | inline | side by side (parent: 878fc62)
author | Sebastian Harl <sh@tokkee.org> | |
Sun, 10 May 2009 16:47:41 +0000 (18:47 +0200) | ||
committer | Sebastian Harl <sh@tokkee.org> | |
Mon, 11 May 2009 09:36:55 +0000 (11:36 +0200) |
This option may be used to enable or disable all plugins by default. The
default may be overwritten by explicitly enabling or disabling a plugin using
the --enable-<plugin> option.
default may be overwritten by explicitly enabling or disabling a plugin using
the --enable-<plugin> option.
README | patch | blob | history | |
configure.in | patch | blob | history |
index 83e431ea9b613640ca2ed6113cd43341e513cdbc..8deaf0eb0adbc52e400c1f8110fd6e0c75b5f059 100644 (file)
--- a/README
+++ b/README
section `Prerequisites' above) and rerun `configure'. If you specify the
`--enable-<plugin>' configure option, the script will fail if the depen-
dencies for the specified plugin are not met. If you specify the
- `--disable-<plugin>' configure option, the plugin will not be built. Both
- options are meant for package maintainers and should not be used in everyday
- situations.
+ `--disable-<plugin>' configure option, the plugin will not be built. If you
+ specify the `--enable-all-plugins' or `--disable-all-plugins' configure
+ options, all plugins will be enabled or disabled respectively by default.
+ Explicitly enabling or disabling a plugin overwrites the default for the
+ specified plugin. These options are meant for package maintainers and should
+ not be used in everyday situations.
By default, collectd will be installed into `/opt/collectd'. You can adjust
this setting by specifying the `--prefix' configure option - see INSTALL for
diff --git a/configure.in b/configure.in
index e37a8ab2be64e8487e29bda1be404de299016cd8..a62914d350c6276c6c19db45aee7ba1664df2e8b 100644 (file)
--- a/configure.in
+++ b/configure.in
fi
],
[
- if test "x$2" = "xyes"
- then
- enable_plugin="yes"
- else
- enable_plugin="no"
- fi
+ if test "x$enable_all_plugins" = "xauto"
+ then
+ if test "x$2" = "xyes"
+ then
+ enable_plugin="yes"
+ else
+ enable_plugin="no"
+ fi
+ else
+ enable_plugin="$enable_all_plugins"
+ fi
])
if test "x$enable_plugin" = "xyes"
then
m4_divert_once([HELP_ENABLE], [
collectd plugins:])
+AC_ARG_ENABLE([all-plugins],
+ AC_HELP_STRING([--enable-all-plugins],
+ [enable all plugins (auto by def)]),
+ [
+ if test "x$enableval" = "xyes"
+ then
+ enable_all_plugins="yes"
+ else if test "x$enableval" = "xauto"
+ then
+ enable_all_plugins="auto"
+ else
+ enable_all_plugins="no"
+ fi; fi
+ ],
+ [enable_all_plugins="auto"])
+
+m4_divert_once([HELP_ENABLE], [])
+
AC_PLUGIN([apache], [$with_libcurl], [Apache httpd statistics])
AC_PLUGIN([apcups], [yes], [Statistics of UPSes by APC])
AC_PLUGIN([apple_sensors], [$with_libiokit], [Apple's hardware sensors])