diff options
author | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-04-14 21:07:47 +0000 |
---|---|---|
committer | michux <michux@3ae390bd-cb1e-0410-b409-cd5a39f66f1f> | 2009-04-14 21:07:47 +0000 |
commit | 7abbec0f511ffc204740a8f2a9d2770e397a84c3 (patch) | |
tree | 89fd2e5f078f52ce646206060569ca5ed82badc3 /plugins.m4 | |
parent | 94cccadce1b921992b7b93ffba9acc0c64bb4992 (diff) | |
download | lcd4linux-7abbec0f511ffc204740a8f2a9d2770e397a84c3.tar.gz |
add mpris dbus plugin, untested!
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1025 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'plugins.m4')
-rw-r--r-- | plugins.m4 | 26 |
1 files changed, 24 insertions, 2 deletions
@@ -54,8 +54,8 @@ for plugin in $plugins; do AC_MSG_RESULT( [available plugins:] [ apm,cpuinfo,diskstats,dvb,exec,file,gps,i2c_sensors,iconv,imon,isdn,kvv,] - [ loadavg,meminfo,mpd,mysql,netdev,netinfo,pop3,ppp,proc_stat,sample,seti,] - [ statfs,uname,uptime,wireless,xmms]) + [ loadavg,meminfo,mpd,mpris_dbus,mysql,netdev,netinfo,pop3,ppp,proc_stat,] + [ sample,seti,statfs,uname,uptime,wireless,xmms]) AC_MSG_ERROR([run ./configure --with-plugins=...]) ;; all) @@ -78,6 +78,7 @@ for plugin in $plugins; do PLUGIN_LOADAVG="yes" PLUGIN_MEMINFO="yes" PLUGIN_MPD="yes" + PLUGIN_MPRIS_DBUS="yes" PLUGIN_MYSQL="yes" PLUGIN_NETDEV="yes" PLUGIN_NETINFO="yes" @@ -151,6 +152,9 @@ for plugin in $plugins; do mpd) PLUGIN_MPD=$val ;; + mpris_dbus) + PLUGIN_MPRIS_DBUS=$val + ;; mysql) PLUGIN_MYSQL=$val ;; @@ -365,6 +369,24 @@ if test "$PLUGIN_MPD" = "yes"; then fi fi +# MPRIS D-Bus +if test "$PLUGIN_MPRIS_DBUS" = "yes"; then + AC_CHECK_HEADERS(dbus/dbus.h, [has_dbus_header="true"], [has_dbus_header="false"]) + if test "$has_dbus_header" = "true"; then + AC_CHECK_LIB(dbus-1, dbus_bus_get, [has_libdbus1_lib="true"], [has_libdbus1_lib="false"]) + if test "$has_libdbus1_lib" = "true"; then + PLUGINS="$PLUGINS plugin_mpris_dbus.o" + PLUGINLIBS="$PLUGINLIBS -ldbus-1" + AC_DEFINE(PLUGIN_MPRIS_DBUS,1,[mpris_dbus plugin]) + else + AC_MSG_WARN(libdbus-1 lib not found: mpris_dbus plugin disabled) + fi + else + AC_MSG_WARN(dbus/dbus.h header not found: mpris_dbus plugin disabled) + fi +fi + + # MySQL if test "$PLUGIN_MYSQL" = "yes"; then AC_CHECK_HEADERS(mysql/mysql.h, [has_mysql_header="true"], [has_mysql_header="false"]) |