This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH: Libjava is broken again
Paolo Bonzini writes:
>
> > The patch looks ok: prefer GCJ, as done in classpath/{lib,tools}/Makefile.am.
>
> The patch H.J. posted fully disables ecj, what you want is probably
> along this lines instead:
>
> if test "x${GCJ}" = x && test "x${JIKES}" = x && \
> test "x${ECJ}" = x && test "x${JAVAC}" = x && \
> test "x${user_specified_javac}" != xkjc; then
currently bootstrapping with the proposed change.
> possibly with a different error message soon after. (What is kjc by the
> way?...)
To be honest, I don't know. Taken unmodified from classpath.
Matthias
ChangeLog.gcj:
2007-06-04 Matthias Klose <doko@ubuntu.com>
* m4/acinclude.m4: Accept GCJ and JIKES.
* configure: Regenerate.
Index: m4/acinclude.m4
===================================================================
--- m4/acinclude.m4 (revision 125309)
+++ m4/acinclude.m4 (working copy)
@@ -24,10 +24,13 @@
fi
AM_CONDITIONAL(FOUND_KJC, test "x${user_specified_javac}" = xkjc)
-dnl if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${user_specified_javac}" != xkjc; then
- if test "x${ECJ}" = x && test "x${JAVAC}" = x && test "x${user_specified_javac}" != xecj; then
+ ## GCJ LOCAL
+ if test "x${GCJ}" = x && test "x${JIKES}" = x && test "x${ECJ}" = x \
+ && test "x${JAVAC}" = x && test "x${user_specified_javac}" != xkjc
+ then
AC_MSG_ERROR([cannot find javac, try --with-ecj])
fi
+ ## END GCJ LOCAL
])
dnl -----------------------------------------------------------