This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Disabling Java by default


Bryce McKinlay wrote:

> I suggest that we change configure so that Java support is only built
> when
> "--enable-languages=java" is explicitly specified. That is, it is not
> part of the default set of languages which are built if the
> "--enable-languages" configure command is not given. This way, those who
> don't care about Java don't have to be bothered by it, but those that do
> want it don't have to follow elaborate instructions in order to get it.

Here is a patch to do that. Now, neither the front-end nor the runtime will
be built unless "--enable-languages=java" is explicitly given to configure.

It also removes libgcj from the noconfigdirs on several platforms that we
ought to build on. Wishful thinking perhaps, but this will make life a
little easier for those who want to fix up the ports, and, given the above,
won't affect those who don't. Actually, I'm tempted to remove libgcj from
all the target noconfigdirs?

regards

  [ bryce ]


2001-01-23  Bryce McKinlay  <bryce@albatross.co.nz>

	* config-lang.in: Disable java by default.

2001-01-23  Bryce McKinlay  <bryce@albatross.co.nz>

	* configure.in: Enable libgcj on several additional platforms.


Index: gcc/java/config-lang.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/config-lang.in,v
retrieving revision 1.6
diff -u -r1.6 config-lang.in
--- config-lang.in	2000/12/15 09:51:52	1.6
+++ config-lang.in	2001/01/23 11:29:58
@@ -39,3 +39,4 @@
 
 target_libs=${libgcj}
 lang_dirs=fastjar
+build_by_default=no

Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/configure.in,v
retrieving revision 1.85
diff -u -r1.85 configure.in
--- configure.in	2001/01/22 01:47:11	1.85
+++ configure.in	2001/01/23 11:29:59
@@ -726,7 +726,7 @@
 	"" | cc*) noconfigdirs="$noconfigdirs emacs emacs19" ;;
         *) ;;
     esac
-    noconfigdirs="$noconfigdirs ld shellutils ${libgcj}"
+    noconfigdirs="$noconfigdirs ld shellutils"
     ;;
   ia64*-*-elf*)
     # No gdb support yet.
@@ -744,7 +744,7 @@
     ;;
   i[3456]86-*-mingw32*)
     target_configdirs="$target_configdirs target-mingw"
-    noconfigdirs="$noconfigdirs expect target-libgloss ${libgcj}"
+    noconfigdirs="$noconfigdirs expect target-libgloss"
 
     # Can't build gdb for mingw32 if not native.
     case "${host}" in
@@ -755,7 +755,7 @@
     ;;    
   *-*-cygwin*)
     target_configdirs="$target_configdirs target-libtermcap target-winsup"
-    noconfigdirs="$noconfigdirs target-gperf target-libgloss ${libgcj}"
+    noconfigdirs="$noconfigdirs target-gperf target-libgloss"
     # always build newlib.
     skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
 
@@ -778,7 +778,7 @@
     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
     ;;
   i[3456]86-*-solaris2*)
-    noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
+    noconfigdirs="$noconfigdirs target-libgloss"
     ;;
   i[3456]86-*-sysv4*)
     # The SYSV4 C compiler doesn't handle Emacs correctly
@@ -790,7 +790,7 @@
     noconfigdirs="$noconfigdirs emacs emacs19 target-libgloss ${libgcj}"
     ;;
   i[3456]86-*-beos*)
-     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
+     noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
      ;;
   m68k-*-elf*)
     noconfigdirs="${libgcj}"
@@ -870,7 +870,7 @@
   mips*-*-irix6*)
     # The GNU assembler does not support IRIX 6.
     # emacs is emacs 18, which does not work on Irix 5 (emacs19 does work)
-    noconfigdirs="$noconfigdirs gas gprof emacs target-libgloss ${libgcj}"
+    noconfigdirs="$noconfigdirs gas gprof emacs target-libgloss"
     ;;
   mips*-dec-bsd*)
     noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
@@ -898,7 +898,6 @@
     noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
     ;;
   sparc-*-elf*)
-    noconfigdirs="${libgcj}"
     if [ x${is_cross_compiler} != xno ] ; then
 	   target_configdirs="${target_configdirs} target-libstub target-cygmon"
     fi
@@ -907,7 +906,6 @@
     if [ x${is_cross_compiler} != xno ] ; then
 	   target_configdirs="${target_configdirs} target-libstub target-cygmon"
     fi
-    noconfigdirs="${libgcj}"
     ;;
   sparclite-*-*)
     if [ x${is_cross_compiler} != xno ] ; then

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]