* javacomp-script, javaexec-script: Add support for disabling Java
@ 2022-06-20 5:54 Bruno Haible
0 siblings, 0 replies; only message in thread
From: Bruno Haible @ 2022-06-20 5:54 UTC (permalink / raw
To: bug-gnulib
GNU gettext has a configure option --disable-java. This patch adds two dummy
autoconf macros, for implementing this option better.
2022-06-20 Bruno Haible <bruno@clisp.org>
javacomp-script, javaexec-script: Add support for disabling Java.
* m4/javacomp.m4 (gt_JAVACOMP_DISABLED): New macro.
* m4/javaexec.m4 (gt_JAVAEXEC_DISABLED): New macro.
diff --git a/m4/javacomp.m4 b/m4/javacomp.m4
index 1fd7589f5d..396e0866ed 100644
--- a/m4/javacomp.m4
+++ b/m4/javacomp.m4
@@ -1,4 +1,4 @@
-# javacomp.m4 serial 18
+# javacomp.m4 serial 19
dnl Copyright (C) 2001-2003, 2006-2007, 2009-2022 Free Software Foundation,
dnl Inc.
dnl This file is free software; the Free Software Foundation
@@ -736,3 +736,18 @@ changequote([,])dnl
AC_SUBST([HAVE_JAVAC])
AC_SUBST([HAVE_JIKES])
])
+
+# Simulates gt_JAVACOMP when no Java support is desired.
+AC_DEFUN([gt_JAVACOMP_DISABLED],
+[
+ CONF_JAVAC=
+ HAVE_JAVAC_ENVVAR=
+ HAVE_GCJ_C=
+ HAVE_JAVAC=
+ HAVE_JIKES=
+ AC_SUBST([CONF_JAVAC])
+ AC_SUBST([HAVE_JAVAC_ENVVAR])
+ AC_SUBST([HAVE_GCJ_C])
+ AC_SUBST([HAVE_JAVAC])
+ AC_SUBST([HAVE_JIKES])
+])
diff --git a/m4/javaexec.m4 b/m4/javaexec.m4
index 6ed7f64993..960a15e4c6 100644
--- a/m4/javaexec.m4
+++ b/m4/javaexec.m4
@@ -1,4 +1,4 @@
-# javaexec.m4 serial 7
+# javaexec.m4 serial 8
dnl Copyright (C) 2001-2003, 2006, 2009-2022 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -102,3 +102,20 @@ AC_DEFUN([gt_JAVAEXEC],
AC_SUBST([HAVE_JRE])
AC_SUBST([HAVE_JVIEW])
])
+
+# Simulates gt_JAVAEXEC when no Java support is desired.
+AC_DEFUN([gt_JAVAEXEC_DISABLED],
+[
+ CONF_JAVA=
+ HAVE_JAVA_ENVVAR=
+ HAVE_GIJ=
+ HAVE_JAVA=
+ HAVE_JRE=
+ HAVE_JVIEW=
+ AC_SUBST([CONF_JAVA])
+ AC_SUBST([HAVE_JAVA_ENVVAR])
+ AC_SUBST([HAVE_GIJ])
+ AC_SUBST([HAVE_JAVA])
+ AC_SUBST([HAVE_JRE])
+ AC_SUBST([HAVE_JVIEW])
+])
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-06-20 5:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-20 5:54 javacomp-script, javaexec-script: Add support for disabling Java Bruno Haible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).