Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5fcaef5

Browse files
author
Andreia Gaita
committed
Fix mono path detection and add --with-gacdir flag for manually setting it
1 parent602770a commit5fcaef5

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

‎config.make.in‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ topdir := @abs_top_srcdir@/
44
builddir := @abs_top_builddir@/
55
libdir := ${prefix}/lib/
66
installdir := ${prefix}/bin/
7-
monodir :=`pkg-config --variable=libdir mono`/mono/
7+
monodir :=@MONODIR@
88
libdir2 := $(monodir)2.0/
99
libdir35 := $(monodir)3.5/
1010
libdir4 := $(monodir)4.0/

‎configure.ac‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,27 @@ AC_ARG_WITH([bootstrap],
2121
with_bootstrap=$(cd "$with_bootstrap" && pwd)
2222
AC_SUBST(with_bootstrap)
2323

24+
AC_ARG_WITH([gacdir],
25+
[ --with-gacdir=/path/to/gac Specify the gac directory (ex: /usr/lib/mono/gac)],
26+
[],
27+
[with_gacdir=no]
28+
)
29+
30+
if test "x$with_gacdir" = "xno"; then
31+
MONODIR=`pkg-config --variable=libdir mono`/mono
32+
if ! test -e $MONODIR/2.0/mscorlib.dll; then
33+
MONODIR=`pkg-config --variable=prefix mono`/lib/mono
34+
fi
35+
else
36+
MONODIR=$(cd "$with_gacdir/.." && pwd)
37+
fi
38+
39+
if ! test -e $MONODIR/2.0/mscorlib.dll; then
40+
AC_ERROR(Couldn't find the mono gac directory or mscorlib.dll in the usual places. Set --with-gacdir=<path>)
41+
fi
42+
AC_SUBST(MONODIR)
43+
44+
2445
AC_CONFIG_FILES([
2546
launcher
2647
Makefile

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp