aboutsummaryrefslogtreecommitdiffstats
path: root/plugins.m4
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-04-15 05:22:52 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2006-04-15 05:22:52 +0000
commit61f1df17be9215aa2e2443baa8aa02aca9d09ed0 (patch)
tree1393a83355222e6ae3606f212c6f5101e703d34b /plugins.m4
parent952d2e102ce7c167e5b88395b01692839816c425 (diff)
downloadlcd4linux-61f1df17be9215aa2e2443baa8aa02aca9d09ed0.tar.gz
[lcd4linux @ 2006-04-15 05:22:52 by reinelt]
mpd plugin from Stefan Kuhne git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@658 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugins.m4')
-rw-r--r--plugins.m419
1 files changed, 19 insertions, 0 deletions
diff --git a/plugins.m4 b/plugins.m4
index 65f641b..808eb36 100644
--- a/plugins.m4
+++ b/plugins.m4
@@ -60,6 +60,7 @@ for plugin in $plugins; do
PLUGIN_ISDN="yes"
PLUGIN_LOADAVG="yes"
PLUGIN_MEMINFO="yes"
+ PLUGIN_MPD="yes"
PLUGIN_MYSQL="yes"
PLUGIN_NETDEV="yes"
PLUGIN_POP3="yes"
@@ -107,6 +108,9 @@ for plugin in $plugins; do
meminfo)
PLUGIN_MEMINFO=$val
;;
+ mpd)
+ PLUGIN_MPD=$val
+ ;;
mysql)
PLUGIN_MYSQL=$val
;;
@@ -206,6 +210,21 @@ if test "$PLUGIN_MEMINFO" = "yes"; then
PLUGINS="$PLUGINS plugin_meminfo.o"
AC_DEFINE(PLUGIN_MEMINFO,1,[meminfo plugin])
fi
+if test "$PLUGIN_MPD" = "yes"; then
+ AC_CHECK_HEADERS(libmpd/libmpd.h, [has_libmpd_header="true"], [has_libmpd_header="false"])
+ if test "$has_libmpd_header" = "true"; then
+ AC_CHECK_LIB(libmpd, libmpd_init, [has_libmpd_lib="true"], [has_libmpd_lib="false"])
+ if test "$has_libmpd_lib" = "true"; then
+ PLUGINS="$PLUGINS plugin_mpd.o"
+ PLUGINLIBS="$PLUGINLIBS -lmpd"
+ AC_DEFINE(PLUGIN_MPD,1,[mpd plugin])
+ else
+ AC_MSG_WARN(libmpd lib not found: mpd plugin disabled)
+ fi
+ else
+ AC_MSG_WARN(libmpd/libmpd.h header not found: mpd plugin disabled)
+ fi
+fi
if test "$PLUGIN_MYSQL" = "yes"; then
AC_CHECK_HEADERS(mysql/mysql.h, [has_mysql_header="true"], [has_mysql_header="false"])
if test "$has_mysql_header" = "true"; then