Code

configure.ac: detect lirc 0.9.4
authorGianfranco Costamagna <locutusofborg@debian.org>
Fri, 28 Oct 2016 10:22:59 +0000 (12:22 +0200)
committerMax Kellermann <max.kellermann@gmail.com>
Fri, 28 Oct 2016 10:23:44 +0000 (12:23 +0200)
NEWS
configure.ac

diff --git a/NEWS b/NEWS
index 7fead610ac2c9f3c3a4432c83755c16663d5f8f4..982ab440f6ba510355884676b88a7449749851b0 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,5 +1,5 @@
 ncmpc 0.26 - not yet released
-
+* adapt to lirc 0.9.4
 
 ncmpc 0.25 - (2016-08-18)
 * implement "%disc%"
index 14edebecad986fb2d1f9a320b42bbdeeb02f20cb..77c47017e72190d05ea9ac5ca59f7fda1b2670b4 100644 (file)
@@ -184,8 +184,12 @@ AC_ARG_ENABLE([lirc],
                [Enable LIRC support]),,
        [enable_lirc=no])
 if test x$enable_lirc = xyes; then
-       PKG_CHECK_MODULES([LIBLIRCCLIENT], [liblircclient0],,
-               [AC_MSG_ERROR([liblircclient0 not found])])
+       PKG_CHECK_MODULES([LIBLIRCCLIENT], [lirc],,
+               [PKG_CHECK_MODULES([LIBLIRCCLIENT], [liblircclient0],,
+                       [AC_MSG_ERROR([lirc not found])]
+               )]
+       )
+
        AC_DEFINE([ENABLE_LIRC], [1], [Enable LIRC support])
 fi