From: Joseph Myers Date: Thu, 28 Apr 2011 13:28:28 +0000 (+0100) Subject: configure.ac: Disable Java for targets not supporting libffi. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=80f81134d72f538c54e223e0dd1d607deda797c5;p=gcc.git configure.ac: Disable Java for targets not supporting libffi. * configure.ac: Disable Java for targets not supporting libffi. (*-*-chorusos, *-*-kaos*, am33_2.0-*-linux*, sh*-*-pe|mips*-*-pe): Remove cases in Java-disabling statement. (*arm-wince-pe): Change to arm-wince-pe. (arc-*-*, arm-*-coff, arm-*-pe*, arm-*-riscix*, avr-*-*): Remove cases in Java-disabling statement. (bfin-*-*): Don't disable Java again. (c4x-*-* | tic4x-*-*, tic54x-*-*, cr16-*-*, d10v-*-*, d30v-*-*, fr30-*-elf*, moxie-*-*, h8300*-*-*, h8500-*-*, hppa1.1-*-osf* | hppa1.1-*-bsd*, hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-openbsd*, hppa*-*-pro*, i960-*-*, i[[3456789]]86-*-coff, i[[3456789]]86-*-pe, i[[3456789]]86-*-sco3.2v5*, i[[3456789]]86-*-sco*, i[[3456789]]86-*-sysv4*, i[[3456789]]86-*-beos*, i[[3456789]]86-*-rdos*, m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*): Remove cases in Java-disabling statement. (mmix-*-*): Don't disable Java again. (mt-*-*, powerpc*-*-winnt* | powerpc*-*-pe*, powerpcle-*-solaris*, powerpc-*-beos*, rs6000-*-lynxos*, rs6000-*-*, m68k-apollo-*, microblaze*, mips*-sde-elf*, mips*-*-irix5*, mips*-*-bsd*, sparclet-*-aout* | sparc86x-*-*, sparclite-*-*, sparc-*-sunos4*, tic6x-*-*, v810-*-*, vax-*-*): Remove cases in Java-disabling statement. * configure: Regenerate. From-SVN: r173069 --- diff --git a/ChangeLog b/ChangeLog index 55670be3937..0bf6c6e9e4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,30 @@ +2011-04-28 Joseph Myers + + * configure.ac: Disable Java for targets not supporting libffi. + (*-*-chorusos, *-*-kaos*, am33_2.0-*-linux*, sh*-*-pe|mips*-*-pe): + Remove cases in Java-disabling statement. + (*arm-wince-pe): Change to arm-wince-pe. + (arc-*-*, arm-*-coff, arm-*-pe*, arm-*-riscix*, avr-*-*): Remove + cases in Java-disabling statement. + (bfin-*-*): Don't disable Java again. + (c4x-*-* | tic4x-*-*, tic54x-*-*, cr16-*-*, d10v-*-*, d30v-*-*, + fr30-*-elf*, moxie-*-*, h8300*-*-*, h8500-*-*, hppa1.1-*-osf* | + hppa1.1-*-bsd*, hppa*-*-*elf* | hppa*-*-lites* | hppa*-*-openbsd*, + hppa*-*-pro*, i960-*-*, i[[3456789]]86-*-coff, + i[[3456789]]86-*-pe, i[[3456789]]86-*-sco3.2v5*, + i[[3456789]]86-*-sco*, i[[3456789]]86-*-sysv4*, + i[[3456789]]86-*-beos*, i[[3456789]]86-*-rdos*, + m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*): Remove cases in + Java-disabling statement. + (mmix-*-*): Don't disable Java again. + (mt-*-*, powerpc*-*-winnt* | powerpc*-*-pe*, powerpcle-*-solaris*, + powerpc-*-beos*, rs6000-*-lynxos*, rs6000-*-*, m68k-apollo-*, + microblaze*, mips*-sde-elf*, mips*-*-irix5*, mips*-*-bsd*, + sparclet-*-aout* | sparc86x-*-*, sparclite-*-*, sparc-*-sunos4*, + tic6x-*-*, v810-*-*, vax-*-*): Remove cases in Java-disabling + statement. + * configure: Regenerate. + 2011-04-28 Joseph Myers * configure.ac: Separate cases disabling Java and Java libraries diff --git a/configure b/configure index 1bcc681562e..a2572a3449a 100755 --- a/configure +++ b/configure @@ -3111,10 +3111,61 @@ case "${target}" in ;; esac -# Disable Java, libgcj or related libraries for some systems. +# Disable Java if libffi is not supported. case "${target}" in - *-*-chorusos) + alpha*-*-*) + ;; + arm*-*-*) + ;; + cris-*-*) + ;; + frv-*-*) + ;; + hppa*-*-linux*) + ;; + hppa*-*-hpux*) + ;; + i?86-*-*) + ;; + ia64*-*-*) + ;; + m32r*-*-*) + ;; + m68k-*-*) + ;; + mips-sgi-irix6.* | mips*-*-rtems*) + ;; + mips*-*-linux*) + ;; + powerpc*-*-linux*) ;; + powerpc-*-darwin*) + ;; + powerpc-*-aix* | rs6000-*-aix*) + ;; + powerpc-*-freebsd*) + ;; + powerpc64-*-freebsd*) + ;; + powerpc*-*-rtems*) + ;; + s390-*-* | s390x-*-*) + ;; + sh-*-* | sh[34]*-*-*) + ;; + sh64-*-* | sh5*-*-*) + ;; + sparc*-*-*) + ;; + x86_64-*-*) + ;; + *-*-*) + unsupported_languages="$unsupported_languages java" + ;; +esac + +# Disable Java, libgcj or related libraries for some systems. +case "${target}" in powerpc-*-darwin*) ;; i[3456789]86-*-darwin*) @@ -3137,8 +3188,6 @@ case "${target}" in ;; esac ;; - *-*-kaos*) - ;; *-*-netbsd*) # Skip some stuff that's unsupported on some NetBSD configurations. case "${target}" in @@ -3174,19 +3223,12 @@ case "${target}" in alpha*-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - am33_2.0-*-linux*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; sh-*-linux*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - sh*-*-pe|mips*-*-pe|*arm-wince-pe) + arm-wince-pe) noconfigdirs="$noconfigdirs ${libgcj}" ;; - arc-*-*) - ;; - arm-*-coff) - ;; arm-*-elf* | arm*-*-eabi* ) noconfigdirs="$noconfigdirs target-libffi" ;; @@ -3195,25 +3237,9 @@ case "${target}" in arm*-*-symbianelf*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - arm-*-pe*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - arm-*-riscix*) - ;; - avr-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; bfin-*-*) - unsupported_languages="$unsupported_languages java" noconfigdirs="$noconfigdirs target-boehm-gc" ;; - c4x-*-* | tic4x-*-*) - ;; - tic54x-*-*) - ;; - cr16-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; cris-*-* | crisv32-*-*) unsupported_languages="$unsupported_languages java" case "${target}" in @@ -3223,26 +3249,9 @@ case "${target}" in noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; esac ;; - d10v-*-*) - ;; - d30v-*-*) - ;; - fr30-*-elf*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; frv-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - moxie-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - h8300*-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - h8500-*-*) - ;; - hppa1.1-*-osf* | hppa1.1-*-bsd* ) - ;; hppa*64*-*-linux*) # In this case, it's because the hppa64-linux target is for # the kernel only at this point and has no libc, and thus no @@ -3251,23 +3260,16 @@ case "${target}" in ;; hppa*-*-linux*) ;; - hppa*-*-*elf* | \ - hppa*-*-lites* | \ - hppa*-*-openbsd* | \ hppa*64*-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; hppa*-hp-hpux11*) ;; - hppa*-*-pro*) - ;; hppa*-*-*) # According to Alexandre Oliva , libjava won't # build on HP-UX 10.20. noconfigdirs="$noconfigdirs ${libgcj}" ;; - i960-*-*) - ;; ia64*-*-elf*) ;; ia64*-**-hpux*) @@ -3275,7 +3277,7 @@ case "${target}" in ia64*-*-*vms*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - i[3456789]86-*-coff | i[3456789]86-*-elf) + i[3456789]86-*-elf) noconfigdirs="$noconfigdirs ${libgcj}" ;; i[3456789]86-*-linux*) @@ -3293,25 +3295,11 @@ case "${target}" in ;; i[3456789]86-*-interix* ) ;; - i[3456789]86-*-pe) - ;; - i[3456789]86-*-sco3.2v5*) - ;; - i[3456789]86-*-sco*) - ;; i[3456789]86-*-solaris2*) ;; - i[3456789]86-*-sysv4*) - ;; - i[3456789]86-*-beos*) - ;; - i[3456789]86-*-rdos*) - ;; m32r-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) - ;; m68k-*-elf*) noconfigdirs="$noconfigdirs ${libgcj}" ;; @@ -3319,44 +3307,19 @@ case "${target}" in ;; mmix-*-*) noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" - unsupported_languages="$unsupported_languages java" - ;; - mt-*-*) ;; powerpc-*-aix*) # copied from rs6000-*-* entry noconfigdirs="$noconfigdirs ${libgcj}" ;; - powerpc*-*-winnt* | powerpc*-*-pe*) - ;; - powerpcle-*-solaris*) - ;; - powerpc-*-beos*) - ;; powerpc-*-eabi) noconfigdirs="$noconfigdirs ${libgcj}" ;; powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) ;; - rs6000-*-lynxos*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; rs6000-*-aix*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - rs6000-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - m68k-apollo-*) - ;; - microblaze*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - mips*-sde-elf*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - mips*-*-irix5*) - ;; mips*-*-irix6*) # Linking libjava exceeds command-line length limits on at least # IRIX 6.2, but not on IRIX 6.5. @@ -3364,8 +3327,6 @@ case "${target}" in # noconfigdirs="$noconfigdirs ${libgcj}" ;; - mips*-*-bsd*) - ;; mips*-*-linux*) ;; mips*-*-*) @@ -3374,28 +3335,14 @@ case "${target}" in sh-*-* | sh64-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - sparclet-*-aout* | sparc86x-*-*) - ;; sparc-*-elf*) noconfigdirs="$noconfigdirs ${libgcj}" ;; sparc64-*-elf*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - sparclite-*-*) - ;; - sparc-*-sunos4*) - ;; sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) ;; - tic6x-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - v810-*-*) - ;; - vax-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) ;; *-*-lynxos*) diff --git a/configure.ac b/configure.ac index 58fdd309ea3..f78e7201169 100644 --- a/configure.ac +++ b/configure.ac @@ -558,10 +558,61 @@ case "${target}" in ;; esac -# Disable Java, libgcj or related libraries for some systems. +# Disable Java if libffi is not supported. case "${target}" in - *-*-chorusos) + alpha*-*-*) + ;; + arm*-*-*) + ;; + cris-*-*) + ;; + frv-*-*) + ;; + hppa*-*-linux*) + ;; + hppa*-*-hpux*) + ;; + i?86-*-*) + ;; + ia64*-*-*) + ;; + m32r*-*-*) + ;; + m68k-*-*) + ;; + mips-sgi-irix6.* | mips*-*-rtems*) + ;; + mips*-*-linux*) + ;; + powerpc*-*-linux*) ;; + powerpc-*-darwin*) + ;; + powerpc-*-aix* | rs6000-*-aix*) + ;; + powerpc-*-freebsd*) + ;; + powerpc64-*-freebsd*) + ;; + powerpc*-*-rtems*) + ;; + s390-*-* | s390x-*-*) + ;; + sh-*-* | sh[[34]]*-*-*) + ;; + sh64-*-* | sh5*-*-*) + ;; + sparc*-*-*) + ;; + x86_64-*-*) + ;; + *-*-*) + unsupported_languages="$unsupported_languages java" + ;; +esac + +# Disable Java, libgcj or related libraries for some systems. +case "${target}" in powerpc-*-darwin*) ;; i[[3456789]]86-*-darwin*) @@ -584,8 +635,6 @@ case "${target}" in ;; esac ;; - *-*-kaos*) - ;; *-*-netbsd*) # Skip some stuff that's unsupported on some NetBSD configurations. case "${target}" in @@ -621,19 +670,12 @@ case "${target}" in alpha*-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - am33_2.0-*-linux*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; sh-*-linux*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - sh*-*-pe|mips*-*-pe|*arm-wince-pe) + arm-wince-pe) noconfigdirs="$noconfigdirs ${libgcj}" ;; - arc-*-*) - ;; - arm-*-coff) - ;; arm-*-elf* | arm*-*-eabi* ) noconfigdirs="$noconfigdirs target-libffi" ;; @@ -642,25 +684,9 @@ case "${target}" in arm*-*-symbianelf*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - arm-*-pe*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - arm-*-riscix*) - ;; - avr-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; bfin-*-*) - unsupported_languages="$unsupported_languages java" noconfigdirs="$noconfigdirs target-boehm-gc" ;; - c4x-*-* | tic4x-*-*) - ;; - tic54x-*-*) - ;; - cr16-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; cris-*-* | crisv32-*-*) unsupported_languages="$unsupported_languages java" case "${target}" in @@ -670,26 +696,9 @@ case "${target}" in noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";; esac ;; - d10v-*-*) - ;; - d30v-*-*) - ;; - fr30-*-elf*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; frv-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - moxie-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - h8300*-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - h8500-*-*) - ;; - hppa1.1-*-osf* | hppa1.1-*-bsd* ) - ;; hppa*64*-*-linux*) # In this case, it's because the hppa64-linux target is for # the kernel only at this point and has no libc, and thus no @@ -698,23 +707,16 @@ case "${target}" in ;; hppa*-*-linux*) ;; - hppa*-*-*elf* | \ - hppa*-*-lites* | \ - hppa*-*-openbsd* | \ hppa*64*-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; hppa*-hp-hpux11*) ;; - hppa*-*-pro*) - ;; hppa*-*-*) # According to Alexandre Oliva , libjava won't # build on HP-UX 10.20. noconfigdirs="$noconfigdirs ${libgcj}" ;; - i960-*-*) - ;; ia64*-*-elf*) ;; ia64*-**-hpux*) @@ -722,7 +724,7 @@ case "${target}" in ia64*-*-*vms*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - i[[3456789]]86-*-coff | i[[3456789]]86-*-elf) + i[[3456789]]86-*-elf) noconfigdirs="$noconfigdirs ${libgcj}" ;; i[[3456789]]86-*-linux*) @@ -740,25 +742,11 @@ case "${target}" in ;; i[[3456789]]86-*-interix* ) ;; - i[[3456789]]86-*-pe) - ;; - i[[3456789]]86-*-sco3.2v5*) - ;; - i[[3456789]]86-*-sco*) - ;; i[[3456789]]86-*-solaris2*) ;; - i[[3456789]]86-*-sysv4*) - ;; - i[[3456789]]86-*-beos*) - ;; - i[[3456789]]86-*-rdos*) - ;; m32r-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*) - ;; m68k-*-elf*) noconfigdirs="$noconfigdirs ${libgcj}" ;; @@ -766,44 +754,19 @@ case "${target}" in ;; mmix-*-*) noconfigdirs="$noconfigdirs target-libffi target-boehm-gc" - unsupported_languages="$unsupported_languages java" - ;; - mt-*-*) ;; powerpc-*-aix*) # copied from rs6000-*-* entry noconfigdirs="$noconfigdirs ${libgcj}" ;; - powerpc*-*-winnt* | powerpc*-*-pe*) - ;; - powerpcle-*-solaris*) - ;; - powerpc-*-beos*) - ;; powerpc-*-eabi) noconfigdirs="$noconfigdirs ${libgcj}" ;; powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* ) ;; - rs6000-*-lynxos*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; rs6000-*-aix*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - rs6000-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - m68k-apollo-*) - ;; - microblaze*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - mips*-sde-elf*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - mips*-*-irix5*) - ;; mips*-*-irix6*) # Linking libjava exceeds command-line length limits on at least # IRIX 6.2, but not on IRIX 6.5. @@ -811,8 +774,6 @@ case "${target}" in # noconfigdirs="$noconfigdirs ${libgcj}" ;; - mips*-*-bsd*) - ;; mips*-*-linux*) ;; mips*-*-*) @@ -821,28 +782,14 @@ case "${target}" in sh-*-* | sh64-*-*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - sparclet-*-aout* | sparc86x-*-*) - ;; sparc-*-elf*) noconfigdirs="$noconfigdirs ${libgcj}" ;; sparc64-*-elf*) noconfigdirs="$noconfigdirs ${libgcj}" ;; - sparclite-*-*) - ;; - sparc-*-sunos4*) - ;; sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*) ;; - tic6x-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; - v810-*-*) - ;; - vax-*-*) - noconfigdirs="$noconfigdirs ${libgcj}" - ;; *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu) ;; *-*-lynxos*)