Only check for mono and set $(MONO) if we're building with mono

For MS .NET $(MONO) will be set to nothing because .exe files
can be executed directly there.
This commit is contained in:
Sebastian Dröge 2009-09-04 06:57:03 +02:00
parent aa9a44aef7
commit 41af404c11

View file

@ -17,16 +17,13 @@ AC_SUBST(PACKAGE_VERSION)
MONO_REQUIRED_VERSION=2.4
AC_SUBST(MONO_REQUIRED_VERSION)
PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
AC_PATH_PROG(MONO, mono, no)
AC_SUBST(MONO)
AM_PROG_LIBTOOL
if test "x$has_mono" = "xtrue"; then
GACUTIL_FLAGS='/package $(PACKAGE_VERSION) /gacdir $(libdir) /root $(DESTDIR)/$(libdir)'
GENERATED_SOURCES=generated/*.cs
AC_PATH_PROG(RUNTIME, mono, no)
AC_PATH_PROG(MONO, mono, no)
AC_PATH_PROG(CSC, gmcs, no)
if test `uname -s` = "Darwin"; then
LIB_PREFIX=
@ -49,6 +46,7 @@ else
fi
fi
AM_CONDITIONAL(USE_MONO_COMPILER, test "x$has_mono" = "xtrue")
AC_SUBST(MONO)
CS="C#"
if test "x$CSC" = "xno" ; then