[gmime] Added --with-gacdir configure switch



commit 76f00816ffd66e2b8ce0f5f316d59c6b6e7defdb
Author: Jeffrey Stedfast <fejj gnome org>
Date:   Sat Feb 4 15:50:08 2012 -0500

    Added --with-gacdir configure switch
    
    2012-02-04  Jeffrey Stedfast  <fejj gnome org>
    
    	* configure.ac: Added --with-gacdir to fix bug #667072

 ChangeLog        |    4 ++++
 configure.ac     |    5 +++++
 mono/Makefile.am |    2 +-
 3 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 6ad216e..2e8ce11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-02-04  Jeffrey Stedfast  <fejj gnome org>
+
+	* configure.ac: Added --with-gacdir to fix bug #667072
+
 2012-01-11  Jeffrey Stedfast  <fejj gnome org>
 
 	* mono/Makefile.am: Fixed up to more closely match the gtk-sharp
diff --git a/configure.ac b/configure.ac
index da7325e..c500092 100644
--- a/configure.ac
+++ b/configure.ac
@@ -571,6 +571,11 @@ if test "x$enable_mono" = "xyes"; then
 	AC_SUBST(API_VERSION)
 fi
 
+AC_ARG_WITH([gacdir], AC_HELP_STRING([--with-gacdir], [Specify the Global Assembly Cache root directory]),,
+            [with_gacdir=$prefix/lib])
+gacdir=$(cd "$with_gacdir" && pwd)
+AC_SUBST(gacdir)
+
 dnl Extra libs
 EXTRA_LIBS="$ZLIB"
 if test "x$LIBSOCKET" != "x"; then
diff --git a/mono/Makefile.am b/mono/Makefile.am
index c8b9195..9218ac0 100644
--- a/mono/Makefile.am
+++ b/mono/Makefile.am
@@ -13,7 +13,7 @@ TARGET_API = $(API)
 noinst_DATA = $(API) $(ASSEMBLY) $(ASSEMBLY).config
 CLEANFILES = $(ASSEMBLY) generated-stamp generated/*.cs $(API)
 DISTCLEANFILES = $(ASSEMBLY).config AssemblyInfo.cs gmime-sharp-$(GMIME_API_VERSION).pc
-GACUTIL_FLAGS = -package $(PACKAGE_SHARP) -gacdir $(DESTDIR)$(prefix)/lib
+GACUTIL_FLAGS = -package $(PACKAGE_SHARP) -gacdir $(DESTDIR)$(gacdir)
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = $(PACKAGE_SHARP).pc



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