(Lay some groundwork for TIc80 port that will be filled in incrementally.)
[deliverable/binutils-gdb.git] / bfd / configure.in
index 20a67addd3e992d94447749394bae314a055713b..621ca7f5f280bf63cbb2fc9114d68d89ae09a773 100644 (file)
@@ -139,8 +139,11 @@ AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf)
 
 BFD_BINARY_FOPEN
 
+BFD_NEED_DECLARATION(strstr)
 BFD_NEED_DECLARATION(malloc)
+BFD_NEED_DECLARATION(realloc)
 BFD_NEED_DECLARATION(free)
+BFD_NEED_DECLARATION(getenv)
 
 # If we are configured native, pick a core file support file.
 COREFILE=
@@ -158,56 +161,56 @@ if test "${target}" = "${host}"; then
   hppa*-*-bsd*)                COREFILE="hpux-core.o hppabsd-core.o"
                        COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
 changequote(,)dnl
-  i[345]86-sequent-bsd*)
+  i[3456]86-sequent-bsd*)
 changequote([,])dnl
        COREFILE=trad-core.o;
        AC_DEFINE(TRAD_HEADER,"hosts/symmetry.h")
        ;;
 changequote(,)dnl
-  i[345]86-sequent-sysv4*) ;;
-  i[345]86-sequent-sysv*)
+  i[3456]86-sequent-sysv4*) ;;
+  i[3456]86-sequent-sysv*)
 changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/symmetry.h")
        ;;
 changequote(,)dnl
-  i[345]86-*-bsd* | i[345]86-*-freebsd*)
+  i[3456]86-*-bsd* | i[3456]86-*-freebsd*)
 changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/i386bsd.h")
        ;;
 changequote(,)dnl
-  i[345]86-*-netbsd*)
+  i[3456]86-*-netbsd*)
 changequote([,])dnl
        COREFILE=netbsd-core.o
        ;;
 changequote(,)dnl
-  i[345]86-esix-sysv3*)
+  i[3456]86-esix-sysv3*)
 changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/esix.h")
        ;;
 changequote(,)dnl
-  i[345]86-*-sco* | i[345]86-*-isc*)
+  i[3456]86-*-sco* | i[3456]86-*-isc*)
 changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/i386sco.h")
        ;;
 changequote(,)dnl
-  i[345]86-*-mach3*)
+  i[3456]86-*-mach3*)
 changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/i386mach3.h")
        ;;
 changequote(,)dnl
-  i[345]86-*-linux*)
+  i[3456]86-*-linux*)
 changequote([,])dnl
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/i386linux.h")
        ;;
 changequote(,)dnl
-  i[345]86-*-isc*)     COREFILE=trad-core.o ;;
-  i[345]86-*-aix*)     COREFILE=aix386-core.o ;;
+  i[3456]86-*-isc*)    COREFILE=trad-core.o ;;
+  i[3456]86-*-aix*)    COREFILE=aix386-core.o ;;
 changequote([,])dnl
   i860-*-mach3* | i860-*-osf1*)
        COREFILE=trad-core.o
@@ -230,6 +233,7 @@ changequote([,])dnl
        ;;
   mips-sgi-irix4*)     COREFILE=irix-core.o ;;
   mips-sgi-irix5*)     COREFILE=irix-core.o ;;
+  mips-sgi-irix6*)     COREFILE=irix-core.o ;;
   mips-*-mach3*)
        COREFILE=trad-core.o
        AC_DEFINE(TRAD_HEADER,"hosts/mipsmach3.h")
@@ -449,11 +453,21 @@ do
     bfd_elf32_littlemips_vec)  tb="$tb elf32-mips.o elf32.o $elf ecofflink.o" ;;
     bfd_elf64_littlemips_vec)  tb="$tb elf64-mips.o elf64.o elf32-mips.o elf32.o $elf ecofflink.o"
                                target64=true ;;
+# start-sanitize-m32r
+    bfd_elf32_m32r_vec)                tb="$tb elf32-m32r.o elf32.o $elf" ;;
+# end-sanitize-m32r
     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_mn10200_vec)     tb="$tb elf32-mn10200.o elf32.o $elf" ;;
+    bfd_elf32_mn10300_vec)     tb="$tb elf32-mn10300.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_sh_vec)          tb="$tb elf32-sh.o elf32.o $elf coff-sh.o" ;;
+    bfd_elf32_shl_vec)         tb="$tb elf32-sh.o elf32.o $elf coff-sh.o" ;;
     bfd_elf32_sparc_vec)       tb="$tb elf32-sparc.o elf32.o $elf" ;;
+# start-sanitize-v850
+    bfd_elf32_v850_vec)                tb="$tb elf32-v850.o elf32.o $elf" ;;
+# end-sanitize-v850
     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"
@@ -520,6 +534,7 @@ do
     shcoff_vec)                        tb="$tb coff-sh.o cofflink.o" ;;
     shlcoff_vec)               tb="$tb coff-sh.o cofflink.o" ;;
     som_vec)                   tb="$tb som.o" ;;
+    sparcle_aout_vec)          tb="$tb aout-sparcle.o aout32.o" ;;
     sparclynx_aout_vec)                tb="$tb sparclynx.o lynx-core.o aout32.o" ;;
     sparclynx_coff_vec)                tb="$tb cf-sparclynx.o lynx-core.o" ;;
     sparcnetbsd_vec)           tb="$tb sparcnetbsd.o aout32.o" ;;
@@ -528,6 +543,9 @@ do
     sunos_big_vec)             tb="$tb sunos.o aout32.o" ;;
     symbolsrec_vec)            tb="$tb srec.o" ;;
     tekhex_vec)                        tb="$tb tekhex.o" ;;
+# start-sanitize-tic80
+    tic80coff_vec)             tp="$tp coff-tic80.o" ;;
+# end-sanitize-tic80
     we32kcoff_vec)             tb="$tb coff-we32k.o" ;;
     z8kcoff_vec)               tb="$tb coff-z8k.o reloc16.o" ;;
     w65_vec)                   tb="$tb coff-w65.o reloc16.o" ;;
@@ -567,9 +585,13 @@ if test x${all_targets} = xtrue ; then
   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
   selvecs=
+  havevecs=
   selarchs=
 else   # all_targets is true
   # Only set these if they will be nonempty, for the clever echo.
+  havevecs=
+  test -n "$selvecs" &&
+    havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
   test -n "$selvecs" &&
     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
   test -n "$selarchs" &&
@@ -580,7 +602,7 @@ case ${host64}-${target64}-${want64} in
   *true*)
     wordsize=64
     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
-    if test -z "$GCC" && test "$HOST_64BIT_LONG" = "0"; then
+    if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
       AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
       AC_MSG_WARN([your compiler may not have a 64 bit integral type])
     fi
@@ -600,6 +622,7 @@ tdefaults=""
 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
+test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
 AC_SUBST(tdefaults)
 
 dnl AC_CHECK_HEADERS(sys/mman.h)
This page took 0.025901 seconds and 4 git commands to generate.