autoconf patches from PT M.

git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1044 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
This commit is contained in:
michael
2009-09-23 04:34:38 +00:00
parent f105fd58e8
commit a50e7c8b4e
11 changed files with 17501 additions and 9118 deletions

View File

@@ -361,11 +361,13 @@ if test "$PLUGIN_MEMINFO" = "yes"; then
fi
# MPD
if test "$PLUGIN_MPD" = "yes"; then
if test -f "libmpdclient.h"
then
PLUGINS="$PLUGINS plugin_mpd.o libmpdclient.o"
AC_DEFINE(PLUGIN_MPD,1,[mpd plugin])
if test "$PLUGIN_MPD" = "yes"; then
AC_CHECK_LIB(libmpd, [mpd_newConnection], [has_mpd_header="true"], [has_mpd_header="false"])
if test "$has_mpd_header" = "true"; then
PLUGINS="$PLUGINS plugin_mpd.o"
PLUGINLIBS="$PLUGINLIBS `pkg-config libmpd --libs`"
CPPFLAGS="$CPPFLAGS `pkg-config libmpd --cflags`"
AC_DEFINE(PLUGIN_MPD,1,[mpd plugin])
else
AC_MSG_WARN(libmpdclient.h header not found: mpd plugin disabled)
AC_MSG_WARN(get libmpdclient.h from http://www.musicpd.org/libmpdclient.shtml)