Sun Sep 20 00:58:12 1998 Andreas Schwab <schwab@issan.informatik.uni-dortmund.de>
[deliverable/binutils-gdb.git] / gas / configure.in
index 093014ba1fea01c9394b03701f6b278a827b9378..5b321ec9335842318e154f2e5c0499014decc59a 100644 (file)
@@ -43,6 +43,9 @@ AM_CONFIG_HEADER(config.h:config.in)
 
 te_file=generic
 
+# Makefile target for installing gas in $(tooldir)/bin.
+install_tooldir=install-exec-tooldir
+
 canon_targets=""
 if test -n "$enable_targets" ; then
   for t in `echo $enable_targets | sed 's/,/ /g'`; do
@@ -136,13 +139,16 @@ changequote([,])dnl
       arm-*-riscix*)       fmt=aout em=riscix ;;
       arm-*-aout)          fmt=aout ;;
       arm-*-coff | thumb-*-coff)           fmt=coff ;;
+      arm-*-elf | thumb-*-elf)              fmt=elf ;;
       arm-*-riscix*)        fmt=aout ;;
       arm-*-pe | thumb-*-pe)               fmt=coff em=pe ;;
 
       d10v-*-*)                    fmt=elf bfd_gas=yes ;;
-# start-sanitize-d30v
       d30v-*-*)                    fmt=elf bfd_gas=yes ;;
-# end-sanitize-d30v
+
+# start-sanitize-sky
+      dvp-*-*)             fmt=elf bfd_gas=yes install_tooldir= ;;
+# end-sanitize-sky
 
       hppa-*-*elf*)         fmt=elf em=hppa ;;
       hppa-*-lites*)        fmt=elf em=hppa ;;
@@ -156,17 +162,21 @@ changequote([,])dnl
 
       i386-ibm-aix*)        fmt=coff em=i386aix ;;
       i386-sequent-bsd*)    fmt=aout em=dynix bfd_gas=yes ;;
+dnl start-sanitize-beos
+      i386-*-beospe*)       fmt=coff em=pe bfd_gas=yes ;;
+      i386-*-beoself* | i386-*-beos*) fmt=elf bfd_gas=yes ;;
+dnl end-sanitize-beos
       i386-*-bsd*)          fmt=aout em=386bsd ;;
       i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
       i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;;
       i386-*-openbsd*)      fmt=aout em=nbsd bfd_gas=yes;;
       i386-*-linux*aout* | i386-*-linuxoldld)   fmt=aout em=linux ;;
       i386-*-linux*coff*)   fmt=coff em=linux ;;
-      i386-*-linux-gnu*)    fmt=elf em=linux ;;
+      i386-*-linux-gnu*)    fmt=elf em=linux bfd_gas=yes ;;
       i386-*-lynxos*)       fmt=coff em=lynx ;;
       i386-*-sysv4* | i386-*-solaris* | i386-*-elf)
-                           fmt=elf ;;
-      i386-*-freebsdelf*)   fmt=elf ;;
+                           fmt=elf bfd_gas=yes ;;
+      i386-*-freebsdelf*)   fmt=elf bfd_gas=yes ;;
       i386-*-freebsd*)      fmt=aout em=386bsd ;;
       i386-*-coff | i386-*-sysv* | i386-*-sco3.2v5*coff | i386-*-isc*)
                           fmt=coff ;;
@@ -286,8 +296,8 @@ changequote([,])dnl
       sparc-fujitsu-none)   fmt=aout ;;
       sparc-*-elf | sparc-*-sysv4* | sparc-*-solaris*)
                            fmt=elf ;;
-      sparc-*-netbsd*)      fmt=aout em=nbsd bfd_gas=yes ;;
-      sparc-*-openbsd*)     fmt=aout em=nbsd bfd_gas=yes ;;
+      sparc-*-netbsd*)      fmt=aout em=nbsd ;;
+      sparc-*-openbsd*)     fmt=aout em=nbsd ;;
 
       tic30-*-*aout*)      fmt=aout bfd_gas=yes ;;
       tic30-*-*coff*)       fmt=coff bfd_gas=yes ;;
@@ -295,10 +305,6 @@ changequote([,])dnl
       tic80-*-*)           fmt=coff ;;
 # end-sanitize-tic80
 
-# start-sanitize-sky
-      dvp-*-*)             fmt=elf bfd_gas=yes ;;
-# end-sanitize-sky
-
       v850-*-*)                    fmt=elf bfd_gas=yes ;;
 
 # start-sanitize-v850e
@@ -368,7 +374,7 @@ changequote([,])dnl
 
     case ${cpu_type} in
       m32r)
-       case ${extra_objects} in
+       case "x${extra_objects}" in
        *cgen.o*) ;;
        *) extra_objects="$extra_objects cgen.o"
           AC_DEFINE(USING_CGEN)
@@ -465,6 +471,17 @@ case "${obj_format}" in
   "") AC_MSG_ERROR(GAS does not know what format to use for target ${target}) ;;
 esac
 
+# Unfortunately the cpu in cpu-opc.h file isn't always $(TARGET_CPU).
+cgen_cpu_prefix=""
+case "x${extra_objects}" in
+  *cgen.o*)
+       case ${target_cpu} in
+         *) cgen_cpu_prefix=${target_cpu} ;;
+       esac
+       ;;
+esac
+AC_SUBST(cgen_cpu_prefix)
+
 dnl
 dnl Make sure the desired support files exist.
 dnl
@@ -588,6 +605,7 @@ esac
 AC_SUBST(target_cpu_type)
 AC_SUBST(obj_format)
 AC_SUBST(te_file)
+AC_SUBST(install_tooldir)
 AC_SUBST(atof)
 dnl AC_SUBST(emulation)
 
This page took 0.024617 seconds and 4 git commands to generate.