1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright (C) 2012-2015 Free Software Foundation, Inc.
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 m4_include([version.m4])
22 AC_INIT([bfd], BFD_VERSION)
23 AC_CONFIG_SRCDIR([libbfd.c])
30 dnl These must be called before LT_INIT, because it may want
31 dnl to call AC_CHECK_PROG.
33 AC_CHECK_TOOL(RANLIB, ranlib, :)
35 dnl Default to a non shared library. This may be overridden by the
36 dnl configure option --enable-shared.
41 AC_USE_SYSTEM_EXTENSIONS
45 # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
48 AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
50 if test "$plugins" = "yes"; then
51 enable_targets="$enable_targets plugin"
54 AC_ARG_ENABLE(64-bit-bfd,
55 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
56 [case "${enableval}" in
59 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
60 esac],[want64=false])dnl
62 AC_ARG_ENABLE(targets,
63 [ --enable-targets alternative target configurations],
64 [case "${enableval}" in
65 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
67 no) enable_targets= ;;
68 *) enable_targets=$enableval ;;
72 [ --with-mmap try using mmap for BFD input files if available],
74 yes) want_mmap=true ;;
75 no) want_mmap=false ;;
76 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
77 esac],[want_mmap=false])dnl
79 AC_ARG_ENABLE(secureplt,
80 [ --enable-secureplt Default to creating read-only plt entries],
81 [case "${enableval}" in
82 yes) use_secureplt=true ;;
83 no) use_secureplt=false ;;
84 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
85 esac],[use_secureplt=true])dnl
86 if test $use_secureplt = true; then
87 AC_DEFINE(USE_SECUREPLT, 1,
88 [Define if we should default to creating read-only plt entries])
91 AC_ARG_ENABLE(leading-mingw64-underscores,
92 AS_HELP_STRING([--enable-leading-mingw64-underscores],
93 [Enable leading underscores on 64 bit mingw targets]),
95 AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
96 [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
97 [Define if we should use leading underscore on 64 bit mingw targets])])
99 DEBUGDIR=${libdir}/debug
100 AC_ARG_WITH(separate-debug-dir,
101 AS_HELP_STRING([--with-separate-debug-dir=DIR],
102 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
103 [DEBUGDIR="${withval}"])
106 # Check to see if we should allow the generation of
107 # symbols with the ELF standard's STT_COMMON type.
108 AC_ARG_ENABLE(elf-stt-common,
109 [ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type],
110 [case "${enableval}" in
111 yes) want_elf_stt_common=true ;;
112 no) want_elf_stt_common=false ;;
113 *) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;;
115 # We have to choose a default behaviour. For native builds we could
116 # test whether the loader supports the STT_COMMON type, but that would
117 # mean that built binaries could not be exported to older systems where
118 # the loader does not support it. So by default we always choose to
119 # disable this feature.
120 want_elf_stt_common=false)dnl
121 if test $want_elf_stt_common = true; then
122 AC_DEFINE(USE_STT_COMMON, 1,
123 [Define if we may generate symbols with ELF's STT_COMMON type])
126 ACX_PKGVERSION([GNU Binutils])
127 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
131 AC_CONFIG_HEADERS(config.h:config.in)
134 AH_VERBATIM([00_CONFIG_H_CHECK],
135 [/* Check that config.h is #included before system headers
136 (this works only for glibc, but that should be enough). */
137 #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
138 # error config.h must be #included before system headers
140 #define __CONFIG_H__ 1])
142 if test -z "$target" ; then
143 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
147 AM_CONDITIONAL(GENINSRC_NEVER, false)
153 bfd_default_target_size=32
157 ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru uk"
158 ZW_GNU_GETTEXT_SISTER_DIR
161 # Permit host specific settings.
162 . ${srcdir}/configure.host
167 BFD_HOST_64BIT_LONG=0
168 BFD_HOST_64BIT_LONG_LONG=0
169 BFD_HOST_64_BIT_DEFINED=0
172 BFD_HOSTPTR_T="unsigned long"
174 AC_CHECK_SIZEOF(long long)
175 AC_CHECK_SIZEOF(void *)
176 AC_CHECK_SIZEOF(long)
178 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
182 if test "x${ac_cv_sizeof_long}" = "x8"; then
183 BFD_HOST_64BIT_LONG=1
184 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
185 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
186 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
187 BFD_HOST_64BIT_LONG_LONG=1
188 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
189 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
190 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
191 BFD_HOSTPTR_T="unsigned long long"
195 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
196 BFD_HOST_64_BIT_DEFINED=1
197 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
198 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
201 AC_SUBST(BFD_HOST_64BIT_LONG)
202 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
203 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
204 AC_SUBST(BFD_HOST_64_BIT)
205 AC_SUBST(BFD_HOST_U_64_BIT)
206 AC_SUBST(BFD_HOSTPTR_T)
210 AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h)
211 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h)
212 GCC_HEADER_STDINT(bfd_stdint.h)
217 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
218 AC_CHECK_FUNCS(strtoull getrlimit)
220 AC_CHECK_DECLS(basename)
221 AC_CHECK_DECLS(ftello)
222 AC_CHECK_DECLS(ftello64)
223 AC_CHECK_DECLS(fseeko)
224 AC_CHECK_DECLS(fseeko64)
230 AC_CHECK_DECLS(getenv)
231 AC_CHECK_DECLS(malloc)
232 AC_CHECK_DECLS(realloc)
233 AC_CHECK_DECLS(stpcpy)
234 AC_CHECK_DECLS(strstr)
235 AC_CHECK_DECLS(snprintf)
236 AC_CHECK_DECLS(vsnprintf)
237 AC_CHECK_DECLS(strnlen)
239 # Use the system's zlib library.
241 zlibinc="-I\$(srcdir)/../zlib"
242 AC_ARG_WITH(system-zlib,
243 [AS_HELP_STRING([--with-system-zlib], [use installed libz])],
250 # If we are configured native, pick a core file support file.
255 if test "${target}" = "${host}"; then
257 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
261 COREFILE=trad-core.lo
262 TRAD_HEADER='"hosts/alphalinux.h"'
264 alpha*-*-netbsd* | alpha*-*-openbsd*)
265 COREFILE=netbsd-core.lo
270 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
272 arm-*-netbsd* | arm-*-openbsd*)
273 COREFILE=netbsd-core.lo
275 arm-*-riscix) COREFILE=trad-core.lo ;;
276 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
277 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
278 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
279 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
280 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
281 hppa*-*-netbsd* | hppa*-*-openbsd*)
282 COREFILE=netbsd-core.lo
286 COREFILE=trad-core.lo
287 TRAD_HEADER='"hosts/i370linux.h"'
291 i[3-7]86-sequent-bsd*)
293 COREFILE=trad-core.lo
294 TRAD_HEADER='"hosts/symmetry.h"'
297 i[3-7]86-sequent-sysv4*) ;;
298 i[3-7]86-sequent-sysv*)
300 COREFILE=trad-core.lo
301 TRAD_HEADER='"hosts/symmetry.h"'
309 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*)
311 COREFILE=trad-core.lo
312 TRAD_HEADER='"hosts/i386bsd.h"'
315 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
318 TRAD_HEADER='"hosts/i386bsd.h"'
321 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
323 COREFILE=netbsd-core.lo
326 i[3-7]86-esix-sysv3*)
328 COREFILE=trad-core.lo
329 TRAD_HEADER='"hosts/esix.h"'
332 i[3-7]86-*-sco3.2v5*)
334 COREFILE=sco5-core.lo
337 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
339 COREFILE=trad-core.lo
340 TRAD_HEADER='"hosts/i386sco.h"'
345 COREFILE=trad-core.lo
346 TRAD_HEADER='"hosts/i386mach3.h"'
351 COREFILE=trad-core.lo
352 TRAD_HEADER='"hosts/i386linux.h"'
353 case "$enable_targets"-"$want64" in
354 *x86_64-*linux*|*-true)
355 CORE_HEADER='"hosts/x86-64linux.h"'
359 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
360 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
362 i860-*-mach3* | i860-*-osf1*)
363 COREFILE=trad-core.lo
364 TRAD_HEADER='"hosts/i860mach3.h"'
366 mips-*-netbsd* | mips*-*-openbsd*)
367 COREFILE=netbsd-core.lo
370 COREFILE=trad-core.lo
371 TRAD_HEADER='"hosts/decstation.h"'
373 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
374 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
375 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
377 mips-*-sysv* | mips-*-riscos*)
378 COREFILE=trad-core.lo
379 TRAD_HEADER='"hosts/riscos.h"'
382 COREFILE=trad-core.lo
383 TRAD_HEADER='"hosts/news-mips.h"'
386 COREFILE=trad-core.lo
387 TRAD_HEADER='"hosts/dpx2.h"'
389 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
391 COREFILE=trad-core.lo
392 TRAD_HEADER='"hosts/hp300bsd.h"'
395 COREFILE=trad-core.lo
396 TRAD_HEADER='"hosts/m68klinux.h"'
399 COREFILE=trad-core.lo
400 TRAD_HEADER='"hosts/delta68.h"'
403 COREFILE=trad-core.lo
404 TRAD_HEADER='"hosts/news.h"'
406 m68*-*-netbsd* | m68*-*-openbsd*)
407 COREFILE=netbsd-core.lo
410 COREFILE=trad-core.lo
411 TRAD_HEADER='"hosts/m68kaux.h"'
416 COREFILE=ptrace-core.lo
419 COREFILE=trad-core.lo
420 TRAD_HEADER='"hosts/m88kmach3.h"'
423 COREFILE=netbsd-core.lo
426 COREFILE=trad-core.lo
427 TRAD_HEADER='"hosts/pc532mach.h"'
429 ns32k-*-netbsd* | ns32k-*-openbsd*)
430 COREFILE=netbsd-core.lo
433 COREFILE=lynx-core.lo
436 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
438 COREFILE=rs6000-core.lo
439 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
442 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
444 COREFILE=rs6000-core.lo
445 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
446 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
447 # have c_impl as a member of struct core_dumpx
448 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
449 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
450 [Define if struct core_dumpx has member c_impl])
451 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
453 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
454 rs6000-*-*) COREFILE=rs6000-core.lo ;;
455 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
456 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
458 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
460 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
461 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
462 s390*-*-*) COREFILE=trad-core.lo ;;
463 sh*-*-netbsd* | sh*-*-openbsd*)
464 COREFILE=netbsd-core.lo
466 sparc-*-netbsd* | sparc*-*-openbsd*)
467 COREFILE=netbsd-core.lo
470 COREFILE=trad-core.lo
471 TRAD_HEADER='"hosts/tahoe.h"'
473 vax-*-netbsd* | vax-*-openbsd*)
474 COREFILE=netbsd-core.lo
477 COREFILE=trad-core.lo
478 TRAD_HEADER='"hosts/vaxult2.h"'
481 COREFILE=trad-core.lo
482 TRAD_HEADER='"hosts/vaxult2.h"'
485 COREFILE=trad-core.lo
486 TRAD_HEADER='"hosts/vaxlinux.h"'
489 COREFILE=trad-core.lo
490 TRAD_HEADER='"hosts/vaxbsd.h"'
493 CORE_HEADER='"hosts/x86-64linux.h"'
495 x86_64-*-netbsd* | x86_64-*-openbsd*)
496 COREFILE=netbsd-core.lo
501 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
502 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
503 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
504 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
505 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
506 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
507 osf-core.lo) COREFLAG=-DOSF_CORE ;;
508 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
509 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
510 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
511 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
514 # ELF corefile support has several flavors, but all of
515 # them use something called <sys/procfs.h>
516 AC_CHECK_HEADERS(sys/procfs.h)
517 if test "$ac_cv_header_sys_procfs_h" = yes; then
518 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
519 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
520 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
521 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
522 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
523 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
524 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
525 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
526 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
527 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
528 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
529 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
530 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
531 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
532 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
533 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
534 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
535 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
536 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
537 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
538 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
543 if test -n "$CORE_HEADER"; then
544 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
545 [Name of host specific core header file to include in elf.c.])
547 if test -n "$TRAD_HEADER"; then
548 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
549 [Name of host specific header file to include in trad-core.c.])
552 # Check if linker supports --as-needed and --no-as-needed options
553 AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
554 [bfd_cv_ld_as_needed=no
555 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
556 bfd_cv_ld_as_needed=yes
562 # When building a shared libbfd, link against the pic version of libiberty
563 # so that apps that use libbfd won't need libiberty just to satisfy any
565 # We can't do that if a pic libiberty is unavailable since including non-pic
566 # code would insert text relocations into libbfd.
569 if test "$enable_shared" = "yes"; then
571 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
573 if test -n "$x"; then
574 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
577 # More hacks to build DLLs on Windows.
580 SHARED_LDFLAGS="-no-undefined"
581 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
584 # Hack to build or1k-src on OSX
586 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
590 if test -n "$SHARED_LIBADD"; then
591 if test -n "$LIBM"; then
592 if test x"$bfd_cv_ld_as_needed" = xyes; then
593 # Link against libm only when needed. Put -lc, -lm inside -Wl
594 # to stop libtool reordering these options.
595 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
597 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
602 AC_SUBST(SHARED_LDFLAGS)
603 AC_SUBST(SHARED_LIBADD)
607 # Canonicalize the secondary target names.
608 if test -n "$enable_targets" ; then
609 for targ in `echo $enable_targets | sed 's/,/ /g'`
611 result=`$ac_config_sub $targ 2>/dev/null`
612 if test -n "$result" ; then
613 canon_targets="$canon_targets $result"
615 # Allow targets that config.sub doesn't recognize, like "all".
616 canon_targets="$canon_targets $targ"
627 for targ in $target $canon_targets
629 if test "x$targ" = "xall"; then
631 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
634 if test "x$targ" = "x$target"; then
637 selvecs="$selvecs $targ_defvec $targ_selvecs"
638 selarchs="$selarchs $targ_archs"
639 TDEFINES="$TDEFINES $targ_cflags"
644 # This processing still needs to be done if we're to decide properly whether
645 # 64-bit support needs to be compiled in. Currently, it will be included if
646 # the default or any other explicitly requested target requires it; it
647 # will not be included on a 32-bit host if no 64-bit target is requested, and
648 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
651 # uniq the default and selected vectors in all the configured targets.
653 for i in $selvecs ; do
662 # uniq the associated vectors in all the configured targets.
664 for i in $assocvecs ; do
673 # uniq the architectures in all the configured targets.
675 for i in $selarchs ; do
683 # Target backend .o files.
686 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
687 elf-eh-frame.lo dwarf1.lo dwarf2.lo"
688 coffgen="coffgen.lo dwarf2.lo"
689 coff="cofflink.lo $coffgen"
690 ecoff="ecofflink.lo $coffgen"
691 xcoff="xcofflink.lo $coffgen"
697 # This list is alphabetized to make it easy to compare
698 # with the two vector lists in targets.c. For the same reason,
699 # use one entry per line, even though this leads to long lines.
700 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
701 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
702 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
703 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
704 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
705 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
706 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
707 alpha_nlm32_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
708 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
709 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
710 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
711 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
712 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
713 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
714 aout_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
715 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
716 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
717 arm_aout_be_vec) tb="$tb aout-arm.lo aout32.lo" ;;
718 arm_aout_le_vec) tb="$tb aout-arm.lo aout32.lo" ;;
719 arm_aout_nbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
720 arm_aout_riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
721 arm_coff_be_vec) tb="$tb coff-arm.lo $coff" ;;
722 arm_coff_le_vec) tb="$tb coff-arm.lo $coff" ;;
723 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
724 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
725 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
726 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
727 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
728 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
729 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
730 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
731 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
732 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
733 arm_pe_epoc_be_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
734 arm_pe_epoc_le_vec) tb="$tb epoc-pe-arm.lo peigen.lo $coff" ;;
735 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
736 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
737 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
738 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
739 arm_pei_epoc_be_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
740 arm_pei_epoc_le_vec) tb="$tb epoc-pei-arm.lo peigen.lo $coff" ;;
741 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
742 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
743 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
744 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
745 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
746 bout_be_vec) tb="$tb bout.lo aout32.lo" ;;
747 bout_le_vec) tb="$tb bout.lo aout32.lo" ;;
748 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
749 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
750 cris_aout_vec) tb="$tb aout-cris.lo" ;;
751 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
752 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
753 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
754 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
755 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
756 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
757 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
758 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
759 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
760 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
761 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
762 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
763 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
764 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
765 h8300_coff_vec) tb="$tb coff-h8300.lo reloc16.lo $coffgen" ;;
766 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
767 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
768 h8500_coff_vec) tb="$tb coff-h8500.lo reloc16.lo $coffgen" ;;
769 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
770 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
771 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
772 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
773 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
774 hppa_som_vec) tb="$tb som.lo" ;;
775 i370_elf32_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
776 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
777 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
778 i386_aout_dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
779 i386_aout_fbsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
780 i386_aout_linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
781 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
782 i386_aout_mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
783 i386_aout_nbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
784 i386_aout_os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
785 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
786 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
787 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
788 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
789 i386_elf32_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
790 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
791 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
792 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
793 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;;
794 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
795 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
796 i386_nlm32_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
797 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
798 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
799 i860_coff_vec) tb="$tb coff-i860.lo $coff" ;;
800 i860_elf32_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
801 i860_elf32_le_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
802 i960_elf32_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
803 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
804 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
805 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
806 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
807 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
808 ia64_elf64_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 ;;
809 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
810 icoff_be_vec) tb="$tb coff-i960.lo $coff" ;;
811 icoff_le_vec) tb="$tb coff-i960.lo $coff" ;;
812 ieee_vec) tb="$tb ieee.lo" ;;
813 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
814 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
815 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
816 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
817 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
818 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
819 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
820 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
821 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
822 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
823 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
824 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
825 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
826 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
827 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
828 m68k_aout_4knbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
829 m68k_aout_hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
830 m68k_aout_hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
831 m68k_aout_linux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
832 m68k_aout_nbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
833 m68k_aout_newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
834 m68k_coff_vec) tb="$tb coff-m68k.lo $coff" ;;
835 m68k_coff_apollo_vec) tb="$tb coff-apollo.lo $coffgen" ;;
836 m68k_coff_aux_vec) tb="$tb coff-aux.lo coff-m68k.lo $coff" ;;
837 m68k_coff_sysv_vec) tb="$tb coff-svm68k.lo $coff" ;;
838 m68k_coff_un_vec) tb="$tb coff-u68k.lo coff-m68k.lo $coff" ;;
839 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
840 m68k_versados_vec) tb="$tb versados.lo" ;;
841 m88k_aout_mach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
842 m88k_aout_obsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
843 m88k_coff_bcs_vec) tb="$tb coff-m88k.lo $coffgen" ;;
844 m88k_elf32_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
845 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
846 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
847 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
848 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
849 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
850 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
851 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
852 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
853 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
854 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
855 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
856 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
857 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
858 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
859 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
860 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
861 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
862 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
863 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
864 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
865 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
866 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
867 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
868 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
869 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
870 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
871 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
872 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
873 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
874 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
875 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
876 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
877 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
878 mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
879 mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
880 mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
881 mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
882 mips_pe_le_vec) tb="$tb pe-mips.lo peigen.lo $coff" ;;
883 mips_pei_le_vec) tb="$tb pei-mips.lo peigen.lo $coff" ;;
884 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
885 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
886 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
887 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
888 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
889 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
890 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
891 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
892 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
893 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
894 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
895 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
896 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
897 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
898 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
899 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
900 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
901 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
902 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
903 pef_vec) tb="$tb pef.lo" ;;
904 pef_xlib_vec) tb="$tb pef.lo" ;;
905 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
906 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
907 plugin_vec) tb="$tb plugin.lo" ;;
908 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
909 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
910 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
911 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
912 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
913 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
914 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
915 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
916 powerpc_nlm32_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
917 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
918 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
919 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
920 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
921 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
922 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
923 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
924 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
925 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
926 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
927 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
928 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
929 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
930 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
931 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
932 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
933 sh64_elf32_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
934 sh64_elf32_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
935 sh64_elf32_linux_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
936 sh64_elf32_linux_be_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" target_size=64 ;;
937 sh64_elf32_nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
938 sh64_elf32_nbsd_le_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf" ;;
939 sh64_elf64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
940 sh64_elf64_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
941 sh64_elf64_linux_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
942 sh64_elf64_linux_be_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
943 sh64_elf64_nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
944 sh64_elf64_nbsd_le_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
945 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
946 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
947 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
948 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
949 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
950 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
951 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
952 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
953 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
954 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
955 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
956 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
957 sh_elf32_symbian_le_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
958 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
959 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
960 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
961 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
962 sparc_aout_le_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
963 sparc_aout_linux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
964 sparc_aout_lynx_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
965 sparc_aout_nbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
966 sparc_aout_sunos_be_vec) tb="$tb sunos.lo aout32.lo" ;;
967 sparc_coff_vec) tb="$tb coff-sparc.lo $coffgen" ;;
968 sparc_coff_lynx_vec) tb="$tb cf-sparclynx.lo lynx-core.lo $coffgen" ;;
969 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
970 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
971 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
972 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
973 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
974 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
975 sparc_nlm32_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
976 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
977 sym_vec) tb="$tb xsym.lo" ;;
978 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
979 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
980 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
981 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
982 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
983 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
984 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
985 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
986 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
987 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
988 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
989 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
990 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
991 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
992 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
993 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
994 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
995 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
996 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
997 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
998 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
999 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
1000 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
1001 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
1002 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
1003 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
1004 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
1005 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
1006 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
1007 vax_aout_bsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
1008 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
1009 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
1010 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
1011 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
1012 w65_coff_vec) tb="$tb coff-w65.lo reloc16.lo $coffgen" ;;
1013 we32k_coff_vec) tb="$tb coff-we32k.lo $coffgen" ;;
1014 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
1015 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
1016 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
1017 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
1018 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
1019 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
1020 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
1021 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
1022 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
1023 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
1024 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
1025 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
1026 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
1027 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
1028 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
1029 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
1030 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
1031 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
1033 # These appear out of order in targets.c
1034 srec_vec) tb="$tb srec.lo" ;;
1035 symbolsrec_vec) tb="$tb srec.lo" ;;
1036 tekhex_vec) tb="$tb tekhex.lo" ;;
1037 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
1038 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
1041 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
1044 if test ${target_size} = 64; then
1047 if test x"${vec}" = x"${defvec}"; then
1048 bfd_default_target_size=${target_size}
1052 # Target architecture .o files.
1053 # A couple of CPUs use shorter file names to avoid problems on DOS
1055 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
1057 # Weed out duplicate .o files.
1079 if test x${all_targets} = xtrue ; then
1080 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
1081 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
1083 havevecs=-DHAVE_all_vecs
1085 test -n "$assocvecs" &&
1086 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1087 else # all_targets is true
1088 # Only set these if they will be nonempty, for the clever echo.
1091 test -n "$selvecs" &&
1092 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
1093 test -n "$selvecs" &&
1094 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1095 test -n "$selarchs" &&
1096 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1097 fi # all_targets is true
1099 case ${host64}-${target64}-${want64} in
1102 bfd64_libs='$(BFD64_LIBS)'
1103 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
1104 if test $BFD_HOST_64_BIT_DEFINED = 0; then
1105 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
1106 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
1108 if test -n "$GCC" ; then
1110 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
1111 # Add more tests for gcc versions with non-working 64-bit support here.
1112 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
1114 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
1116 if test $bad_64bit_gcc = yes ; then
1117 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
1123 all_backends='$(BFD32_BACKENDS)'
1128 AC_SUBST(bfd64_libs)
1129 AC_SUBST(all_backends)
1130 AC_SUBST(bfd_backends)
1131 AC_SUBST(bfd_machines)
1132 AC_SUBST(bfd_default_target_size)
1134 if test "$plugins" = "yes"; then
1139 AC_SUBST(supports_plugins)
1140 AC_SUBST(lt_cv_dlopen_libs)
1142 # Determine the host dependant file_ptr a.k.a. off_t type. In order
1143 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1144 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1145 # Hopefully a reasonable assumption since fseeko et.al. should be
1146 # upward compatible.
1147 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1148 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1149 AC_CHECK_SIZEOF(off_t)
1151 AC_MSG_CHECKING([file_ptr type])
1153 bfd_ufile_ptr="unsigned long"
1154 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1155 -o x"${ac_cv_sizeof_off_t}" = x8; then
1156 bfd_file_ptr=BFD_HOST_64_BIT
1157 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1159 AC_MSG_RESULT($bfd_file_ptr)
1160 AC_SUBST(bfd_file_ptr)
1161 AC_SUBST(bfd_ufile_ptr)
1165 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1166 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
1167 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
1168 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
1172 dnl AC_CHECK_HEADERS(sys/mman.h)
1174 AC_CHECK_FUNCS(madvise mprotect)
1175 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1176 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1179 rm -f doc/config.status
1180 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1182 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1183 dnl our two separate POTFILES. Yuck.
1184 AC_CONFIG_COMMANDS([default],
1188 *) srcdirpre='$(srcdir)/' ;;
1192 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1193 if test $lang != dummy; then
1194 POFILES="$POFILES $srcdirpre$lang.po"
1195 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1198 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1199 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1200 -e "s,@POFILES@,$POFILES," \
1201 -e "s,@GMOFILES@,$GMOFILES," \
1202 po/Makefile.in > po/Makefile]],[[]])
1204 dnl Required by html, pdf, install-pdf and install-html
1205 AC_SUBST(datarootdir)