build: Rework handling of missing C# compiler in configure.ac
Only print the error in one place. Also add some comments.
This commit is contained in:
parent
85443823e9
commit
a531510431
1 changed files with 4 additions and 6 deletions
10
configure.ac
10
configure.ac
|
@ -113,7 +113,7 @@ GACUTIL_FLAGS='/package $(PACKAGE_VERSION) /gacdir $(DESTDIR)$(prefix)/lib'
|
||||||
GENERATED_SOURCES=generated/*.cs
|
GENERATED_SOURCES=generated/*.cs
|
||||||
AC_PATH_PROG(RUNTIME, mono, no)
|
AC_PATH_PROG(RUNTIME, mono, no)
|
||||||
|
|
||||||
#libmono and glib required for gui-thread-check profiler module
|
# libmono and glib required for gui-thread-check profiler module
|
||||||
PKG_CHECK_MODULES(PROFILER, mono-2 glib-2.0)
|
PKG_CHECK_MODULES(PROFILER, mono-2 glib-2.0)
|
||||||
AM_CONDITIONAL(ENABLE_THREADCHECK, true)
|
AM_CONDITIONAL(ENABLE_THREADCHECK, true)
|
||||||
|
|
||||||
|
@ -136,25 +136,23 @@ if test "x$SDCHECK" = "xSystem.Drawing"; then
|
||||||
else
|
else
|
||||||
enable_dotnet=no
|
enable_dotnet=no
|
||||||
fi
|
fi
|
||||||
|
dnl End of has_mono = true
|
||||||
else
|
else
|
||||||
|
dnl Check for .NET Framework
|
||||||
AC_PATH_PROG(CSC, csc.exe, no)
|
AC_PATH_PROG(CSC, csc.exe, no)
|
||||||
GACUTIL_FLAGS=
|
GACUTIL_FLAGS=
|
||||||
GENERATED_SOURCES=generated\\\\*.cs
|
GENERATED_SOURCES=generated\\\\*.cs
|
||||||
AM_CONDITIONAL(ENABLE_THREADCHECK, false)
|
AM_CONDITIONAL(ENABLE_THREADCHECK, false)
|
||||||
enable_dotnet=yes
|
enable_dotnet=yes
|
||||||
|
|
||||||
if test x$CSC = "xno"; then
|
|
||||||
AC_MSG_ERROR([You need to install either mono (>=$MONO_REQUIRED_VERSION) or .Net])
|
|
||||||
else
|
|
||||||
RUNTIME=
|
RUNTIME=
|
||||||
LIB_PREFIX=
|
LIB_PREFIX=
|
||||||
LIB_SUFFIX=.dylib
|
LIB_SUFFIX=.dylib
|
||||||
fi
|
fi
|
||||||
fi
|
|
||||||
|
|
||||||
CS="C#"
|
CS="C#"
|
||||||
if test "x$CSC" = "xno" ; then
|
if test "x$CSC" = "xno" ; then
|
||||||
AC_MSG_ERROR([No $CS compiler found])
|
AC_MSG_ERROR([No $CS compiler found. You need to install either mono (>=$MONO_REQUIRED_VERSION) or .Net])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
AC_SUBST(RUNTIME)
|
AC_SUBST(RUNTIME)
|
||||||
|
|
Loading…
Reference in a new issue