1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright 2012-2013 Free Software Foundation
5 dnl This file is free software; you can redistribute it and/or modify
6 dnl it under the terms of the GNU General Public License as published by
7 dnl the Free Software Foundation; either version 3 of the License, or
8 dnl (at your option) any later version.
10 dnl This program is distributed in the hope that it will be useful,
11 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
12 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 dnl GNU General Public License for more details.
15 dnl You should have received a copy of the GNU General Public License
16 dnl along with this program; see the file COPYING3. If not see
17 dnl <http://www.gnu.org/licenses/>.
21 AC_INIT([bfd], [2.24.51])
22 AC_CONFIG_SRCDIR([libbfd.c])
29 dnl These must be called before LT_INIT, because it may want
30 dnl to call AC_CHECK_PROG.
32 AC_CHECK_TOOL(RANLIB, ranlib, :)
34 dnl Default to a non shared library. This may be overridden by the
35 dnl configure option --enable-shared.
40 AC_USE_SYSTEM_EXTENSIONS
44 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
47 AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
49 if test "$plugins" = "yes"; then
50 if test "$enable_dlopen" != "yes" ; then
52 Building BFD with plugin support requires a host that supports -ldl.])
54 enable_targets="$enable_targets plugin"
57 AC_ARG_ENABLE(64-bit-bfd,
58 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
59 [case "${enableval}" in
62 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
63 esac],[want64=false])dnl
65 AC_ARG_ENABLE(targets,
66 [ --enable-targets alternative target configurations],
67 [case "${enableval}" in
68 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
70 no) enable_targets= ;;
71 *) enable_targets=$enableval ;;
75 [ --with-mmap try using mmap for BFD input files if available],
77 yes) want_mmap=true ;;
78 no) want_mmap=false ;;
79 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
80 esac],[want_mmap=false])dnl
82 AC_ARG_ENABLE(secureplt,
83 [ --enable-secureplt Default to creating read-only plt entries],
84 [case "${enableval}" in
85 yes) use_secureplt=true ;;
86 no) use_secureplt=false ;;
87 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
88 esac],[use_secureplt=false])dnl
89 if test $use_secureplt = true; then
90 AC_DEFINE(USE_SECUREPLT, 1,
91 [Define if we should default to creating read-only plt entries])
94 AC_ARG_ENABLE(leading-mingw64-underscores,
95 AS_HELP_STRING([--enable-leading-mingw64-underscores],
96 [Enable leading underscores on 64 bit mingw targets]),
98 AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
99 [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
100 [Define if we should use leading underscore on 64 bit mingw targets])])
102 DEBUGDIR=${libdir}/debug
103 AC_ARG_WITH(separate-debug-dir,
104 AS_HELP_STRING([--with-separate-debug-dir=DIR],
105 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
106 [DEBUGDIR="${withval}"])
109 # Check to see if we should allow the generation of
110 # symbols with the ELF standard's STT_COMMON type.
111 AC_ARG_ENABLE(elf-stt-common,
112 [ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type],
113 [case "${enableval}" in
114 yes) want_elf_stt_common=true ;;
115 no) want_elf_stt_common=false ;;
116 *) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;;
118 # We have to choose a default behaviour. For native builds we could
119 # test whether the loader supports the STT_COMMON type, but that would
120 # mean that built binaries could not be exported to older systems where
121 # the loader does not support it. So by default we always choose to
122 # disable this feature.
123 want_elf_stt_common=false)dnl
124 if test $want_elf_stt_common = true; then
125 AC_DEFINE(USE_STT_COMMON, 1,
126 [Define if we may generate symbols with ELF's STT_COMMON type])
129 ACX_PKGVERSION([GNU Binutils])
130 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
134 AC_CONFIG_HEADERS(config.h:config.in)
137 AH_VERBATIM([00_CONFIG_H_CHECK],
138 [/* Check that config.h is #included before system headers
139 (this works only for glibc, but that should be enough). */
140 #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
141 # error config.h must be #included before system headers
143 #define __CONFIG_H__ 1])
145 if test -z "$target" ; then
146 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
150 AM_CONDITIONAL(GENINSRC_NEVER, false)
156 bfd_default_target_size=32
160 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru uk"
161 ZW_GNU_GETTEXT_SISTER_DIR
164 # Permit host specific settings.
165 . ${srcdir}/configure.host
170 BFD_HOST_64BIT_LONG=0
171 BFD_HOST_64BIT_LONG_LONG=0
172 BFD_HOST_64_BIT_DEFINED=0
175 BFD_HOSTPTR_T="unsigned long"
177 AC_CHECK_SIZEOF(long long)
178 AC_CHECK_SIZEOF(void *)
179 AC_CHECK_SIZEOF(long)
181 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
185 if test "x${ac_cv_sizeof_long}" = "x8"; then
186 BFD_HOST_64BIT_LONG=1
187 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
188 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
189 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
190 BFD_HOST_64BIT_LONG_LONG=1
191 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
192 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
193 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
194 BFD_HOSTPTR_T="unsigned long long"
198 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
199 BFD_HOST_64_BIT_DEFINED=1
200 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
201 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
204 AC_SUBST(BFD_HOST_64BIT_LONG)
205 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
206 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
207 AC_SUBST(BFD_HOST_64_BIT)
208 AC_SUBST(BFD_HOST_U_64_BIT)
209 AC_SUBST(BFD_HOSTPTR_T)
213 AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h)
214 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h)
215 GCC_HEADER_STDINT(bfd_stdint.h)
219 AC_CHECK_HEADERS(windows.h dlfcn.h)
222 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
223 AC_CHECK_FUNCS(strtoull getrlimit)
225 AC_CHECK_DECLS(basename)
226 AC_CHECK_DECLS(ftello)
227 AC_CHECK_DECLS(ftello64)
228 AC_CHECK_DECLS(fseeko)
229 AC_CHECK_DECLS(fseeko64)
235 AC_CHECK_DECLS(getenv)
236 AC_CHECK_DECLS(malloc)
237 AC_CHECK_DECLS(realloc)
238 AC_CHECK_DECLS(stpcpy)
239 AC_CHECK_DECLS(strstr)
240 AC_CHECK_DECLS(snprintf)
241 AC_CHECK_DECLS(vsnprintf)
243 # Link in zlib if we can. This allows us to read compressed debug sections.
244 # This is used only by compress.c.
247 # If we are configured native, pick a core file support file.
252 if test "${target}" = "${host}"; then
254 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
258 COREFILE=trad-core.lo
259 TRAD_HEADER='"hosts/alphalinux.h"'
261 alpha*-*-netbsd* | alpha*-*-openbsd*)
262 COREFILE=netbsd-core.lo
267 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
269 arm-*-netbsd* | arm-*-openbsd*)
270 COREFILE=netbsd-core.lo
272 arm-*-riscix) COREFILE=trad-core.lo ;;
273 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
274 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
275 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
276 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
277 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
278 hppa*-*-netbsd* | hppa*-*-openbsd*)
279 COREFILE=netbsd-core.lo
283 COREFILE=trad-core.lo
284 TRAD_HEADER='"hosts/i370linux.h"'
288 i[3-7]86-sequent-bsd*)
290 COREFILE=trad-core.lo
291 TRAD_HEADER='"hosts/symmetry.h"'
294 i[3-7]86-sequent-sysv4*) ;;
295 i[3-7]86-sequent-sysv*)
297 COREFILE=trad-core.lo
298 TRAD_HEADER='"hosts/symmetry.h"'
306 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*)
308 COREFILE=trad-core.lo
309 TRAD_HEADER='"hosts/i386bsd.h"'
312 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
315 TRAD_HEADER='"hosts/i386bsd.h"'
318 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
320 COREFILE=netbsd-core.lo
323 i[3-7]86-esix-sysv3*)
325 COREFILE=trad-core.lo
326 TRAD_HEADER='"hosts/esix.h"'
329 i[3-7]86-*-sco3.2v5*)
331 COREFILE=sco5-core.lo
334 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
336 COREFILE=trad-core.lo
337 TRAD_HEADER='"hosts/i386sco.h"'
342 COREFILE=trad-core.lo
343 TRAD_HEADER='"hosts/i386mach3.h"'
348 COREFILE=trad-core.lo
349 TRAD_HEADER='"hosts/i386linux.h"'
350 case "$enable_targets"-"$want64" in
351 *x86_64-*linux*|*-true)
352 CORE_HEADER='"hosts/x86-64linux.h"'
356 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
357 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
359 i860-*-mach3* | i860-*-osf1*)
360 COREFILE=trad-core.lo
361 TRAD_HEADER='"hosts/i860mach3.h"'
363 mips-*-netbsd* | mips*-*-openbsd*)
364 COREFILE=netbsd-core.lo
367 COREFILE=trad-core.lo
368 TRAD_HEADER='"hosts/decstation.h"'
370 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
371 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
372 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
374 mips-*-sysv* | mips-*-riscos*)
375 COREFILE=trad-core.lo
376 TRAD_HEADER='"hosts/riscos.h"'
379 COREFILE=trad-core.lo
380 TRAD_HEADER='"hosts/news-mips.h"'
383 COREFILE=trad-core.lo
384 TRAD_HEADER='"hosts/dpx2.h"'
386 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
388 COREFILE=trad-core.lo
389 TRAD_HEADER='"hosts/hp300bsd.h"'
392 COREFILE=trad-core.lo
393 TRAD_HEADER='"hosts/m68klinux.h"'
396 COREFILE=trad-core.lo
397 TRAD_HEADER='"hosts/delta68.h"'
400 COREFILE=trad-core.lo
401 TRAD_HEADER='"hosts/news.h"'
403 m68*-*-netbsd* | m68*-*-openbsd*)
404 COREFILE=netbsd-core.lo
407 COREFILE=trad-core.lo
408 TRAD_HEADER='"hosts/m68kaux.h"'
413 COREFILE=ptrace-core.lo
416 COREFILE=trad-core.lo
417 TRAD_HEADER='"hosts/m88kmach3.h"'
420 COREFILE=netbsd-core.lo
423 COREFILE=trad-core.lo
424 TRAD_HEADER='"hosts/pc532mach.h"'
426 ns32k-*-netbsd* | ns32k-*-openbsd*)
427 COREFILE=netbsd-core.lo
430 COREFILE=lynx-core.lo
433 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
435 COREFILE=rs6000-core.lo
436 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
439 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
441 COREFILE=rs6000-core.lo
442 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
443 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
444 # have c_impl as a member of struct core_dumpx
445 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
446 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
447 [Define if struct core_dumpx has member c_impl])
448 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
450 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
451 rs6000-*-*) COREFILE=rs6000-core.lo ;;
452 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
453 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
455 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
457 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
458 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
459 s390*-*-*) COREFILE=trad-core.lo ;;
460 sh*-*-netbsd* | sh*-*-openbsd*)
461 COREFILE=netbsd-core.lo
463 sparc-*-netbsd* | sparc*-*-openbsd*)
464 COREFILE=netbsd-core.lo
467 COREFILE=trad-core.lo
468 TRAD_HEADER='"hosts/tahoe.h"'
470 vax-*-netbsd* | vax-*-openbsd*)
471 COREFILE=netbsd-core.lo
474 COREFILE=trad-core.lo
475 TRAD_HEADER='"hosts/vaxult2.h"'
478 COREFILE=trad-core.lo
479 TRAD_HEADER='"hosts/vaxult2.h"'
482 COREFILE=trad-core.lo
483 TRAD_HEADER='"hosts/vaxlinux.h"'
486 COREFILE=trad-core.lo
487 TRAD_HEADER='"hosts/vaxbsd.h"'
490 CORE_HEADER='"hosts/x86-64linux.h"'
492 x86_64-*-netbsd* | x86_64-*-openbsd*)
493 COREFILE=netbsd-core.lo
498 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
499 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
500 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
501 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
502 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
503 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
504 osf-core.lo) COREFLAG=-DOSF_CORE ;;
505 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
506 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
507 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
508 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
511 # ELF corefile support has several flavors, but all of
512 # them use something called <sys/procfs.h>
513 AC_CHECK_HEADERS(sys/procfs.h)
514 if test "$ac_cv_header_sys_procfs_h" = yes; then
515 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
516 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
517 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
518 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
519 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
520 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
521 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
522 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
523 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
524 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
525 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
526 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
527 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
528 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
529 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
530 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
531 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
532 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
533 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
534 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
535 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
540 if test -n "$CORE_HEADER"; then
541 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
542 [Name of host specific core header file to include in elf.c.])
544 if test -n "$TRAD_HEADER"; then
545 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
546 [Name of host specific header file to include in trad-core.c.])
549 # Check if linker supports --as-needed and --no-as-needed options
550 AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
551 [bfd_cv_ld_as_needed=no
552 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
553 bfd_cv_ld_as_needed=yes
559 # When building a shared libbfd, link against the pic version of libiberty
560 # so that apps that use libbfd won't need libiberty just to satisfy any
562 # We can't do that if a pic libiberty is unavailable since including non-pic
563 # code would insert text relocations into libbfd.
566 if test "$enable_shared" = "yes"; then
568 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
570 if test -n "$x"; then
571 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
574 # More hacks to build DLLs on Windows.
577 SHARED_LDFLAGS="-no-undefined"
578 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
582 if test -n "$SHARED_LIBADD"; then
583 if test -n "$LIBM"; then
584 if test x"$bfd_cv_ld_as_needed" = xyes; then
585 # Link against libm only when needed. Put -lc, -lm inside -Wl
586 # to stop libtool reordering these options.
587 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
589 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
594 AC_SUBST(SHARED_LDFLAGS)
595 AC_SUBST(SHARED_LIBADD)
599 # Canonicalize the secondary target names.
600 if test -n "$enable_targets" ; then
601 for targ in `echo $enable_targets | sed 's/,/ /g'`
603 result=`$ac_config_sub $targ 2>/dev/null`
604 if test -n "$result" ; then
605 canon_targets="$canon_targets $result"
607 # Allow targets that config.sub doesn't recognize, like "all".
608 canon_targets="$canon_targets $targ"
619 for targ in $target $canon_targets
621 if test "x$targ" = "xall"; then
623 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
626 if test "x$targ" = "x$target"; then
629 selvecs="$selvecs $targ_defvec $targ_selvecs"
630 selarchs="$selarchs $targ_archs"
631 TDEFINES="$TDEFINES $targ_cflags"
636 # This processing still needs to be done if we're to decide properly whether
637 # 64-bit support needs to be compiled in. Currently, it will be included if
638 # the default or any other explicitly requested target requires it; it
639 # will not be included on a 32-bit host if no 64-bit target is requested, and
640 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
643 # uniq the default and selected vectors in all the configured targets.
645 for i in $selvecs ; do
654 # uniq the associated vectors in all the configured targets.
656 for i in $assocvecs ; do
665 # uniq the architectures in all the configured targets.
667 for i in $selarchs ; do
675 # Target backend .o files.
678 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
679 elf-eh-frame.lo dwarf1.lo"
685 # This list is alphabetized to make it easy to compare
686 # with the two vector lists in targets.c. For the same reason,
687 # use one entry per line, even though this leads to long lines.
688 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
689 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
690 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
691 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
692 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
693 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
694 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
695 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
696 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
697 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
698 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
699 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
700 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
701 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
702 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
703 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
704 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
705 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
706 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
707 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
708 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
709 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
710 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
711 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
712 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
713 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
714 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
715 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
716 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
717 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
718 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
719 bfd_elf32_bigarm_nacl_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
720 bfd_elf32_bigarm_symbian_vec)
721 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
722 bfd_elf32_bigarm_vxworks_vec)
723 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
724 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
725 bfd_elf32_bigmips_vxworks_vec)
726 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
727 bfd_elf32_bigmoxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
728 bfd_elf32_bignios2_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
729 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
730 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
731 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
732 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
733 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
734 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
735 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
736 bfd_elf32_epiphany_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
737 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
738 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
739 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
740 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
741 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
742 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
743 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
744 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
745 bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
746 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
747 bfd_elf32_i386_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
748 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
749 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
750 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
751 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
752 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
753 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
754 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf";;
755 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
756 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
757 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
758 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
759 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
760 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
761 bfd_elf32_littlearm_symbian_vec)
762 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
763 bfd_elf32_littlearm_vxworks_vec)
764 tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
765 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
766 bfd_elf32_littlearm_nacl_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
767 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
768 bfd_elf32_littlemips_vxworks_vec)
769 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
770 bfd_elf32_littlemoxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
771 bfd_elf32_littlenios2_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
772 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
773 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
774 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
775 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
776 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
777 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
778 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
779 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
780 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
781 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
782 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
783 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
784 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
785 bfd_elf32_metag_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
786 bfd_elf32_microblazeel_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
787 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
788 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
789 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
790 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
791 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
792 bfd_elf32_msp430_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
793 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
794 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
795 bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec)
796 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
797 bfd_elf32_ntradlittlemips_vec | bfd_elf32_ntradlittlemips_freebsd_vec)
798 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
799 bfd_elf32_nds32be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
800 bfd_elf32_nds32le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
801 bfd_elf32_nds32belin_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
802 bfd_elf32_nds32lelin_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
803 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
804 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
805 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
806 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
807 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
808 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
809 bfd_elf32_powerpc_freebsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
810 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
811 bfd_elf32_rl78_vec) tb="$tb elf32-rl78.lo $elf" ;;
812 bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
813 bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
814 bfd_elf32_rx_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
815 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
816 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
817 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
818 # FIXME: We include cofflink.lo not because it's needed for
819 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
820 # which needs it but does not list it. Should be fixed in right place.
821 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
822 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
823 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
824 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
825 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
826 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
827 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
828 bfd_elf32_shbfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
829 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
830 bfd_elf32_shfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
831 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
832 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
833 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
834 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
835 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
836 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
837 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
838 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
839 bfd_elf32_sparc_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
840 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
841 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
842 bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
843 bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
844 bfd_elf32_tic6x_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
845 bfd_elf32_tic6x_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
846 bfd_elf32_tic6x_elf_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
847 bfd_elf32_tic6x_elf_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
848 bfd_elf32_tilegx_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
849 bfd_elf32_tilegx_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
850 bfd_elf32_tilepro_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
851 bfd_elf32_tradbigmips_vec | bfd_elf32_tradbigmips_freebsd_vec)
852 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
853 bfd_elf32_tradlittlemips_vec | bfd_elf32_tradlittlemips_freebsd_vec)
854 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
855 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
856 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
857 bfd_elf32_v850_rh850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
858 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
859 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
860 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
861 bfd_elf32_xgate_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
862 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
863 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
864 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
865 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
866 bfd_elf64_bigaarch64_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
867 bfd_elf32_bigaarch64_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
868 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
869 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 ;;
870 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
871 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
872 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
873 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
874 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
875 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
876 bfd_elf64_littleaarch64_vec)tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
877 bfd_elf32_littleaarch64_vec)tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
878 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
879 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 ;;
880 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
881 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
882 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
883 bfd_elf64_powerpc_freebsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
884 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
885 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
886 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
887 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
888 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
889 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
890 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
891 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
892 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
893 bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
894 bfd_elf64_tilegx_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
895 bfd_elf64_tilegx_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
896 bfd_elf64_tradbigmips_vec | bfd_elf64_tradbigmips_freebsd_vec)
897 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
898 bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec)
899 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
900 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
901 bfd_elf64_x86_64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
902 bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
903 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
904 bfd_elf32_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
905 bfd_elf32_x86_64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
906 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
907 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
908 bfd_elf64_k1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
909 bfd_elf64_k1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
910 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
911 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
912 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
913 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
914 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
915 cris_aout_vec) tb="$tb aout-cris.lo" ;;
916 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
917 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
918 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
919 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
920 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
921 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
922 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
923 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
924 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
925 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
926 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
927 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
928 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
929 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
930 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
931 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
932 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
933 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
934 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
935 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
936 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
937 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
938 i386msdos_vec) tb="$tb i386msdos.lo" ;;
939 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
940 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
941 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
942 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
943 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
944 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
945 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
946 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
947 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
948 ieee_vec) tb="$tb ieee.lo" ;;
949 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
950 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
951 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
952 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
953 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
954 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
955 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
956 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
957 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
958 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
959 mach_o_be_vec) tb="$tb mach-o.lo" ;;
960 mach_o_le_vec) tb="$tb mach-o.lo" ;;
961 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
962 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
963 mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;;
964 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
965 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
966 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
967 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
968 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
969 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
970 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
971 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
972 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
973 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
974 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
975 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
976 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
977 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
978 pef_vec) tb="$tb pef.lo" ;;
979 pef_xlib_vec) tb="$tb pef.lo" ;;
980 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
981 plugin_vec) tb="$tb plugin.lo" ;;
982 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
983 ppcboot_vec) tb="$tb ppcboot.lo" ;;
984 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
985 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
986 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
987 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
988 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
989 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
990 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
991 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
992 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
993 som_vec) tb="$tb som.lo" ;;
994 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
995 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
996 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
997 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
998 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
999 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
1000 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
1001 sym_vec) tb="$tb xsym.lo" ;;
1002 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
1003 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
1004 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
1005 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
1006 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
1007 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
1008 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
1009 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
1010 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
1011 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
1012 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
1013 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
1014 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
1015 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
1016 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
1017 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
1018 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
1019 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
1020 versados_vec) tb="$tb versados.lo" ;;
1021 vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
1022 vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
1023 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
1024 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
1025 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
1026 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
1028 # These appear out of order in targets.c
1029 srec_vec) tb="$tb srec.lo" ;;
1030 symbolsrec_vec) tb="$tb srec.lo" ;;
1031 tekhex_vec) tb="$tb tekhex.lo" ;;
1032 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
1033 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
1036 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
1039 if test ${target_size} = 64; then
1042 if test x"${vec}" = x"${defvec}"; then
1043 bfd_default_target_size=${target_size}
1047 # Target architecture .o files.
1048 # A couple of CPUs use shorter file names to avoid problems on DOS
1050 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
1052 # Weed out duplicate .o files.
1074 if test x${all_targets} = xtrue ; then
1075 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
1076 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
1078 havevecs=-DHAVE_all_vecs
1080 test -n "$assocvecs" &&
1081 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1082 else # all_targets is true
1083 # Only set these if they will be nonempty, for the clever echo.
1086 test -n "$selvecs" &&
1087 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
1088 test -n "$selvecs" &&
1089 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1090 test -n "$selarchs" &&
1091 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1092 fi # all_targets is true
1094 case ${host64}-${target64}-${want64} in
1097 bfd64_libs='$(BFD64_LIBS)'
1098 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
1099 if test $BFD_HOST_64_BIT_DEFINED = 0; then
1100 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
1101 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
1103 if test -n "$GCC" ; then
1105 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
1106 # Add more tests for gcc versions with non-working 64-bit support here.
1107 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
1109 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
1111 if test $bad_64bit_gcc = yes ; then
1112 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
1118 all_backends='$(BFD32_BACKENDS)'
1123 AC_SUBST(bfd64_libs)
1124 AC_SUBST(all_backends)
1125 AC_SUBST(bfd_backends)
1126 AC_SUBST(bfd_machines)
1127 AC_SUBST(bfd_default_target_size)
1129 if test "$plugins" = "yes"; then
1134 AC_SUBST(supports_plugins)
1135 AC_SUBST(lt_cv_dlopen_libs)
1137 # Determine the host dependant file_ptr a.k.a. off_t type. In order
1138 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1139 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1140 # Hopefully a reasonable assumption since fseeko et.al. should be
1141 # upward compatible.
1142 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1143 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1144 AC_CHECK_SIZEOF(off_t)
1146 AC_MSG_CHECKING([file_ptr type])
1148 bfd_ufile_ptr="unsigned long"
1149 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1150 -o x"${ac_cv_sizeof_off_t}" = x8; then
1151 bfd_file_ptr=BFD_HOST_64_BIT
1152 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1154 AC_MSG_RESULT($bfd_file_ptr)
1155 AC_SUBST(bfd_file_ptr)
1156 AC_SUBST(bfd_ufile_ptr)
1160 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1161 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
1162 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
1163 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1167 dnl AC_CHECK_HEADERS(sys/mman.h)
1169 AC_CHECK_FUNCS(madvise mprotect)
1170 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1171 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1174 rm -f doc/config.status
1175 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1177 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1178 dnl our two separate POTFILES. Yuck.
1179 AC_CONFIG_COMMANDS([default],
1183 *) srcdirpre='$(srcdir)/' ;;
1187 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1188 if test $lang != dummy; then
1189 POFILES="$POFILES $srcdirpre$lang.po"
1190 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1193 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1194 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1195 -e "s,@POFILES@,$POFILES," \
1196 -e "s,@GMOFILES@,$GMOFILES," \
1197 po/Makefile.in > po/Makefile]],[[]])
1199 dnl Required by html, pdf, install-pdf and install-html
1200 AC_SUBST(datarootdir)