]> Savannah Git Hosting - gnulib.git/commitdiff
javaexec-script: Remove support for 'gij'.
authorBruno Haible <bruno@clisp.org>
Fri, 9 Jun 2023 13:14:52 +0000 (15:14 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 9 Jun 2023 13:14:52 +0000 (15:14 +0200)
* build-aux/javaexec.sh.in: Don't test HAVE_GIJ.
* m4/javaexec.m4 (gt_JAVAEXEC): Don't set HAVE_GIJ. Don't set CONF_JAVA
to 'gij'.
* m4/javacomp.m4: Update comment.

ChangeLog
build-aux/javaexec.sh.in
m4/javacomp.m4
m4/javaexec.m4

index 40ab73d0e26ca680c47d89d79120d55e78e93f36..b67a5dcf1ed72e5444d9fa85f91d96ae5298b1f9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2023-06-09  Bruno Haible  <bruno@clisp.org>
+
+       javaexec-script: Remove support for 'gij'.
+       * build-aux/javaexec.sh.in: Don't test HAVE_GIJ.
+       * m4/javaexec.m4 (gt_JAVAEXEC): Don't set HAVE_GIJ. Don't set CONF_JAVA
+       to 'gij'.
+       * m4/javacomp.m4: Update comment.
+
 2023-06-09  Bruno Haible  <bruno@clisp.org>
 
        javaexec: Remove support for 'jview'.
index 370dcad3c0b4c9d454fd5cdd9c3a7968eace5e1c..f570cc751148a55c65363dd10a9c7604640ffe63 100644 (file)
@@ -41,24 +41,18 @@ if test -n "@HAVE_JAVA_ENVVAR@"; then
 else
   unset JAVA_HOME
   export CLASSPATH
-  if test -n "@HAVE_GIJ@"; then
-    # In this case, $CONF_JAVA is "gij".
+  if test -n "@HAVE_JAVA@"; then
+    # In this case, $CONF_JAVA is "java".
     test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@"
     exec $CONF_JAVA "$@"
   else
-    if test -n "@HAVE_JAVA@"; then
-      # In this case, $CONF_JAVA is "java".
+    if test -n "@HAVE_JRE@"; then
+      # In this case, $CONF_JAVA is "jre".
       test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@"
       exec $CONF_JAVA "$@"
     else
-      if test -n "@HAVE_JRE@"; then
-        # In this case, $CONF_JAVA is "jre".
-        test -z "$JAVA_VERBOSE" || echo "$CONF_JAVA $@"
-        exec $CONF_JAVA "$@"
-      else
-        echo 'Java virtual machine not found, try installing gij or set $JAVA, then reconfigure' 1>&2
-        exit 1
-      fi
+      echo 'Java virtual machine not found, try setting $JAVA, then reconfigure' 1>&2
+      exit 1
     fi
   fi
 fi
index 6980fd6b350a20e66bd0f1cc3879a0efebb1456a..c799bc67cc3ac3118b0270af410e3c6f24463e23 100644 (file)
@@ -1,4 +1,4 @@
-# javacomp.m4 serial 20
+# javacomp.m4 serial 21
 dnl Copyright (C) 2001-2003, 2006-2007, 2009-2023 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -45,20 +45,16 @@ dnl with or without modifications, as long as this notice is preserved.
 #      target-version   for JVM
 #           1.1         JDK 1.1
 #           1.2         JDK/JRE 1.2
-#           1.3         JDK/JRE 1.3, gij 3.3, 3.4
-#           1.4         JDK/JRE 1.4, gij 4.0 ... 4.2
-#           1.5         JDK/JRE 5, gij 4.3 ... 6
+#           1.3         JDK/JRE 1.3
+#           1.4         JDK/JRE 1.4
+#           1.5         JDK/JRE 5
 #           1.6         JDK/JRE 6
 #           1.7         JDK/JRE 7
 #           1.8         JDK/JRE 8
 #           9           JDK/JRE 9
 #          10           JDK/JRE 10
 #          11           JDK/JRE 11
-# Note: gij >= 3.3 can in some cases handle classes compiled with -target 1.4,
-# and gij >= 4.1 can in some cases partially handle classes compiled with
-# -target 1.5, but I have no idea how complete this support is. Similarly,
-# gcj >= 4.3 supports -ftarget=1.6, and gij >= 4.3 can in some cases handle
-# classes compiled with -target 1.6.
+# Note: gcj >= 4.3 supports -ftarget=1.6.
 #
 # Specifying target-version is useful when building a library (.jar) that is
 # useful outside the given package. Omitting target-version is useful when
index 316b9e6fb1f0bac2c3c2ed4da0da1ebace0475a4..ede8436941fa7bb2a1a5b88a87d47960fd9587e6 100644 (file)
@@ -1,4 +1,4 @@
-# javaexec.m4 serial 9
+# javaexec.m4 serial 10
 dnl Copyright (C) 2001-2003, 2006, 2009-2023 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -18,7 +18,6 @@ AC_DEFUN([gt_JAVAEXEC],
 ], CLASSPATH_SEPARATOR=';', CLASSPATH_SEPARATOR=':')
   CONF_JAVA=
   HAVE_JAVA_ENVVAR=
-  HAVE_GIJ=
   HAVE_JAVA=
   HAVE_JRE=
   HAVE_JAVAEXEC=1
@@ -29,7 +28,6 @@ AC_DEFUN([gt_JAVAEXEC],
     pushdef([AC_MSG_CHECKING],[:])dnl
     pushdef([AC_CHECKING],[:])dnl
     pushdef([AC_MSG_RESULT],[:])dnl
-    AC_CHECK_PROG([HAVE_GIJ_IN_PATH], [gij], [yes])
     AC_CHECK_PROG([HAVE_JAVA_IN_PATH], [java], [yes])
     AC_CHECK_PROG([HAVE_JRE_IN_PATH], [jre], [yes])
     popdef([AC_MSG_RESULT])dnl
@@ -40,35 +38,25 @@ AC_DEFUN([gt_JAVAEXEC],
       CLASSPATH="$2"${CLASSPATH+"$CLASSPATH_SEPARATOR$CLASSPATH"}
       ])
     export CLASSPATH
-    if test -n "$HAVE_GIJ_IN_PATH" \
-       && gij --version >/dev/null 2>/dev/null \
+    if test -n "$HAVE_JAVA_IN_PATH" \
+       && java -version >/dev/null 2>/dev/null \
        m4_if([$1], , , [&& {
-         echo "$as_me:__oline__: gij $1" >&AS_MESSAGE_LOG_FD
-         gij $1 >&AS_MESSAGE_LOG_FD 2>&1
+         echo "$as_me:__oline__: java $1" >&AS_MESSAGE_LOG_FD
+         java $1 >&AS_MESSAGE_LOG_FD 2>&1
        }]); then
-      HAVE_GIJ=1
-      CONF_JAVA="gij"
+      HAVE_JAVA=1
+      CONF_JAVA="java"
     else
-      if test -n "$HAVE_JAVA_IN_PATH" \
-         && java -version >/dev/null 2>/dev/null \
+      if test -n "$HAVE_JRE_IN_PATH" \
+         && (jre >/dev/null 2>/dev/null || test $? = 1) \
          m4_if([$1], , , [&& {
-           echo "$as_me:__oline__: gij $1" >&AS_MESSAGE_LOG_FD
-           java $1 >&AS_MESSAGE_LOG_FD 2>&1
+           echo "$as_me:__oline__: jre $1" >&AS_MESSAGE_LOG_FD
+           jre $1 >&AS_MESSAGE_LOG_FD 2>&1
          }]); then
-        HAVE_JAVA=1
-        CONF_JAVA="java"
+        HAVE_JRE=1
+        CONF_JAVA="jre"
       else
-        if test -n "$HAVE_JRE_IN_PATH" \
-           && (jre >/dev/null 2>/dev/null || test $? = 1) \
-           m4_if([$1], , , [&& {
-             echo "$as_me:__oline__: gij $1" >&AS_MESSAGE_LOG_FD
-             jre $1 >&AS_MESSAGE_LOG_FD 2>&1
-           }]); then
-          HAVE_JRE=1
-          CONF_JAVA="jre"
-        else
-          HAVE_JAVAEXEC=
-        fi
+        HAVE_JAVAEXEC=
       fi
     fi
     m4_if([$1], , , [
@@ -85,7 +73,6 @@ AC_DEFUN([gt_JAVAEXEC],
   AC_SUBST([CLASSPATH])
   AC_SUBST([CLASSPATH_SEPARATOR])
   AC_SUBST([HAVE_JAVA_ENVVAR])
-  AC_SUBST([HAVE_GIJ])
   AC_SUBST([HAVE_JAVA])
   AC_SUBST([HAVE_JRE])
 ])
@@ -95,12 +82,10 @@ AC_DEFUN([gt_JAVAEXEC_DISABLED],
 [
   CONF_JAVA=
   HAVE_JAVA_ENVVAR=
-  HAVE_GIJ=
   HAVE_JAVA=
   HAVE_JRE=
   AC_SUBST([CONF_JAVA])
   AC_SUBST([HAVE_JAVA_ENVVAR])
-  AC_SUBST([HAVE_GIJ])
   AC_SUBST([HAVE_JAVA])
   AC_SUBST([HAVE_JRE])
 ])