[banshee/gio-hardware] And add in the appledevice m4 file.
- From: Alan McGovern <alanmc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [banshee/gio-hardware] And add in the appledevice m4 file.
- Date: Tue, 20 Jul 2010 23:41:07 +0000 (UTC)
commit 635b3b75a1621b718a52d837cbcc9ca1cfab7cfc
Author: Alan McGovern <alan mcgovern gmail com>
Date: Wed Jul 21 00:12:41 2010 +0100
And add in the appledevice m4 file.
build/m4/banshee/dap-appledevice.m4 | 26 ++++++++++++++++++++++++++
1 files changed, 26 insertions(+), 0 deletions(-)
---
diff --git a/build/m4/banshee/dap-appledevice.m4 b/build/m4/banshee/dap-appledevice.m4
new file mode 100644
index 0000000..f4d594a
--- /dev/null
+++ b/build/m4/banshee/dap-appledevice.m4
@@ -0,0 +1,26 @@
+AC_DEFUN([BANSHEE_CHECK_DAP_APPLEDEVICE],
+[
+ LIBGPODSHARP_REQUIRED=0.1
+
+ AC_ARG_ENABLE(appledevice, AC_HELP_STRING([--disable-appledevice], [Disable Apple device (iPhone, iPod, iPad) DAP support]), , enable_appledevice="yes")
+
+ if test "x$enable_appledevice" = "xyes"; then
+ has_libgpod=no
+ PKG_CHECK_MODULES(LIBGPODSHARP,
+ libgpod-sharp >= $LIBGPODSHARP_REQUIRED,
+ has_libgpod=yes, has_libgpod=no)
+ if test "x$has_libgpod" = "xno"; then
+ AC_MSG_ERROR([libgpod-sharp was not found or is not up to date. Please install libgpod-sharp of at least version $LIBGPODSHARP_REQUIRED, or disable Apple device support by passing --disable-appledevice])
+ fi
+ fi
+
+ if test "x$enable_appledevice" = "xyes"; then
+ asm="`$PKG_CONFIG --variable=Libraries libgpod-sharp`"
+ LIBGPODSHARP_ASSEMBLIES="$LIBGPODSHARP_ASSEMBLIES $asm"
+ [[ -r "$asm.mdb" ]] && LIBGPODSHARP_ASSEMBLIES="$LIBGPODSHARP_ASSEMBLIES $asm.mdb"
+ AC_SUBST(LIBGPODSHARP_ASSEMBLIES)
+ fi
+
+ AM_CONDITIONAL(ENABLE_APPLEDEVICE, test "x$enable_appledevice" = "xyes")
+])
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]