File: 0003-Use-gacutil-for-ICSharpCode.SharpZipLib-check.patch

package info (click to toggle)
taglib-sharp 2.0.4.0-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 3,864 kB
  • sloc: cs: 29,021; sh: 625; makefile: 240
file content (34 lines) | stat: -rw-r--r-- 984 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
From: Chow Loong Jin <hyperair@debian.org>
Date: Sun, 5 Feb 2012 23:42:25 +0800
Subject: Use gacutil for ICSharpCode.SharpZipLib check

---
 configure.ac |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/configure.ac b/configure.ac
index 59a1b98..4114783 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,6 +13,7 @@ AC_SUBST(ASSEMBLY_VERSION)
 AC_SUBST(ASSEMBLY_NAME)
 
 AC_PROG_INSTALL
+AC_PROG_GREP
 
 MONODOC_REQUIRED=1.1.9
 
@@ -84,10 +85,8 @@ else
 fi
 
 # checking for ICSharpCode.SharpZipLib.dll
-AC_MSG_CHECKING([for Mono 2.0 GAC for ICSharpCode.SharpZipLib.dll])
-if test \
-	-e "$($PKG_CONFIG --variable=libdir mono)/mono/2.0/ICSharpCode.SharpZipLib.dll" -o \
-	-e "$($PKG_CONFIG --variable=prefix mono)/lib/mono/2.0/ICSharpCode.SharpZipLib.dll"; \
+AC_MSG_CHECKING([Mono GAC for ICSharpCode.SharpZipLib.dll])
+if $GACUTIL -l | $GREP -q ICSharpCode.SharpZipLib; \
 	then \
 	AC_MSG_RESULT([found])
 	AM_CONDITIONAL(HAVE_SHARPZIPLIB, true)
--