summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2011-05-17 21:23:41 +0000
committerJoel Brobecker <brobecker@gnat.com>2011-05-17 21:23:41 +0000
commit8a1264a6e006f8c37ef8bdd95f29787ba7127982 (patch)
treec3f1679c136c269fadd86696c4a3681105f02208
parent5533ed08524b6d7d47f75b2b20fa14ab95633c6e (diff)
downloadbinutils-redhat-8a1264a6e006f8c37ef8bdd95f29787ba7127982.tar.gz
* 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.
-rw-r--r--ChangeLog180
-rwxr-xr-xconfigure688
-rw-r--r--configure.ac686
3 files changed, 643 insertions, 911 deletions
diff --git a/ChangeLog b/ChangeLog
index 028f718002..6454e8c88f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,183 +1,3 @@
-2011-05-08 Doug Kwan <dougkwan@google.com>
-
- Merge from gcc:
-
- 2011-05-08 Doug Kwan <dougkwan@google.com>
-
- * configure.ac: Propagate LDFLAGS_FOR_TARGET.
- * configure: Regenerated.
- * Makefile.tpl (LDFLAGS_FOR_TARGET): Use LDFLAGS_FOR_TARGET
- value from configure.
- * Makefile.in: Regenerated.
-
-2011-05-05 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac (alpha*-dec-osf*, i[[3456789]]86-*-rdos*,
- sh*-*-pe|mips*-*-pe|arm-wince-pe, sparc-*-sunos4*, *-*-aix*,
- *-*-beos*, *-*-chorusos, *-*-dragonfly*, *-*-freebsd*, *-*-linux*
- | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu, *-*-lynxos*,
- *-*-mingw*, *-*-netbsd*, *-*-netware*, *-*-tpf*, *-*-uclinux*,
- *-*-vxworks*): Disable newlib and libgloss in separate case
- statement.
- (i[[3456789]]86-*-linux*): Move logic allowing newlib to be built
- to separate case statement.
- (*-*-chorusos, *-*-dragonfly*, *-*-freebsd*, *-*-netbsd*,
- *-*-netware*, *-*-tpf*, *-*-uclinux*, *-*-vxworks*,
- alpha*-dec-osf*, alpha*-*-linux*, am33_2.0-*-linux*, sh-*-linux*,
- sh*-*-pe|mips*-*-pe|*arm-wince-pe, arm-*-coff, arm-*-elf* |
- arm*-*-eabi*, arm*-*-linux-gnueabi, arm*-*-symbianelf*, avr-*-*,
- bfin-*-*, cris-*-* | crisv32-*-*, frv-*-*, i[[3456789]]86-*-coff |
- i[[3456789]]86-*-elf, i[[3456789]]86-w64-mingw*,
- i[[3456789]]86-*-mingw*, x86_64-*-mingw*,
- i[[3456789]]86-*-interix*, i[[3456789]]86-*-beos*,
- i[[3456789]]86-*-rdos*, m32r-*-*,
- m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*, m68k-*-elf*, m68*-*-*
- | fido-*-*, powerpc-*-aix*, powerpc-*-beos*, powerpc-*-eabi,
- powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems*,
- rs6000-*-lynxos*, rs6000-*-aix*, mips*-*-linux*, sparclet-*-aout*
- | sparc86x-*-*, sparc-*-elf*, sparc64-*-elf*, sparclite-*-*,
- sparc-*-sunos4*, sparc-*-solaris* | sparc64-*-solaris* |
- sparcv9-*-solaris*, *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu |
- *-*-kopensolaris*-gnu, *-*-lynxos*, *-*-*): Don't disable newlib
- and libgloss in main case over targets. Remove most empty cases
- in main case over targets.
- * configure: Regenerate.
-
-2011-05-04 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac: Remove code setting special library locations for
- hppa*64*-*-hpux11*. Remove code setting compiler for
- sparc-sun-solaris2*.
- * configure: Regenerate.
-
-2011-05-04 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac: Separate libgloss_dir settings from general case
- over targets.
- * configure: Regenerate.
-
-2011-04-28 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac (*-*-dragonfly*, *-*-freebsd*, *-*-netbsd*,
- alpha*-dec-osf*, alpha*-*-linux*, alpha*-*-*, sh-*-linux*,
- arm-*-elf* | arm*-*-eabi*, arm*-*-linux-gnueabi, frv-*-*): Remove
- cases in libgcj-disabling case statement.
- (hppa*64*-*-linux*): Set unsupported_languages instead of
- disabling target-zlib.
- (hppa*64*-*-*): Restrict case in libgcj-disabling case statement
- to hppa*64*-*-hpux*.
- (hppa*-*-*): Restrict case in libgcj-disabling case statement to
- hppa*-*-hpux*.
- (ia64*-*-elf*, ia64*-**-hpux*, i[[3456789]]86-*-elf,
- i[[3456789]]86-*-linux*, *-*-cygwin*, i[[3456789]]86-*-interix*,
- i[[3456789]]86-*-solaris2*, m32r-*-*, m68k-*-elf*, m68*-*-* |
- fido-*-*, powerpc-*-eabi, powerpc-*-eabi* | powerpcle-*-eabi* |
- powerpc-*-rtems*, mips*-*-linux*, mips*-*-*, sh-*-* | sh64-*-*,
- sparc-*-elf*, sparc64-*-elf*, sparc-*-solaris* |
- sparc64-*-solaris* | sparcv9-*-solaris*, *-*-linux* | *-*-gnu* |
- *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu, *-*-*): Remove cases in
- libgcj-disabling case statement.
- * configure: Regenerate.
-
-2011-04-28 Joseph Myers <joseph@codesourcery.com>
-
- * 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 <joseph@codesourcery.com>
-
- Merge from GCC:
-
- 2011-04-18 Jack Howarth <howarth@bromo.med.uc.edu>
-
- PR lto/48086
- * configure.ac: Re-enable LTO on *-apple-darwin9*.
- * configure: Regenerate.
-
-2011-04-28 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac: Separate cases disabling Java and Java libraries
- from general case over targets.
- * configure: Regenerate.
-
-2011-04-06 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac (build_tools): Remove build-byacc.
- (host_libs): Remove mmalloc.
- (host_tools): Remove byacc make patch prms send-pr ash bash bzip2
- autoconf automake libtool diff rcs fileutils shellutils time
- textutils wdiff find uudecode hello tar gzip indent recode release
- sed perl gawk findutils gettext zip.
- (libgcj): Remove target-qthreads.
- (target_tools): Remove target-examples target-gperf.
- (YACC): Don't handle building byacc.
- * configure: Regenerate.
- * Makefile.def (ash, autoconf, automake, bash, byacc, bzip2, diff,
- dosutils, examples, fileutils, find, findutils, gawk, gettext,
- gnuserv, gperf, gzip, hello, indent, libtool, make, mmalloc,
- patch, perl, prms, qthreads, rcs, recode, release, sed, send-pr,
- shellutils, tar, textutils, time, uudecode, wdiff, zip): Don't
- handle building components.
- * Makefile.in: Regenerate.
-
-2011-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
-
- * config.sub: Sync from upstream.
-
-2011-04-01 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac (avr-*-*): Add comment about why libssp is disabled.
- (microblaze*): Don't disable libssp.
- * configure: Regenerate.
-
-2011-04-01 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac: Remove code setting CONFIG_SHELL, config_shell and
- moveifchange.
- * configure: Regenerate.
- * Makefile.tpl: Use @SHELL@ not @config_shell@.
- * Makefile.in: Regenerate.
-
-2011-04-01 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac (*-*-sysv4*): Don't enable libgomp.
- (alpha*-*-*vms*, i[[34567]]86-*-sco3.2v5*, mn10300-*-*,
- powerpc-*-chorusos*, powerpc*-*-eabi*, powerpc*-*-sysv*,
- powerpc*-*-kaos*, s390x-ibm-tpf*, sparc64-*-elf*, v850*-*-*,
- xtensa*-*-elf*, *-*-beos*, *-*-elf*, *-*-netware*, *-*-rtems*,
- *-*-sysv[[45]]*, *-*-vxworks*, *-wrs-windiss): Remove
- md_exec_prefix cases.
- * configure: Regenerate.
-
-2011-04-01 Joseph Myers <joseph@codesourcery.com>
-
- * configure.ac: Separate cases disabling target-libssp,
- target-libiberty, target-libstdc++-v3 and Fortran from general
- case over targets.
- * configure: Regenerate.
-
2011-04-01 Joseph Myers <joseph@codesourcery.com>
* configure.ac (*-*-chorusos): Don't disable libgcj.
diff --git a/configure b/configure
index 30d694599d..3fdc77b5bf 100755
--- a/configure
+++ b/configure
@@ -604,6 +604,7 @@ LEX
M4
BISON
YACC
+config_shell
WINDRES_FOR_BUILD
WINDMC_FOR_BUILD
RANLIB_FOR_BUILD
@@ -634,7 +635,6 @@ target_configargs
host_configargs
build_configargs
BUILD_CONFIG
-LDFLAGS_FOR_TARGET
CXXFLAGS_FOR_TARGET
CFLAGS_FOR_TARGET
DEBUG_PREFIX_CFLAGS_FOR_TARGET
@@ -2608,6 +2608,42 @@ fi
done
+### we might need to use some other shell than /bin/sh for running subshells
+### If we are on Windows, search for the shell. This will permit people
+### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
+### without also having to set CONFIG_SHELL. This code will work when
+### using bash, which sets OSTYPE.
+case "${OSTYPE}" in
+*win32*)
+ if test x${CONFIG_SHELL} = x ; then
+ if test ! -f /bin/sh ; then
+ if test x${SHELL} != x && test -f ${SHELL} ; then
+ CONFIG_SHELL=${SHELL}
+ export CONFIG_SHELL
+ else
+ for prog in sh sh.exe bash bash.exe; do
+ IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
+ for dir in $PATH; do
+ test -z "$dir" && dir=.
+ if test -f $dir/$prog; then
+ CONFIG_SHELL=$dir/$prog
+ export CONFIG_SHELL
+ break
+ fi
+ done
+ IFS="$save_ifs"
+ test -n "${CONFIG_SHELL}" && break
+ done
+ fi
+ fi
+ fi
+ ;;
+esac
+
+config_shell=${CONFIG_SHELL-/bin/sh}
+
+moveifchange=${srcdir}/move-if-change
+
srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
# We pass INSTALL explicitly to sub-makes. Make sure that it is not
@@ -2647,11 +2683,11 @@ extra_host_args=
build_libs="build-libiberty"
# these tools are built for the build environment
-build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
+build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
# these libraries are used by various programs built for the host environment
#
-host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
+host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
# these tools are built for the host environment
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
@@ -2659,11 +2695,12 @@ host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp li
# binutils, gas and ld appear in that order because it makes sense to run
# "make check" in that particular order.
# If --enable-gold is used, "gold" may replace "ld".
-host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
+host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
# libgcj represents the runtime libraries only used by gcj.
libgcj="target-libffi \
target-zlib \
+ target-qthreads \
target-libjava"
# these libraries are built for the target environment, and are built after
@@ -2691,7 +2728,7 @@ target_libraries="target-libgcc \
# note: any program that *uses* libraries that are in the "target_libraries"
# list belongs in this list.
#
-target_tools="target-rda"
+target_tools="target-examples target-gperf target-rda"
################################################################################
@@ -3023,7 +3060,7 @@ if test x$enable_libgomp = x ; then
;;
*-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
;;
- *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
+ *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
;;
*-*-darwin* | *-*-aix*)
;;
@@ -3033,341 +3070,13 @@ if test x$enable_libgomp = x ; then
esac
fi
-# Disable libssp for some systems.
-case "${target}" in
- avr-*-*)
- # No hosted I/O support.
- noconfigdirs="$noconfigdirs target-libssp"
- ;;
- powerpc-*-aix* | rs6000-*-aix*)
- noconfigdirs="$noconfigdirs target-libssp"
- ;;
-esac
-
-# Disable target libiberty for some systems.
-case "${target}" in
- *-*-kaos*)
- # Remove unsupported stuff on all kaOS configurations.
- skipdirs="target-libiberty"
- ;;
- *-*-netbsd*)
- # Skip some stuff on all NetBSD configurations.
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- *-*-netware*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- *-*-rtems*)
- skipdirs="${skipdirs} target-libiberty"
- ;;
- *-*-tpf*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- *-*-vxworks*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- sh*-*-pe|mips*-*-pe|*arm-wince-pe)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- arm*-*-symbianelf*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- avr-*-*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- picochip-*-*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- mips*-sde-elf*)
- skipdirs="$skipdirs target-libiberty"
- ;;
- ip2k-*-*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
-esac
-
-# Disable libstdc++-v3 for some systems.
-case "${target}" in
- *-*-vxworks*)
- # VxWorks uses the Dinkumware C++ library.
- noconfigdirs="$noconfigdirs target-libstdc++-v3"
- ;;
- arm*-wince-pe*)
- # the C++ libraries don't build on top of CE's C libraries
- noconfigdirs="$noconfigdirs target-libstdc++-v3"
- ;;
- avr-*-*)
- noconfigdirs="$noconfigdirs target-libstdc++-v3"
- ;;
-esac
-
-# Disable Fortran for some systems.
-case "${target}" in
- mmix-*-*)
- # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
- unsupported_languages="$unsupported_languages fortran"
- ;;
-esac
-
-# Disable Java if libffi is not supported.
-case "${target}" in
- 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*)
- ;;
- x86_64-*-darwin[912]*)
- ;;
- *-*-darwin*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-netware*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-rtems*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-tpf*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-uclinux*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-vxworks*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- alpha*-*-*vms*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- arm-wince-pe)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- arm*-*-symbianelf*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- bfin-*-*)
- noconfigdirs="$noconfigdirs target-boehm-gc"
- ;;
- cris-*-* | crisv32-*-*)
- unsupported_languages="$unsupported_languages java"
- case "${target}" in
- *-*-linux*)
- ;;
- *) # See PR46792 regarding target-libffi.
- noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
- esac
- ;;
- 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
- # headers, crt*.o, etc., all of which are needed by these.
- unsupported_languages="$unsupported_languages java"
- ;;
- hppa*64*-*-hpux*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- hppa*-hp-hpux11*)
- ;;
- hppa*-*-hpux*)
- # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
- # build on HP-UX 10.20.
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- ia64*-*-*vms*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- i[3456789]86-w64-mingw*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- i[3456789]86-*-mingw*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- x86_64-*-mingw*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- mmix-*-*)
- noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
- ;;
- powerpc-*-aix*)
- # copied from rs6000-*-* entry
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- rs6000-*-aix*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- mips*-*-irix6*)
- # Linking libjava exceeds command-line length limits on at least
- # IRIX 6.2, but not on IRIX 6.5.
- # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
- # <oldham@codesourcery.com>
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-lynxos*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
-esac
-
# Default libgloss CPU subdirectory.
libgloss_dir="$target_cpu"
case "${target}" in
- sh*-*-pe|mips*-*-pe|*arm-wince-pe)
- libgloss_dir=wince
- ;;
- arm*-*-*)
- libgloss_dir=arm
- ;;
- cris-*-* | crisv32-*-*)
- libgloss_dir=cris
- ;;
- hppa*-*-*)
- libgloss_dir=pa
- ;;
- i[3456789]86-*-*)
- libgloss_dir=i386
- ;;
- m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
- libgloss_dir=m68hc11
- ;;
- m68*-*-* | fido-*-*)
- libgloss_dir=m68k
- ;;
- mips*-*-*)
- libgloss_dir=mips
- ;;
- powerpc*-*-*)
- libgloss_dir=rs6000
- ;;
- sparc*-*-*)
- libgloss_dir=sparc
- ;;
-esac
-
-# Disable newlib and libgloss for various target OSes.
-case "${target}" in
- alpha*-dec-osf*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- i[3456789]86-*-linux*)
- # This section makes it possible to build newlib natively on linux.
- # If we are using a cross compiler then don't configure newlib.
- if test x${is_cross_compiler} != xno ; then
- noconfigdirs="$noconfigdirs target-newlib"
- fi
- noconfigdirs="$noconfigdirs target-libgloss"
- # If we are not using a cross compiler, do configure newlib.
- # Note however, that newlib will only be configured in this situation
- # if the --with-newlib option has been given, because otherwise
- # 'target-newlib' will appear in skipdirs.
- ;;
- i[3456789]86-*-rdos*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- sh*-*-pe|mips*-*-pe|arm-wince-pe)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- sparc-*-sunos4*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-aix*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-beos*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
*-*-chorusos)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
- *-*-dragonfly*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-freebsd*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-lynxos*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-mingw*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-netbsd*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-netware*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-tpf*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-uclinux*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-vxworks*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
-esac
-
-case "${target}" in
- *-*-chorusos)
- ;;
powerpc-*-darwin*)
noconfigdirs="$noconfigdirs ld gas gdb gprof"
noconfigdirs="$noconfigdirs sim target-rda"
@@ -3383,59 +3092,128 @@ case "${target}" in
*-*-darwin*)
noconfigdirs="$noconfigdirs ld gas gdb gprof"
noconfigdirs="$noconfigdirs sim target-rda"
+ noconfigdirs="$noconfigdirs ${libgcj}"
;;
*-*-dragonfly*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
*-*-freebsd*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss"
if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
&& test -f /usr/local/include/gmp.h; then
with_gmp=/usr/local
fi
+
+ # Skip some stuff that's unsupported on some FreeBSD configurations.
+ case "${target}" in
+ i*86-*-*) ;;
+ alpha*-*-*) ;;
+ x86_64-*-*) ;;
+ *)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ esac
;;
*-*-kaos*)
# Remove unsupported stuff on all kaOS configurations.
+ skipdirs="target-libiberty"
noconfigdirs="$noconfigdirs target-libgloss"
;;
*-*-netbsd*)
+ # Skip some stuff on all NetBSD configurations.
+ noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
+
+ # Skip some stuff that's unsupported on some NetBSD configurations.
+ case "${target}" in
+ i*86-*-netbsdelf*) ;;
+ arm*-*-netbsdelf*) ;;
+ *)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ esac
;;
*-*-netware*)
+ noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
;;
*-*-rtems*)
- noconfigdirs="$noconfigdirs target-libgloss"
+ skipdirs="${skipdirs} target-libiberty"
+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
# The tpf target doesn't support gdb yet.
*-*-tpf*)
- noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
;;
*-*-uclinux*)
- noconfigdirs="$noconfigdirs target-rda"
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
;;
*-*-vxworks*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
;;
alpha*-dec-osf*)
# ld works, but does not support shared libraries.
+ # newlib is not 64 bit ready.
# gas doesn't generate exception information.
- noconfigdirs="$noconfigdirs gas ld"
+ noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
;;
alpha*-*-*vms*)
- noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
;;
- alpha*-*-*)
+ alpha*-*-linux*)
# newlib is not 64 bit ready
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
+ alpha*-*-*)
+ # newlib is not 64 bit ready
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
+ ;;
+ am33_2.0-*-linux*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
+ ;;
+ sh-*-linux*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
+ ;;
sh*-*-pe|mips*-*-pe|*arm-wince-pe)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ noconfigdirs="$noconfigdirs target-libiberty"
noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
+ # the C++ libraries don't build on top of CE's C libraries
+ noconfigdirs="$noconfigdirs target-libstdc++-v3"
+ noconfigdirs="$noconfigdirs target-newlib"
+ libgloss_dir=wince
;;
arc-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
;;
+ arm-*-coff)
+ libgloss_dir=arm
+ ;;
+ arm-*-elf* | arm*-*-eabi* )
+ noconfigdirs="$noconfigdirs target-libffi"
+ libgloss_dir=arm
+ ;;
+ arm*-*-linux-gnueabi)
+ case ${with_newlib} in
+ no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
+ esac
+ libgloss_dir=arm
+ ;;
+ arm*-*-symbianelf*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
+ libgloss_dir=arm
+ ;;
arm-*-pe*)
- noconfigdirs="$noconfigdirs target-libgloss"
+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
arm-*-riscix*)
noconfigdirs="$noconfigdirs ld target-libgloss"
;;
+ avr-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
+ ;;
+ bfin-*-*)
+ unsupported_languages="$unsupported_languages java"
+ noconfigdirs="$noconfigdirs target-boehm-gc"
+ ;;
c4x-*-* | tic4x-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
;;
@@ -3443,7 +3221,17 @@ case "${target}" in
noconfigdirs="$noconfigdirs target-libgloss gdb"
;;
cr16-*-*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs ${libgcj} gdb"
+ ;;
+ cris-*-* | crisv32-*-*)
+ unsupported_languages="$unsupported_languages java"
+ case "${target}" in
+ *-*-linux*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
+ *) # See PR46792 regarding target-libffi.
+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
+ esac
+ libgloss_dir=cris
;;
d10v-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
@@ -3452,13 +3240,17 @@ case "${target}" in
noconfigdirs="$noconfigdirs gdb"
;;
fr30-*-elf*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs ${libgcj} gdb"
+ ;;
+ frv-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
;;
moxie-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
noconfigdirs="$noconfigdirs gprof"
;;
h8300*-*-*)
- noconfigdirs="$noconfigdirs target-libgloss"
+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
h8500-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
@@ -3466,6 +3258,10 @@ case "${target}" in
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
+ # headers, crt*.o, etc., all of which are needed by these.
+ noconfigdirs="$noconfigdirs target-zlib"
;;
hppa*-*-linux*)
;;
@@ -3473,14 +3269,18 @@ case "${target}" in
hppa*-*-lites* | \
hppa*-*-openbsd* | \
hppa*64*-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
;;
hppa*-hp-hpux11*)
noconfigdirs="$noconfigdirs ld"
;;
hppa*-*-pro*)
+ libgloss_dir=pa
;;
hppa*-*-*)
- noconfigdirs="$noconfigdirs ld"
+ # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
+ # build on HP-UX 10.20.
+ noconfigdirs="$noconfigdirs ld ${libgcj}"
;;
i960-*-*)
noconfigdirs="$noconfigdirs gdb"
@@ -3491,16 +3291,37 @@ case "${target}" in
;;
ia64*-**-hpux*)
# No ld support yet.
- noconfigdirs="$noconfigdirs libgui itcl ld"
+ noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
;;
ia64*-*-*vms*)
# No gdb or ld support yet.
- noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
+ noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
+ ;;
+ i[3456789]86-*-coff | i[3456789]86-*-elf)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ libgloss_dir=i386
+ ;;
+ i[3456789]86-*-linux*)
+ # This section makes it possible to build newlib natively on linux.
+ # If we are using a cross compiler then don't configure newlib.
+ if test x${is_cross_compiler} != xno ; then
+ noconfigdirs="$noconfigdirs target-newlib"
+ fi
+ noconfigdirs="$noconfigdirs target-libgloss"
+ # If we are not using a cross compiler, do configure newlib.
+ # Note however, that newlib will only be configured in this situation
+ # if the --with-newlib option has been given, because otherwise
+ # 'target-newlib' will appear in skipdirs.
;;
i[3456789]86-w64-mingw*)
+ noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
;;
i[3456789]86-*-mingw*)
target_configdirs="$target_configdirs target-winsup"
+ noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
+ ;;
+ x86_64-*-mingw*)
+ noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
;;
*-*-cygwin*)
target_configdirs="$target_configdirs target-libtermcap target-winsup"
@@ -3512,6 +3333,8 @@ case "${target}" in
echo "Warning: winsup/cygwin is missing so newlib can't be built."
fi
;;
+ i[3456789]86-*-interix* )
+ ;;
i[3456789]86-*-pe)
noconfigdirs="$noconfigdirs target-libgloss"
;;
@@ -3530,20 +3353,37 @@ case "${target}" in
noconfigdirs="$noconfigdirs target-libgloss"
;;
i[3456789]86-*-beos*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
;;
i[3456789]86-*-rdos*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
+ ;;
+ m32r-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty"
+ libgloss_dir=m68hc11
+ ;;
+ m68k-*-elf*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ m68*-*-* | fido-*-*)
+ libgloss_dir=m68k
;;
mmix-*-*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb"
+ unsupported_languages="$unsupported_languages fortran java"
;;
mt-*-*)
noconfigdirs="$noconfigdirs sim"
;;
+ picochip-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty"
+ ;;
powerpc-*-aix*)
# copied from rs6000-*-* entry
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
;;
powerpc*-*-winnt* | powerpc*-*-pe*)
target_configdirs="$target_configdirs target-winsup"
@@ -3554,66 +3394,112 @@ case "${target}" in
# This is temporary until we can link against shared libraries
powerpcle-*-solaris*)
noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
+ libgloss_dir=rs6000
;;
powerpc-*-beos*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
+ ;;
+ powerpc-*-eabi)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ libgloss_dir=rs6000
+ ;;
+ powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
+ libgloss_dir=rs6000
;;
rs6000-*-lynxos*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
;;
rs6000-*-aix*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
;;
rs6000-*-*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof ${libgcj}"
;;
m68k-apollo-*)
noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
;;
microblaze*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
;;
mips*-sde-elf*)
+ skipdirs="$skipdirs target-libiberty"
+ noconfigdirs="$noconfigdirs ${libgcj}"
if test x$with_newlib = xyes; then
noconfigdirs="$noconfigdirs gprof"
fi
+ libgloss_dir=mips
;;
mips*-*-irix5*)
noconfigdirs="$noconfigdirs gprof target-libgloss"
;;
mips*-*-irix6*)
- noconfigdirs="$noconfigdirs gprof target-libgloss"
+ # Linking libjava exceeds command-line length limits on at least
+ # IRIX 6.2, but not on IRIX 6.5.
+ # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
+ # <oldham@codesourcery.com>
+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
;;
mips*-*-bsd*)
noconfigdirs="$noconfigdirs gprof target-libgloss"
;;
mips*-*-linux*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
mips*-*-*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof ${libgcj}"
+ libgloss_dir=mips
;;
sh-*-* | sh64-*-*)
case "${target}" in
sh*-*-elf)
- ;;
+ noconfigdirs="$noconfigdirs ${libgcj}" ;;
*)
- noconfigdirs="$noconfigdirs target-libgloss" ;;
+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
esac
;;
+ sparclet-*-aout* | sparc86x-*-*)
+ libgloss_dir=sparc
+ ;;
+ sparc-*-elf*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ sparc64-*-elf*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ libgloss_dir=sparc
+ ;;
+ sparclite-*-*)
+ libgloss_dir=sparc
+ ;;
sparc-*-sunos4*)
- if test x${is_cross_compiler} = xno ; then
+ if test x${is_cross_compiler} != xno ; then
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
+ else
use_gnu_ld=no
fi
;;
+ sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
+ ;;
tic6x-*-*)
- noconfigdirs="$noconfigdirs gdb sim"
+ noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
;;
v810-*-*)
noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
;;
vax-*-*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
+ ;;
+ ip2k-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty"
+ ;;
+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
+ *-*-lynxos*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
+ ;;
+ *-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
esac
# If we aren't building newlib, then don't build libgloss, since libgloss
@@ -6048,7 +5934,7 @@ if test $target_elf = yes; then :
else
if test x"$default_enable_lto" = x"yes" ; then
case $target in
- *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
+ *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
# On other non-ELF platforms, LTO has yet to be validated.
*) enable_lto=no ;;
esac
@@ -6626,8 +6512,6 @@ if test "x$CXXFLAGS_FOR_TARGET" = x; then
fi
-
-
# Handle --with-headers=XXX. If the value is not "yes", the contents of
# the named directory are copied to $(tooldir)/sys-include.
if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
@@ -6738,12 +6622,46 @@ done
# the *-*-osname triplets last.
md_exec_prefix=
case "${target}" in
+ alpha*-*-*vms*)
+ md_exec_prefix=/gnu/lib/gcc-lib
+ ;;
i[34567]86-pc-msdosdjgpp*)
md_exec_prefix=/dev/env/DJDIR/bin
;;
+ i[34567]86-*-sco3.2v5*)
+ if test $with_gnu_as = yes; then
+ md_exec_prefix=/usr/gnu/bin
+ else
+ md_exec_prefix=/usr/ccs/bin/elf
+ fi
+ ;;
+
+ mn10300-*-* | \
+ powerpc-*-chorusos* | \
+ powerpc*-*-eabi* | \
+ powerpc*-*-sysv* | \
+ powerpc*-*-kaos* | \
+ s390x-ibm-tpf*)
+ md_exec_prefix=/usr/ccs/bin
+ ;;
+ sparc64-*-elf*)
+ ;;
+ v850*-*-*)
+ md_exec_prefix=/usr/ccs/bin
+ ;;
+ xtensa*-*-elf*)
+ ;;
+
+ *-*-beos* | \
+ *-*-elf* | \
*-*-hpux* | \
+ *-*-netware* | \
*-*-nto-qnx* | \
- *-*-solaris2*)
+ *-*-rtems* | \
+ *-*-solaris2* | \
+ *-*-sysv[45]* | \
+ *-*-vxworks* | \
+ *-wrs-windiss)
md_exec_prefix=/usr/ccs/bin
;;
esac
@@ -6823,6 +6741,14 @@ if test x${with_stabs} = x ; then
esac
fi
+# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
+# them automatically.
+case "${host}" in
+ hppa*64*-*-hpux11*)
+ extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
+ ;;
+esac
+
# Some systems (e.g., one of the i386-aix systems the gas testers are
# using) don't handle "\$" correctly, so don't use it here.
tooldir='${exec_prefix}'/${target_noncanonical}
@@ -6866,6 +6792,34 @@ case $we_are_ok in
esac
rm -f conftest*
+# The Solaris /usr/ucb/cc compiler does not appear to work.
+case "${host}" in
+ sparc-sun-solaris2*)
+ CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
+ if test "`type $CCBASE | sed 's/^[^/]*//'`" = "/usr/ucb/cc" ; then
+ could_use=
+ test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
+ if test -d /opt/cygnus/bin ; then
+ if test "$could_use" = "" ; then
+ could_use="/opt/cygnus/bin"
+ else
+ could_use="$could_use or /opt/cygnus/bin"
+ fi
+ fi
+ if test "$could_use" = "" ; then
+ echo "Warning: compilation may fail because you're using"
+ echo "/usr/ucb/cc. You should change your PATH or CC "
+ echo "variable and rerun configure."
+ else
+ echo "Warning: compilation may fail because you're using"
+ echo "/usr/ucb/cc, when you should use the C compiler from"
+ echo "$could_use. You should change your"
+ echo "PATH or CC variable and rerun configure."
+ fi
+ fi
+ ;;
+esac
+
# Decide which environment variable is used to find dynamic libraries.
case "${host}" in
*-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
@@ -7519,6 +7473,7 @@ done
+
# Generate default definitions for YACC, M4, LEX and other programs that run
# on the build machine. These are used if the Makefile can't locate these
# programs in objdir.
@@ -7569,6 +7524,7 @@ test -n "$YACC" || YACC="$MISSING bison -y"
case " $build_configdirs " in
*" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
+ *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
esac
for ac_prog in bison
diff --git a/configure.ac b/configure.ac
index 39606948e3..8ef103c03d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -89,6 +89,42 @@ AC_PROG_LN_S
AC_PROG_SED
AC_PROG_AWK
+### we might need to use some other shell than /bin/sh for running subshells
+### If we are on Windows, search for the shell. This will permit people
+### to not have /bin/sh, but to be able to see /SOME/PATH/sh configure
+### without also having to set CONFIG_SHELL. This code will work when
+### using bash, which sets OSTYPE.
+case "${OSTYPE}" in
+*win32*)
+ if test x${CONFIG_SHELL} = x ; then
+ if test ! -f /bin/sh ; then
+ if test x${SHELL} != x && test -f ${SHELL} ; then
+ CONFIG_SHELL=${SHELL}
+ export CONFIG_SHELL
+ else
+ for prog in sh sh.exe bash bash.exe; do
+ IFS="${IFS= }"; save_ifs="$IFS"; IFS="${IFS}:"
+ for dir in $PATH; do
+ test -z "$dir" && dir=.
+ if test -f $dir/$prog; then
+ CONFIG_SHELL=$dir/$prog
+ export CONFIG_SHELL
+ break
+ fi
+ done
+ IFS="$save_ifs"
+ test -n "${CONFIG_SHELL}" && break
+ done
+ fi
+ fi
+ fi
+ ;;
+esac
+
+config_shell=${CONFIG_SHELL-/bin/sh}
+
+moveifchange=${srcdir}/move-if-change
+
srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
# We pass INSTALL explicitly to sub-makes. Make sure that it is not
@@ -128,11 +164,11 @@ extra_host_args=
build_libs="build-libiberty"
# these tools are built for the build environment
-build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
+build_tools="build-texinfo build-byacc build-flex build-bison build-m4 build-fixincludes"
# these libraries are used by various programs built for the host environment
#
-host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
+host_libs="intl mmalloc libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp libdecnumber gmp mpfr mpc ppl cloog libelf libiconv"
# these tools are built for the host environment
# Note, the powerpc-eabi build depends on sim occurring before gdb in order to
@@ -140,11 +176,12 @@ host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libcpp li
# binutils, gas and ld appear in that order because it makes sense to run
# "make check" in that particular order.
# If --enable-gold is used, "gold" may replace "ld".
-host_tools="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools"
+host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc cgen sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools"
# libgcj represents the runtime libraries only used by gcj.
libgcj="target-libffi \
target-zlib \
+ target-qthreads \
target-libjava"
# these libraries are built for the target environment, and are built after
@@ -172,7 +209,7 @@ target_libraries="target-libgcc \
# note: any program that *uses* libraries that are in the "target_libraries"
# list belongs in this list.
#
-target_tools="target-rda"
+target_tools="target-examples target-gperf target-rda"
################################################################################
@@ -469,7 +506,7 @@ if test x$enable_libgomp = x ; then
;;
*-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
;;
- *-*-solaris2* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
+ *-*-solaris2* | *-*-sysv4* | *-*-irix6* | *-*-osf* | *-*-hpux11*)
;;
*-*-darwin* | *-*-aix*)
;;
@@ -479,341 +516,13 @@ if test x$enable_libgomp = x ; then
esac
fi
-# Disable libssp for some systems.
-case "${target}" in
- avr-*-*)
- # No hosted I/O support.
- noconfigdirs="$noconfigdirs target-libssp"
- ;;
- powerpc-*-aix* | rs6000-*-aix*)
- noconfigdirs="$noconfigdirs target-libssp"
- ;;
-esac
-
-# Disable target libiberty for some systems.
-case "${target}" in
- *-*-kaos*)
- # Remove unsupported stuff on all kaOS configurations.
- skipdirs="target-libiberty"
- ;;
- *-*-netbsd*)
- # Skip some stuff on all NetBSD configurations.
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- *-*-netware*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- *-*-rtems*)
- skipdirs="${skipdirs} target-libiberty"
- ;;
- *-*-tpf*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- *-*-vxworks*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- sh*-*-pe|mips*-*-pe|*arm-wince-pe)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- arm*-*-symbianelf*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- avr-*-*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- picochip-*-*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
- mips*-sde-elf*)
- skipdirs="$skipdirs target-libiberty"
- ;;
- ip2k-*-*)
- noconfigdirs="$noconfigdirs target-libiberty"
- ;;
-esac
-
-# Disable libstdc++-v3 for some systems.
-case "${target}" in
- *-*-vxworks*)
- # VxWorks uses the Dinkumware C++ library.
- noconfigdirs="$noconfigdirs target-libstdc++-v3"
- ;;
- arm*-wince-pe*)
- # the C++ libraries don't build on top of CE's C libraries
- noconfigdirs="$noconfigdirs target-libstdc++-v3"
- ;;
- avr-*-*)
- noconfigdirs="$noconfigdirs target-libstdc++-v3"
- ;;
-esac
-
-# Disable Fortran for some systems.
-case "${target}" in
- mmix-*-*)
- # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
- unsupported_languages="$unsupported_languages fortran"
- ;;
-esac
-
-# Disable Java if libffi is not supported.
-case "${target}" in
- 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*)
- ;;
- x86_64-*-darwin[[912]]*)
- ;;
- *-*-darwin*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-netware*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-rtems*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-tpf*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-uclinux*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-vxworks*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- alpha*-*-*vms*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- arm-wince-pe)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- arm*-*-symbianelf*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- bfin-*-*)
- noconfigdirs="$noconfigdirs target-boehm-gc"
- ;;
- cris-*-* | crisv32-*-*)
- unsupported_languages="$unsupported_languages java"
- case "${target}" in
- *-*-linux*)
- ;;
- *) # See PR46792 regarding target-libffi.
- noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
- esac
- ;;
- 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
- # headers, crt*.o, etc., all of which are needed by these.
- unsupported_languages="$unsupported_languages java"
- ;;
- hppa*64*-*-hpux*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- hppa*-hp-hpux11*)
- ;;
- hppa*-*-hpux*)
- # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
- # build on HP-UX 10.20.
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- ia64*-*-*vms*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- i[[3456789]]86-w64-mingw*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- i[[3456789]]86-*-mingw*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- x86_64-*-mingw*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- mmix-*-*)
- noconfigdirs="$noconfigdirs target-libffi target-boehm-gc"
- ;;
- powerpc-*-aix*)
- # copied from rs6000-*-* entry
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- rs6000-*-aix*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- mips*-*-irix6*)
- # Linking libjava exceeds command-line length limits on at least
- # IRIX 6.2, but not on IRIX 6.5.
- # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
- # <oldham@codesourcery.com>
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
- *-*-lynxos*)
- noconfigdirs="$noconfigdirs ${libgcj}"
- ;;
-esac
-
# Default libgloss CPU subdirectory.
libgloss_dir="$target_cpu"
case "${target}" in
- sh*-*-pe|mips*-*-pe|*arm-wince-pe)
- libgloss_dir=wince
- ;;
- arm*-*-*)
- libgloss_dir=arm
- ;;
- cris-*-* | crisv32-*-*)
- libgloss_dir=cris
- ;;
- hppa*-*-*)
- libgloss_dir=pa
- ;;
- i[[3456789]]86-*-*)
- libgloss_dir=i386
- ;;
- m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
- libgloss_dir=m68hc11
- ;;
- m68*-*-* | fido-*-*)
- libgloss_dir=m68k
- ;;
- mips*-*-*)
- libgloss_dir=mips
- ;;
- powerpc*-*-*)
- libgloss_dir=rs6000
- ;;
- sparc*-*-*)
- libgloss_dir=sparc
- ;;
-esac
-
-# Disable newlib and libgloss for various target OSes.
-case "${target}" in
- alpha*-dec-osf*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- i[[3456789]]86-*-linux*)
- # This section makes it possible to build newlib natively on linux.
- # If we are using a cross compiler then don't configure newlib.
- if test x${is_cross_compiler} != xno ; then
- noconfigdirs="$noconfigdirs target-newlib"
- fi
- noconfigdirs="$noconfigdirs target-libgloss"
- # If we are not using a cross compiler, do configure newlib.
- # Note however, that newlib will only be configured in this situation
- # if the --with-newlib option has been given, because otherwise
- # 'target-newlib' will appear in skipdirs.
- ;;
- i[[3456789]]86-*-rdos*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- sh*-*-pe|mips*-*-pe|arm-wince-pe)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- sparc-*-sunos4*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-aix*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-beos*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
*-*-chorusos)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
- *-*-dragonfly*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-freebsd*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-lynxos*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-mingw*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-netbsd*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-netware*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-tpf*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-uclinux*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
- *-*-vxworks*)
- noconfigdirs="$noconfigdirs target-newlib target-libgloss"
- ;;
-esac
-
-case "${target}" in
- *-*-chorusos)
- ;;
powerpc-*-darwin*)
noconfigdirs="$noconfigdirs ld gas gdb gprof"
noconfigdirs="$noconfigdirs sim target-rda"
@@ -829,59 +538,128 @@ case "${target}" in
*-*-darwin*)
noconfigdirs="$noconfigdirs ld gas gdb gprof"
noconfigdirs="$noconfigdirs sim target-rda"
+ noconfigdirs="$noconfigdirs ${libgcj}"
;;
*-*-dragonfly*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
*-*-freebsd*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss"
if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
&& test -f /usr/local/include/gmp.h; then
with_gmp=/usr/local
fi
+
+ # Skip some stuff that's unsupported on some FreeBSD configurations.
+ case "${target}" in
+ i*86-*-*) ;;
+ alpha*-*-*) ;;
+ x86_64-*-*) ;;
+ *)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ esac
;;
*-*-kaos*)
# Remove unsupported stuff on all kaOS configurations.
+ skipdirs="target-libiberty"
noconfigdirs="$noconfigdirs target-libgloss"
;;
*-*-netbsd*)
+ # Skip some stuff on all NetBSD configurations.
+ noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss"
+
+ # Skip some stuff that's unsupported on some NetBSD configurations.
+ case "${target}" in
+ i*86-*-netbsdelf*) ;;
+ arm*-*-netbsdelf*) ;;
+ *)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ esac
;;
*-*-netware*)
+ noconfigdirs="$noconfigdirs target-newlib target-libiberty target-libgloss ${libgcj}"
;;
*-*-rtems*)
- noconfigdirs="$noconfigdirs target-libgloss"
+ skipdirs="${skipdirs} target-libiberty"
+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
# The tpf target doesn't support gdb yet.
*-*-tpf*)
- noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty ${libgcj} gdb tcl tk libgui itcl"
;;
*-*-uclinux*)
- noconfigdirs="$noconfigdirs target-rda"
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-rda ${libgcj}"
;;
*-*-vxworks*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss target-libiberty target-libstdc++-v3 ${libgcj}"
;;
alpha*-dec-osf*)
# ld works, but does not support shared libraries.
+ # newlib is not 64 bit ready.
# gas doesn't generate exception information.
- noconfigdirs="$noconfigdirs gas ld"
+ noconfigdirs="$noconfigdirs gas ld target-newlib target-libgloss"
;;
alpha*-*-*vms*)
- noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss ${libgcj}"
;;
- alpha*-*-*)
+ alpha*-*-linux*)
# newlib is not 64 bit ready
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
+ alpha*-*-*)
+ # newlib is not 64 bit ready
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
+ ;;
+ am33_2.0-*-linux*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
+ ;;
+ sh-*-linux*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-newlib target-libgloss"
+ ;;
sh*-*-pe|mips*-*-pe|*arm-wince-pe)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ noconfigdirs="$noconfigdirs target-libiberty"
noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
+ # the C++ libraries don't build on top of CE's C libraries
+ noconfigdirs="$noconfigdirs target-libstdc++-v3"
+ noconfigdirs="$noconfigdirs target-newlib"
+ libgloss_dir=wince
;;
arc-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
;;
+ arm-*-coff)
+ libgloss_dir=arm
+ ;;
+ arm-*-elf* | arm*-*-eabi* )
+ noconfigdirs="$noconfigdirs target-libffi"
+ libgloss_dir=arm
+ ;;
+ arm*-*-linux-gnueabi)
+ case ${with_newlib} in
+ no) noconfigdirs="$noconfigdirs target-newlib target-libgloss"
+ esac
+ libgloss_dir=arm
+ ;;
+ arm*-*-symbianelf*)
+ noconfigdirs="$noconfigdirs ${libgcj} target-libiberty"
+ libgloss_dir=arm
+ ;;
arm-*-pe*)
- noconfigdirs="$noconfigdirs target-libgloss"
+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
arm-*-riscix*)
noconfigdirs="$noconfigdirs ld target-libgloss"
;;
+ avr-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty target-libstdc++-v3 ${libgcj} target-libssp"
+ ;;
+ bfin-*-*)
+ unsupported_languages="$unsupported_languages java"
+ noconfigdirs="$noconfigdirs target-boehm-gc"
+ ;;
c4x-*-* | tic4x-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
;;
@@ -889,7 +667,17 @@ case "${target}" in
noconfigdirs="$noconfigdirs target-libgloss gdb"
;;
cr16-*-*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs ${libgcj} gdb"
+ ;;
+ cris-*-* | crisv32-*-*)
+ unsupported_languages="$unsupported_languages java"
+ case "${target}" in
+ *-*-linux*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss";;
+ *) # See PR46792 regarding target-libffi.
+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc";;
+ esac
+ libgloss_dir=cris
;;
d10v-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
@@ -898,13 +686,17 @@ case "${target}" in
noconfigdirs="$noconfigdirs gdb"
;;
fr30-*-elf*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs ${libgcj} gdb"
+ ;;
+ frv-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
;;
moxie-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
noconfigdirs="$noconfigdirs gprof"
;;
h8300*-*-*)
- noconfigdirs="$noconfigdirs target-libgloss"
+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}"
;;
h8500-*-*)
noconfigdirs="$noconfigdirs target-libgloss"
@@ -912,6 +704,10 @@ case "${target}" in
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
+ # headers, crt*.o, etc., all of which are needed by these.
+ noconfigdirs="$noconfigdirs target-zlib"
;;
hppa*-*-linux*)
;;
@@ -919,14 +715,18 @@ case "${target}" in
hppa*-*-lites* | \
hppa*-*-openbsd* | \
hppa*64*-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
;;
hppa*-hp-hpux11*)
noconfigdirs="$noconfigdirs ld"
;;
hppa*-*-pro*)
+ libgloss_dir=pa
;;
hppa*-*-*)
- noconfigdirs="$noconfigdirs ld"
+ # According to Alexandre Oliva <aoliva@redhat.com>, libjava won't
+ # build on HP-UX 10.20.
+ noconfigdirs="$noconfigdirs ld ${libgcj}"
;;
i960-*-*)
noconfigdirs="$noconfigdirs gdb"
@@ -937,16 +737,37 @@ case "${target}" in
;;
ia64*-**-hpux*)
# No ld support yet.
- noconfigdirs="$noconfigdirs libgui itcl ld"
+ noconfigdirs="$noconfigdirs ${libgcj} libgui itcl ld"
;;
ia64*-*-*vms*)
# No gdb or ld support yet.
- noconfigdirs="$noconfigdirs readline libgui itcl gdb ld"
+ noconfigdirs="$noconfigdirs ${libgcj} readline libgui itcl gdb ld"
+ ;;
+ i[[3456789]]86-*-coff | i[[3456789]]86-*-elf)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ libgloss_dir=i386
+ ;;
+ i[[3456789]]86-*-linux*)
+ # This section makes it possible to build newlib natively on linux.
+ # If we are using a cross compiler then don't configure newlib.
+ if test x${is_cross_compiler} != xno ; then
+ noconfigdirs="$noconfigdirs target-newlib"
+ fi
+ noconfigdirs="$noconfigdirs target-libgloss"
+ # If we are not using a cross compiler, do configure newlib.
+ # Note however, that newlib will only be configured in this situation
+ # if the --with-newlib option has been given, because otherwise
+ # 'target-newlib' will appear in skipdirs.
;;
i[[3456789]]86-w64-mingw*)
+ noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
;;
i[[3456789]]86-*-mingw*)
target_configdirs="$target_configdirs target-winsup"
+ noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
+ ;;
+ x86_64-*-mingw*)
+ noconfigdirs="$noconfigdirs target-libgloss target-newlib ${libgcj}"
;;
*-*-cygwin*)
target_configdirs="$target_configdirs target-libtermcap target-winsup"
@@ -958,6 +779,8 @@ case "${target}" in
echo "Warning: winsup/cygwin is missing so newlib can't be built."
fi
;;
+ i[[3456789]]86-*-interix* )
+ ;;
i[[3456789]]86-*-pe)
noconfigdirs="$noconfigdirs target-libgloss"
;;
@@ -976,20 +799,37 @@ case "${target}" in
noconfigdirs="$noconfigdirs target-libgloss"
;;
i[[3456789]]86-*-beos*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
;;
i[[3456789]]86-*-rdos*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
+ ;;
+ m32r-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty"
+ libgloss_dir=m68hc11
+ ;;
+ m68k-*-elf*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ m68*-*-* | fido-*-*)
+ libgloss_dir=m68k
;;
mmix-*-*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs target-libffi target-boehm-gc gdb"
+ unsupported_languages="$unsupported_languages fortran java"
;;
mt-*-*)
noconfigdirs="$noconfigdirs sim"
;;
+ picochip-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty"
+ ;;
powerpc-*-aix*)
# copied from rs6000-*-* entry
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
;;
powerpc*-*-winnt* | powerpc*-*-pe*)
target_configdirs="$target_configdirs target-winsup"
@@ -1000,66 +840,112 @@ case "${target}" in
# This is temporary until we can link against shared libraries
powerpcle-*-solaris*)
noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
+ libgloss_dir=rs6000
;;
powerpc-*-beos*)
- noconfigdirs="$noconfigdirs gdb"
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
+ ;;
+ powerpc-*-eabi)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ libgloss_dir=rs6000
+ ;;
+ powerpc-*-eabi* | powerpcle-*-eabi* | powerpc-*-rtems* )
+ libgloss_dir=rs6000
;;
rs6000-*-lynxos*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs target-newlib gprof ${libgcj}"
;;
rs6000-*-aix*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp target-newlib ${libgcj}"
;;
rs6000-*-*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof ${libgcj}"
;;
m68k-apollo-*)
noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
;;
microblaze*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof target-libssp ${libgcj}"
;;
mips*-sde-elf*)
+ skipdirs="$skipdirs target-libiberty"
+ noconfigdirs="$noconfigdirs ${libgcj}"
if test x$with_newlib = xyes; then
noconfigdirs="$noconfigdirs gprof"
fi
+ libgloss_dir=mips
;;
mips*-*-irix5*)
noconfigdirs="$noconfigdirs gprof target-libgloss"
;;
mips*-*-irix6*)
- noconfigdirs="$noconfigdirs gprof target-libgloss"
+ # Linking libjava exceeds command-line length limits on at least
+ # IRIX 6.2, but not on IRIX 6.5.
+ # Also, boehm-gc won't build on IRIX 6.5, according to Jeffrey Oldham
+ # <oldham@codesourcery.com>
+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
;;
mips*-*-bsd*)
noconfigdirs="$noconfigdirs gprof target-libgloss"
;;
mips*-*-linux*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
mips*-*-*)
- noconfigdirs="$noconfigdirs gprof"
+ noconfigdirs="$noconfigdirs gprof ${libgcj}"
+ libgloss_dir=mips
;;
sh-*-* | sh64-*-*)
case "${target}" in
sh*-*-elf)
- ;;
+ noconfigdirs="$noconfigdirs ${libgcj}" ;;
*)
- noconfigdirs="$noconfigdirs target-libgloss" ;;
+ noconfigdirs="$noconfigdirs target-libgloss ${libgcj}" ;;
esac
;;
+ sparclet-*-aout* | sparc86x-*-*)
+ libgloss_dir=sparc
+ ;;
+ sparc-*-elf*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
+ sparc64-*-elf*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ libgloss_dir=sparc
+ ;;
+ sparclite-*-*)
+ libgloss_dir=sparc
+ ;;
sparc-*-sunos4*)
- if test x${is_cross_compiler} = xno ; then
+ if test x${is_cross_compiler} != xno ; then
+ noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
+ else
use_gnu_ld=no
fi
;;
+ sparc-*-solaris* | sparc64-*-solaris* | sparcv9-*-solaris*)
+ ;;
tic6x-*-*)
- noconfigdirs="$noconfigdirs gdb sim"
+ noconfigdirs="$noconfigdirs gdb sim ${libgcj}"
;;
v810-*-*)
noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
;;
vax-*-*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
+ ;;
+ ip2k-*-*)
+ noconfigdirs="$noconfigdirs target-libiberty"
+ ;;
+ *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
noconfigdirs="$noconfigdirs target-newlib target-libgloss"
;;
+ *-*-lynxos*)
+ noconfigdirs="$noconfigdirs target-newlib target-libgloss ${libgcj}"
+ ;;
+ *-*-*)
+ noconfigdirs="$noconfigdirs ${libgcj}"
+ ;;
esac
# If we aren't building newlib, then don't build libgloss, since libgloss
@@ -1585,7 +1471,7 @@ ACX_ELF_TARGET_IFELSE([# ELF platforms build the lto-plugin always.
build_lto_plugin=yes
],[if test x"$default_enable_lto" = x"yes" ; then
case $target in
- *-apple-darwin9* | *-cygwin* | *-mingw*) ;;
+ *-apple-darwin9 | *-cygwin* | *-mingw*) ;;
# On other non-ELF platforms, LTO has yet to be validated.
*) enable_lto=no ;;
esac
@@ -2110,8 +1996,6 @@ if test "x$CXXFLAGS_FOR_TARGET" = x; then
fi
AC_SUBST(CXXFLAGS_FOR_TARGET)
-AC_SUBST(LDFLAGS_FOR_TARGET)
-
# Handle --with-headers=XXX. If the value is not "yes", the contents of
# the named directory are copied to $(tooldir)/sys-include.
if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
@@ -2222,12 +2106,46 @@ done
# the *-*-osname triplets last.
md_exec_prefix=
case "${target}" in
+ alpha*-*-*vms*)
+ md_exec_prefix=/gnu/lib/gcc-lib
+ ;;
i[[34567]]86-pc-msdosdjgpp*)
md_exec_prefix=/dev/env/DJDIR/bin
;;
+ i[[34567]]86-*-sco3.2v5*)
+ if test $with_gnu_as = yes; then
+ md_exec_prefix=/usr/gnu/bin
+ else
+ md_exec_prefix=/usr/ccs/bin/elf
+ fi
+ ;;
+
+ mn10300-*-* | \
+ powerpc-*-chorusos* | \
+ powerpc*-*-eabi* | \
+ powerpc*-*-sysv* | \
+ powerpc*-*-kaos* | \
+ s390x-ibm-tpf*)
+ md_exec_prefix=/usr/ccs/bin
+ ;;
+ sparc64-*-elf*)
+ ;;
+ v850*-*-*)
+ md_exec_prefix=/usr/ccs/bin
+ ;;
+ xtensa*-*-elf*)
+ ;;
+
+ *-*-beos* | \
+ *-*-elf* | \
*-*-hpux* | \
+ *-*-netware* | \
*-*-nto-qnx* | \
- *-*-solaris2*)
+ *-*-rtems* | \
+ *-*-solaris2* | \
+ *-*-sysv[[45]]* | \
+ *-*-vxworks* | \
+ *-wrs-windiss)
md_exec_prefix=/usr/ccs/bin
;;
esac
@@ -2307,6 +2225,14 @@ if test x${with_stabs} = x ; then
esac
fi
+# hpux11 in 64bit mode has libraries in a weird place. Arrange to find
+# them automatically.
+case "${host}" in
+ hppa*64*-*-hpux11*)
+ extra_host_args="$extra_host_args -x-libraries=/usr/lib/pa20_64 -x-includes=/usr/X11R6/include"
+ ;;
+esac
+
# Some systems (e.g., one of the i386-aix systems the gas testers are
# using) don't handle "\$" correctly, so don't use it here.
tooldir='${exec_prefix}'/${target_noncanonical}
@@ -2350,6 +2276,34 @@ case $we_are_ok in
esac
rm -f conftest*
+# The Solaris /usr/ucb/cc compiler does not appear to work.
+case "${host}" in
+ sparc-sun-solaris2*)
+ CCBASE="`echo ${CC-cc} | sed 's/ .*$//'`"
+ if test "`type $CCBASE | sed 's/^[[^/]]*//'`" = "/usr/ucb/cc" ; then
+ could_use=
+ test -d /opt/SUNWspro/bin && could_use="/opt/SUNWspro/bin"
+ if test -d /opt/cygnus/bin ; then
+ if test "$could_use" = "" ; then
+ could_use="/opt/cygnus/bin"
+ else
+ could_use="$could_use or /opt/cygnus/bin"
+ fi
+ fi
+ if test "$could_use" = "" ; then
+ echo "Warning: compilation may fail because you're using"
+ echo "/usr/ucb/cc. You should change your PATH or CC "
+ echo "variable and rerun configure."
+ else
+ echo "Warning: compilation may fail because you're using"
+ echo "/usr/ucb/cc, when you should use the C compiler from"
+ echo "$could_use. You should change your"
+ echo "PATH or CC variable and rerun configure."
+ fi
+ fi
+ ;;
+esac
+
# Decide which environment variable is used to find dynamic libraries.
case "${host}" in
*-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
@@ -2997,6 +2951,7 @@ AC_SUBST(NM_FOR_BUILD)
AC_SUBST(RANLIB_FOR_BUILD)
AC_SUBST(WINDMC_FOR_BUILD)
AC_SUBST(WINDRES_FOR_BUILD)
+AC_SUBST(config_shell)
# Generate default definitions for YACC, M4, LEX and other programs that run
# on the build machine. These are used if the Makefile can't locate these
@@ -3006,6 +2961,7 @@ MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
AC_CHECK_PROGS([YACC], ['bison -y' byacc yacc], [$MISSING bison -y])
case " $build_configdirs " in
*" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
+ *" byacc "*) YACC='$$r/$(BUILD_SUBDIR)/byacc/byacc' ;;
esac
AC_CHECK_PROGS([BISON], [bison], [$MISSING bison])