From ba4513e74f5c98e2e5ede750d38537f216b2e45d Mon Sep 17 00:00:00 2001 From: "David D. Zuhn" Date: Sat, 12 Dec 1992 04:20:03 +0000 Subject: [PATCH] * configure.in: handle some programs as cross-only, and others as native only * test-build.mk: handle partial holes in a more generic manner * Makefile.in: m4 depends on libiberty also updated dates in test-build.mk and build-all.mk --- build-all.mk | 2 +- configure.in | 25 +++++++++++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/build-all.mk b/build-all.mk index 0886fdfc03e..5758deee6e4 100644 --- a/build-all.mk +++ b/build-all.mk @@ -15,7 +15,7 @@ TREE = devo NATIVE = native -DATE = 921203 +DATE = 921208 TAG = latest-$(DATE) diff --git a/configure.in b/configure.in index cc4e1421c2f..0a3ba281bca 100644 --- a/configure.in +++ b/configure.in @@ -3,7 +3,13 @@ # script appropriate for this directory. For more information, check # any existing configure script. -configdirs="m4 autoconf mmalloc libiberty texinfo flex byacc bison opcodes bfd binutils gcc readline glob ld gas gdb emacs ispell make grep diff rcs cvs patch send_pr libg++ newlib gprof gdbtest libm tgas etc tcl expect tk deja-gnu z8ksim sed fileutils shellutils textutils time wdiff find" + +configdirs="mmalloc libiberty texinfo flex byacc bison opcodes bfd binutils gcc readline glob ld gas gdb make patch send_pr libg++ gprof gdbtest libm tgas etc tcl expect tk deja-gnu z8ksim" + +cross_only_tools="xiberty newlib" + +native_only_tools="m4 autoconf ispell grep diff rcs cvs sed fileutils shellutils textutils wdiff find emacs" + srctrigger=move-if-change srcname="gnu development package" @@ -42,16 +48,15 @@ case "${target}" in esac -# remove various programs from consideration. some of these are not -# reasonable to build for a native compilation (eg newlib). some of these -# aren't built for each cross compiler toolchain (eg emacs). +# some tools are only suitable for building in a "native" situation. +# Those are added when we have a host==target configuration. For cross +# toolchains, we add some directories that should only be useful in a +# cross-compiler. if [ x"${host}" = x"${target}" ] ; then - # remove from native toolchains - configdirs=`echo ${configdirs} | sed -e 's/newlib//'` + configdirs="${configdirs} ${native_only_tools}" else - # remove from cross compilers in general - configdirs=`echo ${configdirs} | sed -e 's/emacs//;s/ispell//;s/rcs//;s/cvs//'` + configdirs="${configdirs} ${cross_only_tools}" fi # remove more programs from consideration, based on the host or @@ -69,13 +74,13 @@ case "${target}" in configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'` ;; rs6000-*-*) - configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'` + configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//;s/tk//'` ;; hppa*-*-*) configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//;s/bfd//;s/gdb//'` ;; *-*-solaris2) - configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//;s/emacs//'` + configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'` ;; esac -- 2.30.2