This patch continues cleaning up the toplevel configure.ac, in particular
as regards cases handling GCC libraries for targets where GCC is no longer
(or never was) supported.
The principle there, as discussed for the original deprecated targets
removal patch, is that in the absence of GCC support for a target it
doesn't matter exactly how toplevel is configured to build GCC libraries
(or other GCC-related directories) for that target - builds will and
should fail if GCC is included in the source tree - so toplevel
configure.ac should be set up for maximal simplicity. In most cases that
means no explicit mention of GCC libraries for such a target; in some
cases it means removing the target entry altogether so that another case
becomes active instead (possibly the *-*-* case that disables libgcj
only).
In general cases just disabling libgcj are redundant with the *-*-* case
unless they prevent some other case being active for the target, and so
are removed. There were also a couple of removed cases for targets with
no support in GCC or src at all (romp-*-*, vax-*-vms) - if there's no
support in GCC or src, it's right that a build should fail trying to build
whatever sources you have there, and silly for toplevel to try disabling
everything because nothing is supported.
Other cleanups here: noconfigdirs=$noconfigdirs is completely useless
and was removed; c54x*-*-* is always mapped to tic54x-*-* by config.sub so
that case can be simplified; cris*-*-none acts just like cris*-*-elf in
config.gcc so it's appropriate to make the * subcase of cris*-*-* act
like the -elf case; mmix-*-* disabled libgloss, i.e. libgloss for the
host, which is never built anyway.
OK to commit?
2011-03-29 Joseph Myers jos...@codesourcery.com
* configure.ac (*-*-chorusos): Don't disable libgcj.
(*-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*):
Remove case.
(*-*-kaos*): Don't disable GCC libraries, zlib or fastjar.
(arm-*-coff): Don't disable libgcj.
(arm*-*-linux-gnueabi): Remove useless assignment.
(arm-*-riscix*): Don't disable libgcj.
(bfin-*-*): Don't enable target-bsp and target-cygmon depending on
configuration.
(c4x-*-* | tic4x-*-*): Don't disable GCC libraries.
(c54x*-*-*): Remove case.
(tic54x-*-*): Don't disable GCC or GCC libraries.
(cris-*-* | crisv32-*-*): Don't handle *-*-aout. Change *-*-elf
to *.
(d10v-*-*): Don't disable GCC libraries.
(d30v-*-*): Don't disable libgcj.
(h8500-*-*): Don't disable GCC libraries.
(i960-*-*): Don't disable libgcj.
(i[[3456789]]86-*-linux*): Don't handle *-*-*libc1*.
(i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*,
i[[3456789]]86-*-sysv4*, i[[3456789]]86-*-beos*): Don't disable
libgcj.
(m68k-*-coff*): Remove case.
(mmix-*-*): Don't disable libgloss on host.
(mn10200-*-*, mn10300-*-*): Remove cases.
(powerpc*-*-winnt* | powerpc*-*-pe*, powerpcle-*-solaris*,
powerpc-*-beos*, m68k-apollo-*, mips*-*-irix5*, mips*-*-bsd*):
Don't disable libgcj.
(romp-*-*): Remove case.
(sparclite-*-*, sparc-*-sunos4*): Don't disable libgcj.
(sparc-*-solaris2.[[0-6]] | sparc-*-solaris2.[[0-6]].*): Remove
case.
(v810-*-*): Don't disable GCC libraries.
(v850*-*-*, vax-*-vms, xtensa*-*-*): Remove cases.
(ip2k-*-*): Don't disable GCC libraries.
* configure: Regenerate.
Index: configure.ac
===
--- configure.ac(revision 171675)
+++ configure.ac(working copy)
@@ -521,7 +521,7 @@
case ${target} in
*-*-chorusos)
-noconfigdirs=$noconfigdirs target-newlib target-libgloss ${libgcj}
+noconfigdirs=$noconfigdirs target-newlib target-libgloss
;;
powerpc-*-darwin*)
noconfigdirs=$noconfigdirs ld gas gdb gprof
@@ -543,9 +543,6 @@
*-*-dragonfly*)
noconfigdirs=$noconfigdirs target-newlib target-libgloss
;;
- *-*-freebsd[[12]] | *-*-freebsd[[12]].* | *-*-freebsd*aout*)
-noconfigdirs=$noconfigdirs target-newlib target-libgloss ${libgcj}
-;;
*-*-freebsd*)
noconfigdirs=$noconfigdirs target-newlib target-libgloss
if test x$with_gmp = x test x$with_gmp_dir = x \
@@ -565,9 +562,7 @@
;;
*-*-kaos*)
# Remove unsupported stuff on all kaOS configurations.
-skipdirs=target-libiberty ${libgcj} target-libstdc++-v3
-skipdirs=$skipdirs target-libobjc
-skipdirs=$skipdirs zlib fastjar target-libjava target-boehm-gc
target-zlib
+skipdirs=target-libiberty
noconfigdirs=$noconfigdirs target-libgloss
;;
*-*-netbsd*)
@@ -636,7 +631,6 @@
noconfigdirs=$noconfigdirs target-libgloss
;;
arm-*-coff)
-noconfigdirs=$noconfigdirs ${libgcj}
libgloss_dir=arm
;;
arm-*-elf* | arm*-*-eabi* )
@@ -644,7 +638,6 @@