diff options
author | Dalibor Topic <robilad@yahoo.com> | 2005-12-13 01:20:29 +0000 |
---|---|---|
committer | Dalibor Topic <robilad@yahoo.com> | 2005-12-13 01:20:29 +0000 |
commit | 7b6d3a822c08334d3664194a3be166758c3727a7 (patch) | |
tree | 7dbd32abda03043df776c5a3bcfe284847caac2b /m4 | |
parent | 1d7d208c7f45fd9bfdbba5c5928cdc2e0a79b527 (diff) | |
download | classpath-7b6d3a822c08334d3664194a3be166758c3727a7.tar.gz |
Build breakage fix for jikes 1.19
2005-12-12 Dalibor Topic <robilad@kaffe.org>
Fixes bug #25353
* m4/acinclude.m4: Added JIKESWARNINGS makefile variable.
Only add +Pno-shadow to JIKESWARNINGS if not using jikes 1.19.
* lib/Makefile.am: Use JIKESWARNINGS instead of explicitely
listing the warnings.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/acinclude.m4 | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/m4/acinclude.m4 b/m4/acinclude.m4 index e41321f89..96af881d5 100644 --- a/m4/acinclude.m4 +++ b/m4/acinclude.m4 @@ -135,9 +135,18 @@ AC_DEFUN([CLASSPATH_CHECK_JIKES], JIKESENCODING= if test -n "`$JIKES --help 2>&1 | grep encoding`"; then - JIKESENCODING='-encoding UTF-8' + JIKESENCODING='-encoding UTF-8' fi AC_SUBST(JIKESENCODING) + + JIKESWARNINGS="+Pno-switchcheck" + if test "x$JIKES_VERSION_MAJOR" = x"1" ; then + if ! test "x$JIKES_VERSION_MINOR" = x"19"; then + JIKESWARNINGS="$JIKESWARNINGS +Pno-shadow" + fi + fi + AC_SUBST(JIKESWARNINGS) + fi ]) |