Wed Jan 15 16:02:34 CET 2003 Paolo Molaro <lupus@ximian.com>
authorPaolo Molaro <lupus@oddwiz.org>
Wed, 15 Jan 2003 15:05:13 +0000 (15:05 -0000)
committerPaolo Molaro <lupus@oddwiz.org>
Wed, 15 Jan 2003 15:05:13 +0000 (15:05 -0000)
Define the correct runtime depending on the availability of the jit
(from Benjamin Reed).

svn path=/trunk/mono/; revision=10541

scripts/Makefile.am
scripts/mcs.in

index e43f643e44540a9419f21fc6d48a66333a5502d4..83adcebc03f016aeb44d6141bf7a804ba267772f 100644 (file)
@@ -4,6 +4,12 @@ bin_SCRIPTS = mcs
 
 CLEANFILES = mcs
 
+if X86
+MONO_INTERP = mono
+else
+MONO_INTERP = mint
+endif
+
 mcs: mcs.in
-       sed -e 's^\@bindir\@^$(bindir)^g' < $(srcdir)/mcs.in > mcs.tmp \
+       sed -e 's^\@bindir\@^$(bindir)^g' -e 's^\@mono_interp\@^$(MONO_INTERP)^g' < $(srcdir)/mcs.in > mcs.tmp \
        && mv mcs.tmp mcs 
index 2528d81d52d6fbfcf38db7ab09ff4bf898a8555a..87f82dfeee1f084cabe58c975fcd2e1968bbbef9 100644 (file)
@@ -1,2 +1,2 @@
 #!/bin/sh
-@bindir@/mono @bindir@/mcs.exe "$@"
+@bindir@/@mono_interp@ @bindir@/mcs.exe "$@"