case "${target_vendor}" in
amd)
case "${target_os}" in
- ebmon) bfd_target="ebmon29k" ;;
- udi) bfd_target="udi29k" ;;
- *) echo "bad target_os for amd" ;;
+ ebmon) bfd_target="ebmon29k"
+ ;;
+ udi) bfd_target="udi29k"
+ ;;
+ *) echo "bad target_os for amd" 1>&2
+ ;;
esac
;;
*)
;;
esac
-case "${target_cpu}" in
- mips) configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
+#
+# remove various programs from consideration, based on the target
+# this usually means that a port of the program doesn't exist yet.
+
+if [ x"${host}" = x"${target}" ] ; then
+ configdirs=`echo ${configdirs} | sed -e 's/newlib//;s/libgcc//'`
+else
+ true
+fi
+
+case "${target}" in
+mips-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
+ ;;
+rs6000-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//'`
+ ;;
+hppa*-*-*)
+ configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/emacs//'`
+ ;;
+*-*-solaris2)
+ configdirs=`echo ${configdirs} | sed -e 's/gas//'`
;;
- rs6000)configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//'`
esac
+
target_makefile_frag=config/mt-${bfd_target}
#