[gbrainy] Support for Mono 2.10 builiding in Debian



commit c7c468238cc6e2b25af08e002bc7a98686abf4f4
Author: Jordi Mas <jmas softcatala org>
Date:   Sun May 22 17:38:19 2011 +0200

    Support for Mono 2.10 builiding in Debian

 configure.ac |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 03ed5fe..00bd172 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,10 +54,14 @@ dnl -- check for various mono assemblies that we need.
 needed_assemblies="Mono.Posix Mono.Cairo Mono.CSharp"
 for i in $needed_assemblies; do
   AC_MSG_CHECKING([for $i.dll])
-  if test ! \( -e `$PKG_CONFIG --variable=prefix mono`/lib/mono/2.0/$i.dll -o -e `$PKG_CONFIG --variable=prefix mono`/lib64/mono/2.0//$i.dll \); then
-    AC_MSG_ERROR([missing required mono 2.0 DLL: $i.dll])
+  if test ! \( -e `$PKG_CONFIG --variable=prefix mono`/lib/mono/2.0/$i.dll -o -e `$PKG_CONFIG --variable=prefix mono`/lib64/mono/2.0/$i.dll \); then
+	if test ! \( -e `$PKG_CONFIG --variable=prefix mono`/lib/mono/4.0/$i.dll -o -e `$PKG_CONFIG --variable=prefix mono`/lib64/mono/4.0/$i.dll \); then
+		AC_MSG_ERROR([missing required mono 2.0/4.0 DLL: $i.dll])
+	else
+	AC_MSG_RESULT([found])
+	fi
   else
-    AC_MSG_RESULT([found])
+	AC_MSG_RESULT([found])
   fi
 done
 



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