Tue Aug 8 23:41:25 1995 Alan Modra <alan@spri.levels.unisa.edu.au>
[deliverable/binutils-gdb.git] / gas / configure.in
index aa846ef1d34a79d877fb7dc2637b19616ea5532d..bb9034981db84ec6dcd79a49d148dc0dc42e979d 100644 (file)
@@ -38,6 +38,8 @@ te_file=generic
 
 # check for architecture variants
 case ${target_cpu} in
+  armeb)       cpu_type=arm endian=big ;;
+  arm*)                cpu_type=arm endian=little ;;
   hppa*)       cpu_type=hppa ;;
 changequote(,)dnl
   i[45]86)     cpu_type=i386 ;;
@@ -107,7 +109,7 @@ changequote([,])dnl
       rs6000*)         cpu_type=ppc ;;
       sparc64)         cpu_type=sparc obj_format=elf want_sparcv9=true ;;
       sparclite*)      cpu_type=sparc ;;
-      *)               cpu_type=${target_cpu} ;;
+      *)               cpu_type=${cpu} ;;
     esac
 
     if test ${this_target} = $target ; then
@@ -135,7 +137,15 @@ changequote([,])dnl
       arc-*-elf*)           fmt=elf bfd_gas=yes ;;
 # end-sanitize-arc
 
+      arm-*-riscix*)       fmt=aout targ=arm-lit ;;
+      arm-*-aout)          fmt=aout
+                           case "$endian" in
+                             big)      targ=arm-big ;;
+                             *)        targ=arm-lit ;;
+                           esac
+                           ;;
       arm-*-riscix*)        fmt=aout ;;
+      arm-*-pe)             fmt=coff targ=armcoff em=pe ;;
 
       hppa-*-*elf*)         fmt=elf em=hppa ;;
       hppa-*-lites*)        fmt=elf em=hppa ;;
@@ -151,7 +161,7 @@ changequote([,])dnl
       i386-*-bsd*)          fmt=aout em=386bsd ;;
       i386-*-netbsd0.8)     fmt=aout em=386bsd ;;
       i386-*-netbsd*)       fmt=aout em=nbsd bfd_gas=yes;;
-      i386-*-linux*aout*)   fmt=aout  em=linux ;;
+      i386-*-linux*aout* | i386-*-linuxoldld)   fmt=aout em=linux ;;
       i386-*-linux*coff*)   fmt=coff em=linux
                             targ=i386coff ;;
       i386-*-linux*)        fmt=elf em=linux ;;
@@ -163,11 +173,14 @@ changequote([,])dnl
                            fmt=coff targ=i386coff ;;
       i386-*-vsta)          fmt=aout ;;
       i386-*-go32)          fmt=coff targ=i386coff ;;
-      i386-*-gnu*elf*)      fmt=elf ;;
-      i386-*-mach* | i386-*-gnu*)
+      i386-*-gnu*)          fmt=elf ;;
+      i386-*-mach*)
                            fmt=aout em=mach bfd_gas=yes ;;
       i386-*-msdos*)        fmt=aout ;;
-
+      i386-*-moss*)        fmt=elf ;;
+      i386-*-pe)            fmt=coff targ=i386coff em=pe ;;
+      i386-*-win32)         fmt=coff targ=i386coff em=pe ;;
+      i386-*-*nt)           fmt=coff targ=i386coff em=pe ;;
       i960-*-bout)          fmt=bout ;;
       i960-*-coff)          fmt=coff em=ic960 targ=ic960coff ;;
       i960-*-nindy*)        fmt=bout ;;
@@ -307,14 +320,14 @@ changequote([,])dnl
 # From target name and format, produce a list of supported emulations.
 
     case ${generic_target}-${fmt} in
-      mips-*-irix5*-*) emulation="mipsbelf mipslelf mipsbecoff mipslecoff" ;;
+      mips-*-irix5*-*) emulation="mipsbelf mipslelf mipself mipsbecoff mipslecoff mipsecoff" ;;
       mips-*-*-ecoff)  case "$endian" in
-                       big)    emulation="mipsbecoff mipslecoff" ;;
-                       *)      emulation="mipslecoff mipsbecoff" ;;
+                       big)    emulation="mipsbecoff mipslecoff mipsecoff" ;;
+                       *)      emulation="mipslecoff mipsbecoff mipsecoff" ;;
                        esac ;;
       mips-*-*-elf)    case "$endian" in
-                       big)    emulation="mipsbelf mipslelf" ;;
-                       *)      emulation="mipslelf mipsbelf" ;;
+                       big)    emulation="mipsbelf mipslelf mipself" ;;
+                       *)      emulation="mipslelf mipsbelf mipself" ;;
                        esac ;;
     esac
 
@@ -324,6 +337,10 @@ changequote([,])dnl
 
     test -n "$want_sparcv9" && AC_DEFINE(sparcv9)
 
+    case ${cpu_type} in
+      m68k) extra_objects="$extra_objects m68k-parse.o" ;;
+    esac
+
 done
 
 # Assign floating point type.  Most processors with FP support
@@ -342,8 +359,8 @@ dnl
 dnl Make sure the desired support files exist.
 dnl
 
-if test ! -r ${srcdir}/config/tc-${cpu_type}.c; then
-  AC_MSG_ERROR(GAS does not support target CPU ${cpu_type})
+if test ! -r ${srcdir}/config/tc-${target_cpu_type}.c; then
+  AC_MSG_ERROR(GAS does not support target CPU ${target_cpu_type})
 fi
 
 if test ! -r ${srcdir}/config/obj-${obj_format}.c; then
@@ -448,14 +465,14 @@ AC_SUBST(extra_objects)
 AC_DEFINE_UNQUOTED(EMULATIONS, $EMULATIONS)
 AC_DEFINE_UNQUOTED(DEFAULT_EMULATION, "$DEFAULT_EMULATION")
 
-files="config/tc-${cpu_type}.c config/tc-${cpu_type}.h \
+files="config/tc-${target_cpu_type}.c config/tc-${target_cpu_type}.h \
        config/obj-${obj_format}.h config/obj-${obj_format}.c \
        config/te-${te_file}.h config/atof-${atof}.c \
        $extra_files"
 links="targ-cpu.c targ-cpu.h obj-format.h obj-format.c targ-env.h atof-targ.c \
        $extra_links"
 
-case ${primary_bfd_gas}-${cpu_type}-${obj_format} in
+case ${primary_bfd_gas}-${target_cpu_type}-${obj_format} in
   yes-*-coff)  need_bfd=yes ;;
   no-*-coff)   need_bfd=yes
                AC_DEFINE(MANY_SEGMENTS) ;;
@@ -469,7 +486,7 @@ case ${reject_dev_configs}-${dev} in
     ;;
 esac
 
-AC_SUBST(cpu_type)
+AC_SUBST(target_cpu_type)
 AC_SUBST(obj_format)
 AC_SUBST(atof)
 dnl AC_SUBST(emulation)
@@ -519,6 +536,9 @@ AC_C_INLINE
 # VMS doesn't have unlink.
 AC_CHECK_FUNCS(unlink remove, break)
 
+# Some systems don't have sbrk().
+AC_CHECK_FUNCS(sbrk)
+
 # Some non-ANSI preprocessors botch requoting inside strings.  That's bad
 # enough, but on some of those systems, the assert macro relies on requoting
 # working properly!
This page took 0.024896 seconds and 4 git commands to generate.