diff options
author | Ian Lance Taylor <ian@airs.com> | 1995-09-01 22:23:04 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1995-09-01 22:23:04 +0000 |
commit | a52a3ce8e09a06a626cec899dfaf1fca9997e561 (patch) | |
tree | f7184e30467ee416489c945d676b0d23b296a221 /bfd/configure | |
parent | c08e5694d93adc19e2227a86bc1fe9f2cb2ff3f8 (diff) | |
download | gdb-a52a3ce8e09a06a626cec899dfaf1fca9997e561.zip gdb-a52a3ce8e09a06a626cec899dfaf1fca9997e561.tar.gz gdb-a52a3ce8e09a06a626cec899dfaf1fca9997e561.tar.bz2 |
* configure.in: For a native configuration, set COREFILE and
COREFLAG based on the canonical host name.
* configure: Rebuild.
* Makefile.in: Rebuild dependencies.
(ALL_CFLAGS): Add @COREFLAG@.
(OFILES): Replace $(HDEPFILES) with @COREFILE@.
* coff-rs6000.c: Check AIX_CORE rather than HOST_AIX for core file
support routines. Check LYNX_CORE rather than HOST_LYNX.
* lynx-core.c: Check LYNX_CORE rather than HOST_LYNX.
* i386lynx.c: Likewise.
* m68klynx.c: Likewise.
* sparclynx.c: Likewise.
* rs6000-core.c: Check AIX_CORE rather than HOST_AIX.
* *-core.c: Comment changes.
* config/decstation.mh (HDEPFILES): Remove.
(HDEFINES): Remove -DTRAD_CORE.
* config/irix3.mh (RANLIB): Remove.
* config/irix4.mh (HDEPFILES, RANLIB): Remove.
(HDEFINES): Remove -DIRIX_CORE.
* config/riscos.mh (RANLIB, HDEPFILES): Remove.
(HDEFINES): Remove -DTRAD_CORE.
* config/ncr3000.mh (AR_FLAGS, RANLIB): Remove.
* config/ultra3.mh (RANLIB): Remove.
* config/aix4.mh, config/alphaosf.mh, config/amix.mh: Remove.
* config/apollo.mh, config/delta68.mh, config/delta88.mh: Remove.
* config/dpx2.mh, config/esix.mh, config/harris.mh: Remove.
* config/hp300.mh, config/hp300bsd.mh, config/hppabsd.mh: Remove.
* config/hppahpux.mh, config/hppaosf.mh: Remove.
* config/i386aix.mh, config/i386bsd.mh: Remove.
* config/i386linux.mh, config/i386mach3.mh: Remove.
* config/i386sco.mh, config/i386v.mh, config/i386v4.mh: Remove.
* config/irix5.mh, config/m88kmach3.mh, config/mipsbsd.mh: Remove.
* config/mipsmach3.mh, config/news-mips.mh: Remove.
* config/news.mh, config/pc532mach.mh, config/riscix.mh: Remove.
* config/rs600.mh, config/rs6000lynx.mh: Remove.
* config/solaris2.mh, config/stratus.mh: Remove.
* config/symmetry.mh, config/sysv4.mh, config/tahoe.mh: Remove.
* config/vaxbsd.mh, config/vaxult.mh, config/vaxult2.mh: Remove.
Diffstat (limited to 'bfd/configure')
-rwxr-xr-x | bfd/configure | 116 |
1 files changed, 96 insertions, 20 deletions
diff --git a/bfd/configure b/bfd/configure index a1fb8a1..19c1b2b 100755 --- a/bfd/configure +++ b/bfd/configure @@ -406,7 +406,7 @@ fi # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. enableval="$enable_64_bit_bfd" if test -n "$enableval"; then - case "{$enableval}" in + case "${enableval}" in yes) want64=true ;; no) want64=false ;; *) { echo "configure: error: bad value ${enableval} for 64-bit-bfd option" 1>&2; exit 1; } ;; @@ -604,6 +604,76 @@ else fi +# If we are configured native, pick a core file support file. +COREFILE= +COREFLAG= +if test "${target}" = "${host}"; then + case "${host}" in + alpha-*-*) COREFILE=osf-core.o ;; + arm-*-riscix) COREFILE=trad-core.o ;; + hppa*-*-hpux*) COREFILE=hpux-core.o ;; + hppa*-*-hiux*) COREFILE=hpux-core.o ;; + hppa*-*-bsd*) COREFILE="hpux-core.o hppabsd-core.o" + COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; + i34586-sequent-bsd*) COREFILE=trad-core.o ;; + i34586-sequent-sysv4*) ;; + i34586-sequent-sysv*) COREFILE=trad-core.o ;; + i34586-*-bsd*) COREFILE=trad-core.o ;; + i34586-*-freebsd*) COREFILE=trad-core.o ;; + i34586-*-netbsd*) COREFILE=trad-core.o ;; + i34586-esix-sysv3*) COREFILE=trad-core.o ;; + i34586-*-sco*) COREFILE=trad-core.o ;; + i34586-*-mach3*) COREFILE=trad-core.o ;; + i34586-*-linux*) COREFILE=trad-core.o ;; + i34586-*-isc*) COREFILE=trad-core.o ;; + i34586-*-aix*) COREFILE=aix386-core.o ;; + mips-dec-bsd*) COREFILE=trad-core.o ;; + mips-dec-mach3*) COREFILE=trad-core.o ;; + mips-dec-*) COREFILE=trad-core.o ;; + mips-sgi-irix4*) COREFILE=irix-core.o ;; + mips-sgi-irix5*) COREFILE=irix-core.o ;; + mips-*-mach3*) COREFILE=trad-core.o ;; + mips-*-sysv4*) ;; + mips-*-sysv*) COREFILE=trad-core.o ;; + mips-*-riscos*) COREFILE=trad-core.o ;; + mips-sony-bsd*) COREFILE=trad-core.o ;; + m68*-bull*-sysv*) COREFILE=trad-core.o ;; + m68*-hp-hpux*) COREFILE=hpux-core.o ;; + m68*-hp-bsd*) COREFILE=trad-core.o ;; + m68*-motorola-sysv*) COREFILE=ptrace-core.o ;; + m68*-sony-*) COREFILE=trad-core.o ;; + m88*-*-sysv4*) ;; + m88*-motorola-sysv*) COREFILE=trad-core.o ;; + m88*-*-mach3*) COREFILE=trad-core.o ;; + ns32k-pc532-mach) COREFILE=trad-core.o ;; + rs6000-*-lynx*) COREFILE=lynx-core.o ;; + rs6000-*-aix4*) COREFILE=rs6000-core.o + COREFLAG=-DALTERNATE_AIX_CORE_FORMAT ;; + rs6000-*-*) COREFILE=rs6000-core.o ;; + powerpc-*-aix4*) COREFILE=rs6000-core.o + COREFLAG=-DALTERNATE_AIX_CORE_FORMAT ;; + powerpc-*-aix*) COREFILE=rs6000-core.o ;; + tahoe-*-*) COREFILE=trad-core.o ;; + vax-*-ultrix2*) COREFILE=trad-core.o ;; + vax-*-ultrix*) COREFILE=trad-core.o ;; + vax-*-*) COREFILE=trad-core.o ;; + esac + + case "$COREFILE" in + aix386-core.o) COREFLAG=-DAIX386_CORE ;; + hppabsd-core.o) COREFLAG=-DHPPABSD_CORE ;; + hpux-core.o) COREFLAG=-DHPUX_CORE ;; + irix-core.o) COREFLAG=-DIRIX_CORE ;; + lynx-core.o) COREFLAG=-DLYNX_CORE ;; + osf-core.o) COREFLAG=-DOSF_CORE ;; + ptrace-core.o) COREFLAG=-DPTRACE_CORE ;; + rs6000-core.o) COREFLAG="$COREFLAG -DAIX_CORE" ;; + trad-core.o) COREFLAG=-DTRAD_CORE ;; + esac +fi + + + # target stuff: # Canonicalize the secondary target names. @@ -697,6 +767,8 @@ SELECT_ARCHITECTURES="$f" # Target backend .o files. tb= +elf="elf.o elflink.o" + for vec in $SELECT_VECS do case "$vec" in @@ -704,8 +776,10 @@ do # with the two vector lists in targets.c. a29kcoff_big_vec) tb="$tb coff-a29k.o cofflink.o" ;; a_out_adobe_vec) tb="$tb aout-adobe.o aout32.o stab-syms.o" ;; - armpe_vec) tb="$tb pe-arm.o cofflink.o " ;; - armpei_vec) tb="$tb pei-arm.o cofflink.o " ;; + armpe_little_vec) tb="$tb pe-arm.o cofflink.o " ;; + armpe_big_vec) tb="$tb pe-arm.o cofflink.o " ;; + armpei_little_vec) tb="$tb pei-arm.o cofflink.o " ;; + armpei_big_vec) tb="$tb pei-arm.o cofflink.o " ;; aout0_big_vec) tb="$tb aout0.o aout32.o stab-syms.o" ;; aout_arm_big_vec) tb="$tb aout-arm.o aout32.o stab-syms.o" ;; aout_arm_little_vec) tb="$tb aout-arm.o aout32.o stab-syms.o" ;; @@ -715,26 +789,26 @@ do b_out_vec_big_host) tb="$tb bout.o aout32.o stab-syms.o" ;; b_out_vec_little_host) tb="$tb bout.o aout32.o stab-syms.o" ;; # start-sanitize-arc - bfd_elf32_littlearc_vec) tb="$tb elf32-arc.o elf32.o elf.o" ;; - bfd_elf32_bigarc_vec) tb="$tb elf32-arc.o elf32.o elf.o" ;; + bfd_elf32_littlearc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;; + bfd_elf32_bigarc_vec) tb="$tb elf32-arc.o elf32.o $elf" ;; # end-sanitize-arc - bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o elf.o" ;; - bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o elf.o ecofflink.o" ;; - bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o elf.o" ;; - bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o elf.o" ;; - bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o elf.o" ;; - bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o elf.o" ;; - bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o elf.o ecofflink.o" ;; - bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o elf.o" ;; - bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o elf.o" ;; - bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o elf.o" ;; - bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o elf.o" ;; - bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o elf.o" ;; - bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o elf.o" + bfd_elf32_big_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;; + bfd_elf32_bigmips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;; + bfd_elf32_hppa_vec) tb="$tb elf32-hppa.o elf32.o $elf" ;; + bfd_elf32_i386_vec) tb="$tb elf32-i386.o elf32.o $elf" ;; + bfd_elf32_i860_vec) tb="$tb elf32-i860.o elf32.o $elf" ;; + bfd_elf32_little_generic_vec) tb="$tb elf32-gen.o elf32.o $elf" ;; + bfd_elf32_littlemips_vec) tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;; + bfd_elf32_m68k_vec) tb="$tb elf32-m68k.o elf32.o $elf" ;; + bfd_elf32_m88k_vec) tb="$tb elf32-m88k.o elf32.o $elf" ;; + bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;; + bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.o elf32.o $elf" ;; + bfd_elf32_sparc_vec) tb="$tb elf32-sparc.o elf32.o $elf" ;; + bfd_elf64_big_generic_vec) tb="$tb elf64-gen.o elf64.o $elf" target64=true ;; - bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o elf.o" + bfd_elf64_little_generic_vec) tb="$tb elf64-gen.o elf64.o $elf" target64=true ;; - bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o elf.o" + bfd_elf64_sparc_vec) tb="$tb elf64-sparc.o elf64.o $elf" target64=true ;; cisco_core_vec) tb="$tb cisco-core.o" ;; demo_64_vec) tb="$tb demo64.o aout64.o stab-syms.o" @@ -997,6 +1071,8 @@ s%@build_os@%$build_os%g s%@RANLIB@%$RANLIB%g /@host_makefile_frag@/r $host_makefile_frag s%@host_makefile_frag@%%g +s%@COREFILE@%$COREFILE%g +s%@COREFLAG@%$COREFLAG%g /@target_makefile_frag@/r $target_makefile_frag s%@target_makefile_frag@%%g s%@frags@%$frags%g |