1 dnl Process this file with autoconf to produce a configure script.
6 AC_CONFIG_SRCDIR([libbfd.c])
11 AM_INIT_AUTOMAKE(bfd, 2.20.51)
13 dnl These must be called before LT_INIT, because it may want
14 dnl to call AC_CHECK_PROG.
16 AC_CHECK_TOOL(RANLIB, ranlib, :)
18 dnl Default to a non shared library. This may be overridden by the
19 dnl configure option --enable-shared.
24 AC_USE_SYSTEM_EXTENSIONS
28 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
31 AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
33 if test "$plugins" = "yes"; then
34 if test "$enable_dlopen" != "yes" ; then
36 Building BFD with plugin support requires a host that supports -ldl.])
38 enable_targets="$enable_targets plugin"
41 AC_ARG_ENABLE(64-bit-bfd,
42 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
43 [case "${enableval}" in
46 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
47 esac],[want64=false])dnl
49 AC_ARG_ENABLE(targets,
50 [ --enable-targets alternative target configurations],
51 [case "${enableval}" in
52 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
54 no) enable_targets= ;;
55 *) enable_targets=$enableval ;;
59 [ --with-mmap try using mmap for BFD input files if available],
61 yes) want_mmap=true ;;
62 no) want_mmap=false ;;
63 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
64 esac],[want_mmap=false])dnl
66 AC_ARG_ENABLE(secureplt,
67 [ --enable-secureplt Default to creating read-only plt entries],
68 [case "${enableval}" in
69 yes) use_secureplt=true ;;
70 no) use_secureplt=false ;;
71 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
72 esac],[use_secureplt=false])dnl
73 if test $use_secureplt = true; then
74 AC_DEFINE(USE_SECUREPLT, 1,
75 [Define if we should default to creating read-only plt entries])
78 DEBUGDIR=${libdir}/debug
79 AC_ARG_WITH(separate-debug-dir,
80 AS_HELP_STRING([--with-separate-debug-dir=DIR],
81 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
82 [DEBUGDIR="${withval}"])
85 # Check to see if we should allow the generation of
86 # symbols with the ELF standard's STT_COMMON type.
87 AC_ARG_ENABLE(elf-stt-common,
88 [ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type],
89 [case "${enableval}" in
90 yes) want_elf_stt_common=true ;;
91 no) want_elf_stt_common=false ;;
92 *) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;;
94 # We have to choose a default behaviour. For native builds we could
95 # test whether the loader supports the STT_COMMON type, but that would
96 # mean that built binaries could not be exported to older systems where
97 # the loader does not support it. So by default we always choose to
98 # disable this feature.
99 want_elf_stt_common=false)dnl
100 if test $want_elf_stt_common = true; then
101 AC_DEFINE(USE_STT_COMMON, 1,
102 [Define if we may generate symbols with ELF's STT_COMMON type])
105 ACX_PKGVERSION([GNU Binutils])
106 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
110 AC_CONFIG_HEADERS(config.h:config.in)
112 if test -z "$target" ; then
113 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
117 AM_CONDITIONAL(GENINSRC_NEVER, false)
123 bfd_default_target_size=32
127 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
128 ZW_GNU_GETTEXT_SISTER_DIR
131 # Permit host specific settings.
132 . ${srcdir}/configure.host
137 BFD_HOST_64BIT_LONG=0
138 BFD_HOST_64BIT_LONG_LONG=0
139 BFD_HOST_64_BIT_DEFINED=0
142 BFD_HOSTPTR_T="unsigned long"
144 AC_CHECK_SIZEOF(long long)
145 AC_CHECK_SIZEOF(void *)
146 AC_CHECK_SIZEOF(long)
148 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
152 if test "x${ac_cv_sizeof_long}" = "x8"; then
153 BFD_HOST_64BIT_LONG=1
154 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
155 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
156 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
157 BFD_HOST_64BIT_LONG_LONG=1
158 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
159 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
160 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
161 BFD_HOSTPTR_T="unsigned long long"
165 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
166 BFD_HOST_64_BIT_DEFINED=1
167 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
168 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
171 AC_SUBST(BFD_HOST_64BIT_LONG)
172 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
173 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
174 AC_SUBST(BFD_HOST_64_BIT)
175 AC_SUBST(BFD_HOST_U_64_BIT)
176 AC_SUBST(BFD_HOSTPTR_T)
180 AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h)
181 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h)
182 GCC_HEADER_STDINT(bfd_stdint.h)
186 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
187 AC_CHECK_FUNCS(strtoull)
189 AC_CHECK_DECLS(basename)
190 AC_CHECK_DECLS(ftello)
191 AC_CHECK_DECLS(ftello64)
192 AC_CHECK_DECLS(fseeko)
193 AC_CHECK_DECLS(fseeko64)
199 AC_CHECK_DECLS(getenv)
200 AC_CHECK_DECLS(malloc)
201 AC_CHECK_DECLS(realloc)
202 AC_CHECK_DECLS(stpcpy)
203 AC_CHECK_DECLS(strstr)
204 AC_CHECK_DECLS(snprintf)
205 AC_CHECK_DECLS(vsnprintf)
207 # Link in zlib if we can. This allows us to read compressed debug sections.
208 # This is used only by compress.c.
209 AC_SEARCH_LIBS(zlibVersion, z, [AC_CHECK_HEADERS(zlib.h)])
211 # If we are configured native, pick a core file support file.
215 if test "${target}" = "${host}"; then
217 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu)
221 COREFILE=trad-core.lo
222 TRAD_HEADER='"hosts/alphalinux.h"'
224 alpha*-*-netbsd* | alpha*-*-openbsd*)
225 COREFILE=netbsd-core.lo
227 alpha*-*-*) COREFILE=osf-core.lo ;;
228 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
230 arm-*-netbsd* | arm-*-openbsd*)
231 COREFILE=netbsd-core.lo
233 arm-*-riscix) COREFILE=trad-core.lo ;;
234 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
235 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
236 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
237 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
238 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
239 hppa*-*-netbsd* | hppa*-*-openbsd*)
240 COREFILE=netbsd-core.lo
244 COREFILE=trad-core.lo
245 TRAD_HEADER='"hosts/i370linux.h"'
249 i[3-7]86-sequent-bsd*)
251 COREFILE=trad-core.lo
252 TRAD_HEADER='"hosts/symmetry.h"'
255 i[3-7]86-sequent-sysv4*) ;;
256 i[3-7]86-sequent-sysv*)
258 COREFILE=trad-core.lo
259 TRAD_HEADER='"hosts/symmetry.h"'
267 i[3-7]86-*-bsd* | i[3-7]86-*-freebsd[123] | i[3-7]86-*-freebsd[123]\.* | i[3-7]86-*-freebsd4\.[01234] | i[3-7]86-*-freebsd4\.[01234]\.* | i[3-7]86-*-freebsd*aout*)
269 COREFILE=trad-core.lo
270 TRAD_HEADER='"hosts/i386bsd.h"'
273 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
276 TRAD_HEADER='"hosts/i386bsd.h"'
279 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
281 COREFILE=netbsd-core.lo
284 i[3-7]86-esix-sysv3*)
286 COREFILE=trad-core.lo
287 TRAD_HEADER='"hosts/esix.h"'
290 i[3-7]86-*-sco3.2v5*)
292 COREFILE=sco5-core.lo
295 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
297 COREFILE=trad-core.lo
298 TRAD_HEADER='"hosts/i386sco.h"'
303 COREFILE=trad-core.lo
304 TRAD_HEADER='"hosts/i386mach3.h"'
309 COREFILE=trad-core.lo
310 TRAD_HEADER='"hosts/i386linux.h"'
313 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
314 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
316 i860-*-mach3* | i860-*-osf1*)
317 COREFILE=trad-core.lo
318 TRAD_HEADER='"hosts/i860mach3.h"'
320 mips-*-netbsd* | mips*-*-openbsd*)
321 COREFILE=netbsd-core.lo
324 COREFILE=trad-core.lo
325 TRAD_HEADER='"hosts/decstation.h"'
327 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
328 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
329 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
331 mips-*-sysv* | mips-*-riscos*)
332 COREFILE=trad-core.lo
333 TRAD_HEADER='"hosts/riscos.h"'
336 COREFILE=trad-core.lo
337 TRAD_HEADER='"hosts/news-mips.h"'
340 COREFILE=trad-core.lo
341 TRAD_HEADER='"hosts/dpx2.h"'
343 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
345 COREFILE=trad-core.lo
346 TRAD_HEADER='"hosts/hp300bsd.h"'
349 COREFILE=trad-core.lo
350 TRAD_HEADER='"hosts/m68klinux.h"'
353 COREFILE=trad-core.lo
354 TRAD_HEADER='"hosts/delta68.h"'
357 COREFILE=trad-core.lo
358 TRAD_HEADER='"hosts/news.h"'
360 m68*-*-netbsd* | m68*-*-openbsd*)
361 COREFILE=netbsd-core.lo
364 COREFILE=trad-core.lo
365 TRAD_HEADER='"hosts/m68kaux.h"'
370 COREFILE=ptrace-core.lo
373 COREFILE=trad-core.lo
374 TRAD_HEADER='"hosts/m88kmach3.h"'
377 COREFILE=netbsd-core.lo
380 COREFILE=trad-core.lo
381 TRAD_HEADER='"hosts/pc532mach.h"'
383 ns32k-*-netbsd* | ns32k-*-openbsd*)
384 COREFILE=netbsd-core.lo
387 COREFILE=lynx-core.lo
390 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
392 COREFILE=rs6000-core.lo
393 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
396 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
398 COREFILE=rs6000-core.lo
399 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
400 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
401 # have c_impl as a member of struct core_dumpx
402 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
403 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
404 [Define if struct core_dumpx has member c_impl])
405 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
407 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
408 rs6000-*-*) COREFILE=rs6000-core.lo ;;
409 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
410 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
412 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
414 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
415 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
416 s390*-*-*) COREFILE=trad-core.lo ;;
417 sh*-*-netbsd* | sh*-*-openbsd*)
418 COREFILE=netbsd-core.lo
420 sparc-*-netbsd* | sparc*-*-openbsd*)
421 COREFILE=netbsd-core.lo
424 COREFILE=trad-core.lo
425 TRAD_HEADER='"hosts/tahoe.h"'
427 vax-*-netbsd* | vax-*-openbsd*)
428 COREFILE=netbsd-core.lo
431 COREFILE=trad-core.lo
432 TRAD_HEADER='"hosts/vaxult2.h"'
435 COREFILE=trad-core.lo
436 TRAD_HEADER='"hosts/vaxult2.h"'
439 COREFILE=trad-core.lo
440 TRAD_HEADER='"hosts/vaxlinux.h"'
443 COREFILE=trad-core.lo
444 TRAD_HEADER='"hosts/vaxbsd.h"'
446 x86_64-*-netbsd* | x86_64-*-openbsd*)
447 COREFILE=netbsd-core.lo
452 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
453 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
454 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
455 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
456 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
457 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
458 osf-core.lo) COREFLAG=-DOSF_CORE ;;
459 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
460 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
461 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
462 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
465 # ELF corefile support has several flavors, but all of
466 # them use something called <sys/procfs.h>
467 AC_CHECK_HEADERS(sys/procfs.h)
468 if test "$ac_cv_header_sys_procfs_h" = yes; then
469 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
470 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
471 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
472 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
473 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
474 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
475 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
476 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
477 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
478 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
479 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
480 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
481 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
482 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
483 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
484 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
489 if test -n "$TRAD_HEADER"; then
490 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
491 [Name of host specific header file to include in trad-core.c.])
494 # Check if linker supports --as-needed and --no-as-needed options
495 AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
496 [bfd_cv_ld_as_needed=no
497 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
498 bfd_cv_ld_as_needed=yes
504 # When building a shared libbfd, link against the pic version of libiberty
505 # so that apps that use libbfd won't need libiberty just to satisfy any
507 # We can't do that if a pic libiberty is unavailable since including non-pic
508 # code would insert text relocations into libbfd.
511 if test "$enable_shared" = "yes"; then
513 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
515 if test -n "$x"; then
516 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
519 # More hacks to build DLLs on Windows.
522 SHARED_LDFLAGS="-no-undefined"
523 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
527 if test -n "$SHARED_LIBADD"; then
528 if test -n "$LIBM"; then
529 if test x"$bfd_cv_ld_as_needed" = xyes; then
530 # Link against libm only when needed. Put -lc, -lm inside -Wl
531 # to stop libtool reordering these options.
532 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
534 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
539 AC_SUBST(SHARED_LDFLAGS)
540 AC_SUBST(SHARED_LIBADD)
544 # Canonicalize the secondary target names.
545 if test -n "$enable_targets" ; then
546 for targ in `echo $enable_targets | sed 's/,/ /g'`
548 result=`$ac_config_sub $targ 2>/dev/null`
549 if test -n "$result" ; then
550 canon_targets="$canon_targets $result"
552 # Allow targets that config.sub doesn't recognize, like "all".
553 canon_targets="$canon_targets $targ"
564 for targ in $target $canon_targets
566 if test "x$targ" = "xall"; then
568 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
571 if test "x$targ" = "x$target"; then
574 selvecs="$selvecs $targ_defvec $targ_selvecs"
575 selarchs="$selarchs $targ_archs"
576 TDEFINES="$TDEFINES $targ_cflags"
581 # This processing still needs to be done if we're to decide properly whether
582 # 64-bit support needs to be compiled in. Currently, it will be included if
583 # the default or any other explicitly requested target requires it; it
584 # will not be included on a 32-bit host if no 64-bit target is requested, and
585 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
588 # uniq the default and selected vectors in all the configured targets.
590 for i in $selvecs ; do
599 # uniq the associated vectors in all the configured targets.
601 for i in $assocvecs ; do
610 # uniq the architectures in all the configured targets.
612 for i in $selarchs ; do
620 # Target backend .o files.
623 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
624 elf-eh-frame.lo dwarf1.lo"
630 # This list is alphabetized to make it easy to compare
631 # with the two vector lists in targets.c. For the same reason,
632 # use one entry per line, even though this leads to long lines.
633 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
634 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
635 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
636 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
637 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
638 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
639 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
640 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
641 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
642 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
643 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
644 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
645 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
646 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
647 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
648 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
649 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
650 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
651 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
652 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
653 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
654 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
655 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
656 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
657 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
658 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
659 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
660 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
661 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
662 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
663 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
664 bfd_elf32_bigarm_symbian_vec)
665 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
666 bfd_elf32_bigarm_vxworks_vec)
667 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
668 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
669 bfd_elf32_bigmips_vxworks_vec)
670 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
671 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
672 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
673 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
674 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
675 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
676 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
677 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
678 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
679 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
680 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
681 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
682 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
683 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
684 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
685 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
686 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
687 bfd_elf32_i386_dragonfly_vec)
688 tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
689 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
690 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
691 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
692 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
693 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
694 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
695 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
696 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
697 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
698 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
699 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
700 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
701 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
702 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
703 bfd_elf32_littlearm_symbian_vec)
704 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
705 bfd_elf32_littlearm_vxworks_vec)
706 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
707 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
708 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
709 bfd_elf32_littlemips_vxworks_vec)
710 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
711 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
712 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
713 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
714 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
715 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
716 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
717 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
718 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
719 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
720 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
721 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
722 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
723 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
724 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
725 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
726 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
727 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
728 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
729 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
730 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
731 bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
732 bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
733 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
734 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
735 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
736 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
737 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
738 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
739 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
740 bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
741 bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
742 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
743 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
744 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
745 # FIXME: We include cofflink.lo not because it's needed for
746 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
747 # which needs it but does not list it. Should be fixed in right place.
748 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
749 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
750 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
751 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
752 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
753 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
754 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
755 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
756 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
757 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
758 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
759 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
760 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
761 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
762 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
763 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
764 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
765 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
766 bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
767 bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
768 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
769 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
770 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
771 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
772 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
773 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
774 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
775 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
776 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
777 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
778 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
779 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
780 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
781 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
782 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
783 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
784 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
785 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
786 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
787 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
788 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
789 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
790 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
791 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
792 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
793 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
794 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
795 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
796 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
797 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
798 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
799 bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
800 bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
801 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
802 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
803 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
804 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
805 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
806 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
807 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
808 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
809 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
810 cris_aout_vec) tb="$tb aout-cris.lo" ;;
811 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
812 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
813 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
814 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
815 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
816 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
817 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
818 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
819 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
820 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
821 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
822 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
823 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
824 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
825 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
826 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
827 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
828 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
829 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
830 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
831 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
832 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
833 i386msdos_vec) tb="$tb i386msdos.lo" ;;
834 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
835 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
836 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
837 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
838 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
839 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
840 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
841 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
842 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
843 ieee_vec) tb="$tb ieee.lo" ;;
844 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
845 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
846 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
847 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
848 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
849 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
850 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
851 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
852 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
853 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
854 maxqcoff_vec) tb="$tb coff-maxq.lo" ;;
855 mach_o_be_vec) tb="$tb mach-o.lo" ;;
856 mach_o_le_vec) tb="$tb mach-o.lo" ;;
857 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
858 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
859 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
860 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
861 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
862 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
863 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
864 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
865 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
866 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
867 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
868 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
869 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
870 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
871 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
872 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
873 pef_vec) tb="$tb pef.lo" ;;
874 pef_xlib_vec) tb="$tb pef.lo" ;;
875 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
876 plugin_vec) tb="$tb plugin.lo" ;;
877 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
878 ppcboot_vec) tb="$tb ppcboot.lo" ;;
879 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
880 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
881 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
882 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
883 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
884 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
885 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
886 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
887 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
888 som_vec) tb="$tb som.lo" ;;
889 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
890 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
891 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
892 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
893 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
894 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
895 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
896 sym_vec) tb="$tb xsym.lo" ;;
897 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
898 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
899 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
900 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
901 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
902 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
903 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
904 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
905 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
906 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
907 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
908 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
909 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
910 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
911 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
912 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
913 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
914 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
915 versados_vec) tb="$tb versados.lo" ;;
916 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
917 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
918 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
919 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
920 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
921 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
923 # These appear out of order in targets.c
924 srec_vec) tb="$tb srec.lo" ;;
925 symbolsrec_vec) tb="$tb srec.lo" ;;
926 tekhex_vec) tb="$tb tekhex.lo" ;;
927 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
928 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
931 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
934 if test ${target_size} = 64; then
937 if test x"${vec}" = x"${defvec}"; then
938 bfd_default_target_size=${target_size}
942 # Target architecture .o files.
943 # A couple of CPUs use shorter file names to avoid problems on DOS
945 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
947 # Weed out duplicate .o files.
969 if test x${all_targets} = xtrue ; then
970 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
971 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
975 test -n "$assocvecs" &&
976 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
977 else # all_targets is true
978 # Only set these if they will be nonempty, for the clever echo.
981 test -n "$selvecs" &&
982 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
983 test -n "$selvecs" &&
984 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
985 test -n "$selarchs" &&
986 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
987 fi # all_targets is true
989 case ${host64}-${target64}-${want64} in
992 bfd64_libs='$(BFD64_LIBS)'
993 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
994 if test $BFD_HOST_64_BIT_DEFINED = 0; then
995 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
996 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
998 if test -n "$GCC" ; then
1000 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
1001 # Add more tests for gcc versions with non-working 64-bit support here.
1002 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
1004 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
1006 if test $bad_64bit_gcc = yes ; then
1007 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
1013 all_backends='$(BFD32_BACKENDS)'
1018 AC_SUBST(bfd64_libs)
1019 AC_SUBST(all_backends)
1020 AC_SUBST(bfd_backends)
1021 AC_SUBST(bfd_machines)
1022 AC_SUBST(bfd_default_target_size)
1024 if test "$plugins" = "yes"; then
1029 AC_SUBST(supports_plugins)
1031 # Determine the host dependant file_ptr a.k.a. off_t type. In order
1032 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1033 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1034 # Hopefully a reasonable assumption since fseeko et.al. should be
1035 # upward compatible.
1036 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1037 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1038 AC_CHECK_SIZEOF(off_t)
1040 AC_MSG_CHECKING([file_ptr type])
1042 bfd_ufile_ptr="unsigned long"
1043 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1044 -o x"${ac_cv_sizeof_off_t}" = x8; then
1045 bfd_file_ptr=BFD_HOST_64_BIT
1046 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1048 AC_MSG_RESULT($bfd_file_ptr)
1049 AC_SUBST(bfd_file_ptr)
1050 AC_SUBST(bfd_ufile_ptr)
1054 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1055 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
1056 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
1057 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1058 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
1061 dnl AC_CHECK_HEADERS(sys/mman.h)
1063 AC_CHECK_FUNCS(madvise mprotect)
1064 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1065 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1068 rm -f doc/config.status
1069 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1071 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1072 dnl our two separate POTFILES. Yuck.
1073 AC_CONFIG_COMMANDS([default],
1077 *) srcdirpre='$(srcdir)/' ;;
1081 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1082 if test $lang != dummy; then
1083 POFILES="$POFILES $srcdirpre$lang.po"
1084 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1087 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1088 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1089 -e "s,@POFILES@,$POFILES," \
1090 -e "s,@GMOFILES@,$GMOFILES," \
1091 po/Makefile.in > po/Makefile]],[[]])
1093 dnl Required by html, pdf, install-pdf and install-html
1094 AC_SUBST(datarootdir)