From: Kim Knuttila Date: Wed, 27 Sep 1995 14:49:37 +0000 (+0000) Subject: Configure support for ppc/PE X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=85cc2190f50d7f92f2813aecf7325dadeabd2a93;p=binutils-gdb.git Configure support for ppc/PE --- diff --git a/gas/configure b/gas/configure index 63bb37f3885..659b5438eed 100755 --- a/gas/configure +++ b/gas/configure @@ -494,6 +494,7 @@ echo "$ac_t""$host" 1>&6 echo $ac_n "checking target system type""... $ac_c" 1>&6 target_alias=$target + case "$target_alias" in NONE) case $nonopt in @@ -732,6 +733,7 @@ for this_target in $target $canon_targets ; do m88k-*-coff*) fmt=coff targ=m88kcoff ;; # don't change em like *-*-bsd does + mips-dec-netbsd*) fmt-elf targ=mips-lit endian=little ;; mips-dec-bsd*) fmt=aout targ=mips-lit ;; mips-sony-bsd*) fmt=ecoff targ=mips-big ;; mips-*-bsd*) { echo "configure: error: Unknown vendor for mips-bsd configuration." 1>&2; exit 1; } ;; @@ -759,6 +761,18 @@ for this_target in $target $canon_targets ; do *) targ=mips-lit ;; esac ;; + ppc-*-pe) fmt=coff em=pe + case "$endian" in + big) targ=ppc-big ;; + *) targ=ppc-lit ;; + esac + ;; + ppc-*-winnt*) fmt=coff em=pe + case "$endian" in + big) targ=ppc-big ;; + *) targ=ppc-lit ;; + esac + ;; ppc-*-aix*) fmt=coff ;; ppc-*-elf* | ppc-*-eabi* | ppc-*-sysv4*) fmt=elf @@ -820,6 +834,7 @@ for this_target in $target $canon_targets ; do mips-*) bfd_gas=yes ;; ns32k-*) bfd_gas=yes ;; ppc-*) bfd_gas=yes ;; + powerpc-*) bfd_gas=yes ;; sparc-*) bfd_gas=yes ;; *-elf) bfd_gas=yes ;; *-ecoff) bfd_gas=yes ;; @@ -901,7 +916,6 @@ if test ! -r ${target_frag}; then target_frag=/dev/null # ick! but subst_file can't be conditionalized fi - case ${user_bfd_gas}-${primary_bfd_gas} in yes-yes | no-no) # We didn't override user's choice. @@ -937,6 +951,10 @@ EOF ;; m88k) cat >> confdefs.h <<\EOF #define M88KCOFF 1 +EOF + ;; + ppc) cat >> confdefs.h <<\EOF +#define PPC 1 EOF ;; esac @@ -1230,7 +1248,7 @@ else # On the NeXT, cc -E runs the code through the compiler's parser, # not just through cpp. cat > conftest.$ac_ext < Syntax Error @@ -1244,7 +1262,7 @@ else rm -rf conftest* CPP="${CC-cc} -E -traditional-cpp" cat > conftest.$ac_ext < Syntax Error @@ -1277,7 +1295,7 @@ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext < EOF @@ -1329,7 +1347,7 @@ else ac_cv_c_cross=yes else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext < int main() { return 0; } @@ -1383,7 +1401,7 @@ if eval "test \"`echo '$''{'ac_cv_func_alloca'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext < conftest.$ac_ext < conftest.$ac_ext <&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext < #include @@ -1767,7 +1785,7 @@ if eval "test \"`echo '$''{'gas_cv_decl_needed_malloc'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext <&6 else cat > conftest.$ac_ext <