[banshee] build: Bring back LIBMTP_SO_MAP to determine the name of libmtp.so.X



commit c185610050313d3715e1f66a7ee9d203f4291e96
Author: Bertrand Lorentz <bertrand lorentz gmail com>
Date:   Sun Jan 8 17:47:46 2012 +0100

    build: Bring back LIBMTP_SO_MAP to determine the name of libmtp.so.X
    
    We need to know the name of the libmtp.so.X file to put it in
    Mtp.dll.config.

 build/m4/banshee/dap-mtp.m4 |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/build/m4/banshee/dap-mtp.m4 b/build/m4/banshee/dap-mtp.m4
index d2a8eee..0721b92 100644
--- a/build/m4/banshee/dap-mtp.m4
+++ b/build/m4/banshee/dap-mtp.m4
@@ -15,6 +15,8 @@ AC_DEFUN([BANSHEE_CHECK_DAP_MTP],
 	fi
 
 	if test "x$enable_libmtp" = "xyes"; then
+		LIBMTP_SO_MAP=$(basename $(find $($PKG_CONFIG --variable=libdir libmtp) -maxdepth 1 -regex '.*libmtp\.so\.[[0-9]][[0-9]]*$' | sort | tail -n 1))
+		AC_SUBST(LIBMTP_SO_MAP)
 		AC_CHECK_MEMBER([struct LIBMTP_track_struct.modificationdate],
 				LIBMTP_HAS_MODDATE=yes,
 				LIBMTP_HAS_MODDATE=no,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]