Recognize and sanitize r16 as a target.
authorMichael Tiemann <tiemann@cygnus>
Thu, 24 Nov 1994 22:02:18 +0000 (22:02 +0000)
committerMichael Tiemann <tiemann@cygnus>
Thu, 24 Nov 1994 22:02:18 +0000 (22:02 +0000)
ld/.Sanitize
ld/configure.in

index 3ef50a7812ba47a1752782f0dc58d4625b7badab..b01e83ee57c0aec46124b75fdbcd99b1c6ac2c68 100644 (file)
@@ -106,4 +106,40 @@ else
        done
 fi
 
+r16_files = "configure.in"
+
+if ( echo $* | grep keep\-r16 > /dev/null ) ; then
+       for i in $r16_files ; do
+               if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Keeping r16 stuff in $i
+                       fi
+               fi
+       done
+else
+       for i in $r16_files ; do
+               if test ! -d $i && (grep sanitize-r16 $i > /dev/null) ; then
+                       if [ -n "${verbose}" ] ; then
+                               echo Removing traces of \"r16\" from $i...
+                       fi
+                       cp $i new
+                       sed '/start\-sanitize\-r16/,/end-\sanitize\-r16/d' < $i > new
+                       if [ -n "${safe}" -a ! -f .Recover/$i ] ; then
+                               if [ -n "${verbose}" ] ; then
+                                       echo Caching $i in .Recover...
+                               fi
+                               mv $i .Recover
+                       fi
+                       mv new $i
+               fi
+       done
+fi
+
+for i in * ; do
+       if test ! -d $i && (grep sanitize $i > /dev/null) ; then
+               echo '***' Some mentions of Sanitize are still left in $i! 1>&2
+       fi
+done
+
+#
 # End of file.
index 1d1c73cb03f7f77cde60f8e206401b191906b1aa..00fef3321f948e88661477de9e2af6633fa351af 100644 (file)
@@ -89,12 +89,16 @@ case "${targ}" in
   h8300h-*-hms)                ld_target=cf-h8300h ;;
   h8500-*-hms)         ld_target=coff-h8500 ;;
   sh-*-*)              ld_target=coff-sh ;;
+# start-sanitize-r16
+  r16-*-*)             ld_target=r16-aout ;;
+# end-sanitize-r16
   m68k-sony-*)         ld_target=news ;;
   m68k-hp-bsd*)                ld_target=hp300bsd ;;
   m68*-*-aout)         ld_target=m68k ;;
   m68*-*-coff)         ld_target=m68k-coff ;;
   m68*-*-hpux*)                ld_target=hp300hpux ;;
   m68*-*-lynxos*)      ld_target=m68k-lynx ;;
+  m68*-*-netbsd*)      ld_target=m68k-nbsd ;;
   m68*-*-*)
     echo '***' "Unknown m68k target vendor for ld:" ${target_vendor} 1>&2
                        exit 1 ;;