aboutsummaryrefslogtreecommitdiff
path: root/gas/configure.in
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1991-08-28 21:49:12 +0000
committerK. Richard Pixley <rich@cygnus>1991-08-28 21:49:12 +0000
commitb678740d045e3f7eaca5a572eae61e414c3d1a0d (patch)
tree73fc58c87df0bbe6b2cb65f338a192d6b5980422 /gas/configure.in
parentdae50edd99140c6a30e8906058c43c1d1bc4c17f (diff)
downloadgdb-b678740d045e3f7eaca5a572eae61e414c3d1a0d.zip
gdb-b678740d045e3f7eaca5a572eae61e414c3d1a0d.tar.gz
gdb-b678740d045e3f7eaca5a572eae61e414c3d1a0d.tar.bz2
Update to current standards.
Diffstat (limited to 'gas/configure.in')
-rw-r--r--gas/configure.in68
1 files changed, 36 insertions, 32 deletions
diff --git a/gas/configure.in b/gas/configure.in
index 1532d36..d305443 100644
--- a/gas/configure.in
+++ b/gas/configure.in
@@ -9,54 +9,58 @@ targetdependent=true
# per-host:
-# per-target:
+gas_host=generic
-# assign cpu type
-emulation=generic
-
-case ${target} in
-sun4* | sparc*)
- cpu_type=sparc
- ;;
-sun3*)
- cpu_type=m68k
- ;;
-i386*)
- cpu_type=i386
- ;;
-i960*)
- cpu_type=i960
- emulation=ic960
- ;;
-a29k*)
- cpu_type=a29k
- ;;
-m68k*)
- cpu_type=m68k
+case "${host_cpu}" in
+a29k | rs6000 | vax) gas_host=${host_cpu} ;;
+mips)
+ case "${host_os}" in
+ ultrix) gas_host=decstation ;;
+ esac
;;
*)
- cpu_type=generic
+ case "${host_os}" in
+ ansi | ultrix | hpux | sysv*) gas_host=${host_os} ;;
+ *)
+ case "${host_vendor}" in
+ sun)
+ case "${host_cpu}" in
+ m68k) gas_host=sun3 ;;
+ i386) gas_host=sun386 ;;
+ sparc) gas_host=sun4 ;;
+ esac
+ ;;
+ esac
+ ;;
+ esac
;;
esac
+# per-target:
+
+# assign cpu type
+emulation=generic
+
+cpu_type=${target_cpu}
+
# assign object format
-case ${target} in
-*-coff)
+case ${target_os} in
+sysv* | -coff*)
obj_format=coff
;;
-*-bout)
+bout*)
obj_format=bout
;;
+bsd* | sunos* | *)
+ obj_format=aout
+ ;;
generic)
obj_format=generic
;;
-*)
- obj_format=aout
- ;;
esac
# assign floating point type
-case ${target} in
+case ${target_cpu} in
vax)
atof=vax
;;
@@ -65,7 +69,7 @@ vax)
;;
esac
-files="config/ho-${host}.h config/tc-${cpu_type}.c \
+files="config/ho-${gas_host}.h config/tc-${cpu_type}.c \
config/tc-${cpu_type}.h config/te-${emulation}.h \
config/obj-${obj_format}.h config/obj-${obj_format}.c \
config/atof-${atof}.c"