[vlc-devel] commit: Fix libprojectM version check. ( Rémi Duraffort )

git version control git at videolan.org
Sat Feb 6 17:08:13 CET 2010


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Sat Feb  6 17:03:38 2010 +0100| [b5c10ad658ac247d4cd0c6efd642f7e174051edd] | committer: Rémi Duraffort 

Fix libprojectM version check.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b5c10ad658ac247d4cd0c6efd642f7e174051edd
---

 configure.ac |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index 5d76eb3..e3fc0e4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -4239,10 +4239,12 @@ AS_IF([test "${enable_projectm}" != "no"],
       VLC_ADD_PLUGIN([projectm])
       VLC_ADD_CXXFLAGS([projectm],[$PROJECTM_CFLAGS])
       VLC_ADD_LIBS([projectm],[$PROJECTM_LIBS])
-      PKG_CHECK_MODULES(PROJECTM, libprojectM >= 2.0.0,
-        [ AC_DEFINE([HAVE_PROJECTM2], 1, [Define to 1 if using libprojectM2]) ])
+      PKG_CHECK_MODULES(PROJECTM2, [libprojectM >= 2.0.0],
+        [ AC_DEFINE([HAVE_PROJECTM2], 1, [Define to 1 if using libprojectM 2.x]) ],
+        [ AC_MSG_WARN( [Using libprojectM version 1] )
+      ])
     ],[
-      AC_MSG_WARN(libprojectM library not found)
+      AC_MSG_WARN([libprojectM library not found])
     ])
   ])
 




More information about the vlc-devel mailing list