From 6d2e95a276cc2551b0c3fca8bfcf435b48972075 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 4 Dec 2001 17:12:40 +0000 Subject: [PATCH] Add a javac check to exclude buggy KOPI versions shipped with RedHat 7.2. --- m4/ChangeLog | 6 ++++++ m4/javacomp.m4 | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/m4/ChangeLog b/m4/ChangeLog index 37e851a63..5770237a0 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,9 @@ +2001-12-04 Bruno Haible + + * javacomp.m4 (gt_JAVACOMP): Exclude at.dms.kjc.Main (KOPI) versions + released in 2000, because they can't compile intl-java. Version 1.4F + [May 2000] is buggy, version 1.5B [August 2001] is OK. + 2001-11-25 Bruno Haible * gettext.m4 (AM_PO_SUBDIRS): Also substitute UPDATEPOFILES and diff --git a/m4/javacomp.m4 b/m4/javacomp.m4 index 511dea1ec..732641a57 100644 --- a/m4/javacomp.m4 +++ b/m4/javacomp.m4 @@ -30,7 +30,8 @@ AC_DEFUN([gt_JAVACOMP], ac_result="gcj -C" else if test -n "$HAVE_JAVAC_IN_PATH" \ - && (javac -version >/dev/null 2>/dev/null || test $? -le 2); then + && (javac -version >/dev/null 2>/dev/null || test $? -le 2) \ + && (if javac -help 2>&1 >/dev/null | grep at.dms.kjc.Main >/dev/null && javac -help 2>/dev/null | grep 'released.*2000' >/dev/null ; then exit 1; else exit 0; fi); then HAVE_JAVAC=1 ac_result="javac" else -- 2.47.3