mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 18:22:23 +00:00
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:
parent
aa9a44aef7
commit
41af404c11
1 changed files with 2 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue