From: Niklas Hallqvist Date: Sat, 28 Oct 1995 00:34:10 +0000 (+0000) Subject: Separate i386 & mips NetBSD configurations from other BSD ones. Don't assume X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=69a374c0c47b6d8f13a4854217bdc4fe11a9c010;p=binutils-gdb.git Separate i386 & mips NetBSD configurations from other BSD ones. Don't assume DEC is the only thing NetBSD/mips run on. Add {m68k,ns32k,sparc}-*-netbsd* configurations. Add support for m68k4k NetBSD object format. --- diff --git a/bfd/configure b/bfd/configure index 9ce2cbc1cd3..401236eae1e 100755 --- a/bfd/configure +++ b/bfd/configure @@ -1001,10 +1001,17 @@ EOF EOF ;; - i[345]86-*-bsd* | i[345]86-*-freebsd* | i[345]86-*-netbsd*) + i[345]86-*-bsd* | i[345]86-*-freebsd*) COREFILE=trad-core.o cat >> confdefs.h <<\EOF #define TRAD_HEADER "hosts/i386bsd.h" +EOF + + ;; + i[345]86-*-netbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/i386nbsd.h" EOF ;; @@ -1052,7 +1059,13 @@ EOF EOF ;; - mips-dec-netbsd*) ;; + mips-*-netbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/mipsnbsd.h" +EOF + + ;; mips-dec-*) COREFILE=trad-core.o cat >> confdefs.h <<\EOF @@ -1104,6 +1117,13 @@ EOF COREFILE=trad-core.o cat >> confdefs.h <<\EOF #define TRAD_HEADER "hosts/news.h" +EOF + + ;; + m68*-*-netbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/m68knbsd.h" EOF ;; @@ -1120,6 +1140,13 @@ EOF COREFILE=trad-core.o cat >> confdefs.h <<\EOF #define TRAD_HEADER "hosts/pc532mach.h" +EOF + + ;; + ns32k-*-netbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/ns32knbsd.h" EOF ;; @@ -1128,6 +1155,13 @@ EOF rs6000-*-*) COREFILE=rs6000-core.o ;; powerpc-*-aix4*) COREFILE=rs6000-core.o ;; powerpc-*-aix*) COREFILE=rs6000-core.o ;; + sparc-*-netbsd*) + COREFILE=trad-core.o + cat >> confdefs.h <<\EOF +#define TRAD_HEADER "hosts/sparcnbsd.h" +EOF + + ;; tahoe-*-*) COREFILE=trad-core.o cat >> confdefs.h <<\EOF @@ -1178,7 +1212,7 @@ EOF echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < int main() { return 0; } @@ -1354,6 +1388,7 @@ do m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;; m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o stab-syms.o" ;; m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o stab-syms.o" ;; + m68k4knetbsd_vec) tb="$tb m68k4knetbsd.o aout32.o stab-syms.o" ;; m88kbcs_vec) tb="$tb coff-m88k.o" ;; newsos3_vec) tb="$tb newsos3.o aout32.o stab-syms.o" ;; nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;; diff --git a/bfd/configure.in b/bfd/configure.in index 4121c88797d..54ba855e8b0 100644 --- a/bfd/configure.in +++ b/bfd/configure.in @@ -117,11 +117,17 @@ changequote([,])dnl AC_DEFINE(TRAD_HEADER,"hosts/symmetry.h") ;; changequote(,)dnl - i[345]86-*-bsd* | i[345]86-*-freebsd* | i[345]86-*-netbsd*) + i[345]86-*-bsd* | i[345]86-*-freebsd*) changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/i386bsd.h") ;; +changequote(,)dnl + i[345]86-*-netbsd*) +changequote([,])dnl + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/i386nbsd.h") + ;; changequote(,)dnl i[345]86-esix-sysv3*) changequote([,])dnl @@ -158,7 +164,10 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/mipsmach3.h") ;; - mips-dec-netbsd*) ;; + mips-*-netbsd*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/mipsnbsd.h") + ;; mips-dec-*) COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/decstation.h") @@ -192,6 +201,10 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/news.h") ;; + m68*-*-netbsd*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/m68knbsd.h") + ;; m88*-*-sysv4*) ;; m88*-motorola-sysv*) COREFILE=trad-core.o ;; m88*-*-mach3*) @@ -202,11 +215,19 @@ changequote([,])dnl COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/pc532mach.h") ;; + ns32k-*-netbsd*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/ns32knbsd.h") + ;; rs6000-*-lynx*) COREFILE=lynx-core.o ;; rs6000-*-aix4*) COREFILE=rs6000-core.o ;; rs6000-*-*) COREFILE=rs6000-core.o ;; powerpc-*-aix4*) COREFILE=rs6000-core.o ;; powerpc-*-aix*) COREFILE=rs6000-core.o ;; + sparc-*-netbsd*) + COREFILE=trad-core.o + AC_DEFINE(TRAD_HEADER,"hosts/sparcnbsd.h") + ;; tahoe-*-*) COREFILE=trad-core.o AC_DEFINE(TRAD_HEADER,"hosts/tahoe.h") @@ -399,6 +420,7 @@ do m68klynx_aout_vec) tb="$tb m68klynx.o lynx-core.o aout32.o stab-syms.o" ;; m68klynx_coff_vec) tb="$tb cf-m68klynx.o coff-m68k.o cofflink.o lynx-core.o stab-syms.o" ;; m68knetbsd_vec) tb="$tb m68knetbsd.o aout32.o stab-syms.o" ;; + m68k4knetbsd_vec) tb="$tb m68k4knetbsd.o aout32.o stab-syms.o" ;; m88kbcs_vec) tb="$tb coff-m88k.o" ;; newsos3_vec) tb="$tb newsos3.o aout32.o stab-syms.o" ;; nlm32_i386_vec) tb="$tb nlm32-i386.o nlm32.o nlm.o" ;;