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

Commitcded42f

Browse files
committed
Reenable pkgconfig check for mono, but reducing bloat
In case you need a clarification wrt bloat:http://tirania.org/blog/archive/2012/Oct-20.html
1 parent4519a13 commitcded42f

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

‎configure.ac‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,18 @@ if test "x$PKG_CONFIG" = "xno"; then
1212
AC_MSG_ERROR([You need to install pkg-config])
1313
fi
1414

15-
AC_PATH_PROG(MONO_SGEN,mono-sgen,no)
15+
MONO_REQUIRED_VERSION=2.9
16+
MONO_RECOMMENDED_VERSION=2.11.5
17+
18+
if ! pkg-config --atleast-version=$MONO_REQUIRED_VERSION mono; then
19+
AC_MSG_ERROR("Youneedmono$MONO_REQUIRED_VERSION")
20+
fi
1621

17-
# PKG_CHECK_MODULES([MONO], [mono >= 2.9])
18-
#
19-
# PKG_CHECK_MODULES([MONO_2_12],
20-
# [mono >= 2.11.5], HAVE_MONO_2_12_OR_HIGHER=yes, HAVE_MONO_2_12_OR_HIGHER=no)
21-
#
22-
# if test "x$HAVE_MONO_2_12_OR_HIGHER" = "xno" ; then
23-
# AC_MSG_WARN([Mono 2.11.5 or higher is recommended, for better MSBuild (xbuild) compatibility])
24-
# fi
22+
if ! pkg-config --atleast-version=$MONO_RECOMMENDED_VERSION mono; then
23+
AC_MSG_WARN([Mono $MONO_RECOMMENDED_VERSION or higher is recommended, for better MSBuild (xbuild) compatibility])
24+
fi
25+
26+
AC_PATH_PROG(MONO_SGEN,mono-sgen,no)
2527

2628
# Checks for libraries.
2729

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp