[PATCH] Use Jikes as default compiler rather than Pizza.

Niels Kristian Bech Jensen nkbj at image.dk
Tue Apr 20 02:21:41 PDT 1999


Hi,
This patch makes kaffe/scripts/compat/javac.in use Jikes rather than Pizza
as the default compiler if Jikes is installed somewhere in the PATH:

diff -urN kaffe-1.0b4.orig/kaffe/scripts/compat/javac.in kaffe-1.0b4/kaffe/scripts/compat/javac.in
--- kaffe-1.0b4.orig/kaffe/scripts/compat/javac.in	Sat Feb 20 22:51:13 1999
+++ kaffe-1.0b4/kaffe/scripts/compat/javac.in	Tue Apr 20 10:41:46 1999
@@ -1,6 +1,12 @@
 #! /bin/sh
-# We use Pizza compiler rather than Sun's.
+# We use one of the Jikes or Pizza compilers rather than Sun's.
 prefix=@prefix@
 exec_prefix=@exec_prefix@
-exec @bindir@/@kaffe_TRANSF@ pizza.compiler.Main ${1+"$@"}
+JIKES="`type -path jikes`"
+if [ -n "$JIKES" ]; then
+  export JIKESPATH=@datadir@/kaffe/Klasses.jar
+  exec $JIKES ${1+"$@"}
+else
+  exec @bindir@/@kaffe_TRANSF@ pizza.compiler.Main ${1+"$@"}
+fi
 

-- 
Niels Kristian Bech Jensen -- nkbj at image.dk -- http://www.image.dk/~nkbj/

----------->>  Stop software piracy --- use free software!  <<-----------


More information about the kaffe mailing list