From 61f1df17be9215aa2e2443baa8aa02aca9d09ed0 Mon Sep 17 00:00:00 2001 From: reinelt Date: Sat, 15 Apr 2006 05:22:52 +0000 Subject: [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 --- plugins.m4 | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'plugins.m4') 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 -- cgit v1.2.3