1 dnl Process this file with autoconf to produce a configure script.
3 dnl Copyright (C) 2012-2019 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/>.
20 m4_include([version.m4])
21 AC_INIT([bfd], BFD_VERSION)
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 AC_ARG_ENABLE(64-bit-bfd,
50 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
51 [case "${enableval}" in
54 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
55 esac],[want64=false])dnl
57 AC_ARG_ENABLE(targets,
58 [ --enable-targets alternative target configurations],
59 [case "${enableval}" in
60 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
62 no) enable_targets= ;;
63 *) enable_targets=$enableval ;;
66 AC_ARG_ENABLE(64_bit_archive,
67 AS_HELP_STRING([--enable-64-bit-archive],
68 [force 64-bit archives]),
69 [case "${enableval}" in
70 yes) want_64_bit_archive=true ;;
71 no) want_64_bit_archive=false ;;
72 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-archive option) ;;
73 esac],[want_64_bit_archive=unset])dnl
76 [ --with-mmap try using mmap for BFD input files if available],
78 yes) want_mmap=true ;;
79 no) want_mmap=false ;;
80 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
81 esac],[want_mmap=false])dnl
83 AC_ARG_ENABLE(secureplt,
84 [ --enable-secureplt Default to creating read-only plt entries],
85 [case "${enableval}" in
86 yes) use_secureplt=true ;;
87 no) use_secureplt=false ;;
88 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
89 esac],[use_secureplt=true])dnl
90 if test $use_secureplt = true; then
91 AC_DEFINE(USE_SECUREPLT, 1,
92 [Define if we should default to creating read-only plt entries])
95 # Decide if -z separate-code should be enabled in ELF linker by default.
96 ac_default_ld_z_separate_code=unset
97 AC_ARG_ENABLE(separate-code,
98 AS_HELP_STRING([--enable-separate-code],
99 [enable -z separate-code in ELF linker by default]),
100 [case "${enableval}" in
101 yes) ac_default_ld_z_separate_code=1 ;;
102 no) ac_default_ld_z_separate_code=0 ;;
104 # Enable -z separate-code by default for Linux/x86.
107 i[3-7]86-*-linux-* | x86_64-*-linux-*)
109 if test ${ac_default_ld_z_separate_code} = unset; then
110 ac_default_ld_z_separate_code=1
114 if test "${ac_default_ld_z_separate_code}" = unset; then
115 ac_default_ld_z_separate_code=0
117 AC_DEFINE_UNQUOTED(DEFAULT_LD_Z_SEPARATE_CODE,
118 $ac_default_ld_z_separate_code,
119 [Define to 1 if you want to enable -z separate-code in ELF linker by default.])
121 AC_ARG_ENABLE(leading-mingw64-underscores,
122 AS_HELP_STRING([--enable-leading-mingw64-underscores],
123 [Enable leading underscores on 64 bit mingw targets]),
125 AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
126 [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
127 [Define if we should use leading underscore on 64 bit mingw targets])])
129 AC_ARG_ENABLE(annobin_verification,
130 [AS_HELP_STRING([[--enable-annobin-verification[=warn|strict]]],
131 [enable runtime checks with dynamic notes generated by annobin plugin])],
132 [case "${enableval}" in
133 yes | warn | "" ) annobin_verification=warn ;;
134 strict ) annobin_verification=strict ;;
135 no) annobin_verification=no ;;
136 *) annobin_verification=no ;;
138 [annobin_verification=no])
139 if test "$annobin_verification" = "yes" ||
140 test "$annobin_verification" = "warn" ||
141 test "$annobin_verification" = "strict"; then
142 AC_DEFINE(ENABLE_ANNOBIN_VERIFICATION, 1,
143 [Define to enable annobin runtime checks for static linker (warnings only)])
144 if test "$annobin_verification" = "strict"; then
145 AC_DEFINE(ENABLE_ANNOBIN_VERIFICATION_STRICT, 1,
146 [Define to enable annobin runtime strict checks (error mode)])
150 DEBUGDIR=${libdir}/debug
151 AC_ARG_WITH(separate-debug-dir,
152 AS_HELP_STRING([--with-separate-debug-dir=DIR],
153 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
154 [DEBUGDIR="${withval}"])
157 ACX_PKGVERSION([GNU Binutils])
158 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
162 AC_CONFIG_HEADERS(config.h:config.in)
165 AH_VERBATIM([00_CONFIG_H_CHECK],
166 [/* Check that config.h is #included before system headers
167 (this works only for glibc, but that should be enough). */
168 #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
169 # error config.h must be #included before system headers
171 #define __CONFIG_H__ 1])
173 if test -z "$target" ; then
174 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
178 AM_CONDITIONAL(GENINSRC_NEVER, false)
184 bfd_default_target_size=32
188 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
189 ZW_GNU_GETTEXT_SISTER_DIR
192 # Permit host specific settings.
193 . ${srcdir}/configure.host
198 BFD_HOST_64BIT_LONG=0
199 BFD_HOST_64BIT_LONG_LONG=0
200 BFD_HOST_64_BIT_DEFINED=0
203 BFD_HOSTPTR_T="unsigned long"
206 AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
207 AC_CHECK_SIZEOF(void *)
208 AC_CHECK_SIZEOF(long)
211 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
215 if test "x${ac_cv_sizeof_long}" = "x8"; then
216 BFD_HOST_64BIT_LONG=1
217 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
218 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
219 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
220 BFD_HOST_64BIT_LONG_LONG=1
221 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
222 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
223 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
224 BFD_HOSTPTR_T="unsigned long long"
228 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
229 BFD_HOST_64_BIT_DEFINED=1
230 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
231 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
234 AC_SUBST(BFD_HOST_64BIT_LONG)
235 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
236 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
237 AC_SUBST(BFD_HOST_64_BIT)
238 AC_SUBST(BFD_HOST_U_64_BIT)
239 AC_SUBST(BFD_HOSTPTR_T)
243 AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h)
244 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h)
245 GCC_HEADER_STDINT(bfd_stdint.h)
250 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno fls)
251 AC_CHECK_FUNCS(strtoull getrlimit)
253 AC_CHECK_DECLS(basename)
254 AC_CHECK_DECLS(ftello)
255 AC_CHECK_DECLS(ftello64)
256 AC_CHECK_DECLS(fseeko)
257 AC_CHECK_DECLS(fseeko64)
263 AC_CHECK_DECLS(getenv)
264 AC_CHECK_DECLS(malloc)
265 AC_CHECK_DECLS(realloc)
266 AC_CHECK_DECLS(stpcpy)
267 AC_CHECK_DECLS(strstr)
268 AC_CHECK_DECLS(asprintf)
269 AC_CHECK_DECLS(vasprintf)
270 AC_CHECK_DECLS(snprintf)
271 AC_CHECK_DECLS(vsnprintf)
272 AC_CHECK_DECLS(strnlen)
274 # Link in zlib if we can. This allows us to read compressed debug sections.
275 # This is used only by compress.c.
278 save_CFLAGS="$CFLAGS"
279 CFLAGS="$CFLAGS -Werror"
280 AC_CACHE_CHECK([compiler support for hidden visibility], bfd_cv_hidden,
281 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
282 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
283 extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));]],
285 [bfd_cv_hidden=yes], [bfd_cv_hidden=no])])
286 CFLAGS="$save_CFLAGS"
287 if test $bfd_cv_hidden = yes; then
288 AC_DEFINE(HAVE_HIDDEN, 1,
289 [Define if your compiler supports hidden visibility.])
292 # Check if linker supports --as-needed and --no-as-needed options
293 AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
294 [bfd_cv_ld_as_needed=no
295 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
296 bfd_cv_ld_as_needed=yes
302 # When building a shared libbfd, link against the pic version of libiberty
303 # so that apps that use libbfd won't need libiberty just to satisfy any
305 # We can't do that if a pic libiberty is unavailable since including non-pic
306 # code would insert text relocations into libbfd.
309 if test "$enable_shared" = "yes"; then
311 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
313 if test -n "$x"; then
314 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
318 # More hacks to build DLLs on Windows.
320 SHARED_LDFLAGS="-no-undefined"
321 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
324 # Use built-in libintl on macOS, since it is not provided by libc.
326 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
330 if test -n "$SHARED_LIBADD"; then
331 if test -n "$LIBM"; then
332 if test x"$bfd_cv_ld_as_needed" = xyes; then
333 # Link against libm only when needed. Put -lc, -lm inside -Wl
334 # to stop libtool reordering these options.
335 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
337 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
342 AC_SUBST(SHARED_LDFLAGS)
343 AC_SUBST(SHARED_LIBADD)
347 # Canonicalize the secondary target names.
348 if test -n "$enable_targets" ; then
349 for targ in `echo $enable_targets | sed 's/,/ /g'`
351 result=`$ac_config_sub $targ 2>/dev/null`
352 if test -n "$result" ; then
353 canon_targets="$canon_targets $result"
355 # Allow targets that config.sub doesn't recognize, like "all".
356 canon_targets="$canon_targets $targ"
367 for targ in $target $canon_targets
369 if test $targ = all; then
371 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
372 elif test $targ != plugin; then
374 if test $targ = $target; then
377 selvecs="$selvecs $targ_defvec $targ_selvecs"
378 selarchs="$selarchs $targ_archs"
379 TDEFINES="$TDEFINES $targ_cflags"
384 # This processing still needs to be done if we're to decide properly whether
385 # 64-bit support needs to be compiled in. Currently, it will be included if
386 # the default or any other explicitly requested target requires it; it
387 # will not be included on a 32-bit host if no 64-bit target is requested, and
388 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
391 # uniq the default and selected vectors in all the configured targets.
393 for i in $selvecs ; do
402 # uniq the associated vectors in all the configured targets.
404 for i in $assocvecs ; do
413 # uniq the architectures in all the configured targets.
415 for i in $selarchs ; do
423 # Target backend .o files.
426 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
428 coffgen="coffgen.lo dwarf2.lo"
429 coff="cofflink.lo $coffgen"
430 ecoff="ecofflink.lo $coffgen"
431 xcoff="xcofflink.lo $coffgen"
433 elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo"
438 # This list is alphabetized to make it easy to compare
439 # with the two vector lists in targets.c. For the same reason,
440 # use one entry per line, even though this leads to long lines.
441 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
442 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
443 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
444 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
445 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
446 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
447 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
448 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
449 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
450 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
451 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
452 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
453 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
454 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
455 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
456 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
457 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
458 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
459 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
460 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
461 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
462 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
463 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
464 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
465 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
466 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
467 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
468 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
469 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
470 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
471 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
472 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
473 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
474 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
475 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
476 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
477 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
478 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
479 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
480 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
481 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
482 cr16c_elf32_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
483 cris_aout_vec) tb="$tb aout-cris.lo" ;;
484 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
485 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
486 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
487 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
488 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
489 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
490 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
491 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
492 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
493 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
494 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
495 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
496 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
497 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
498 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
499 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
500 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
501 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
502 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
503 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
504 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
505 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
506 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
507 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
508 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
509 hppa_som_vec) tb="$tb som.lo" ;;
510 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
511 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
512 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
513 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
514 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
515 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
516 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
517 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
518 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
519 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
520 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
521 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
522 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
523 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
524 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
525 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
526 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
527 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
528 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
529 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
530 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
531 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
532 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 ;;
533 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
534 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
535 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
536 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
537 k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
538 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
539 l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
540 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
541 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
542 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
543 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
544 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
545 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
546 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
547 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
548 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
549 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
550 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
551 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
552 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
553 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
554 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
555 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
556 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
557 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
558 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
559 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
560 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
561 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
562 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
563 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
564 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
565 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
566 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
567 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
568 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
569 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
570 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
571 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
572 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
573 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
574 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
575 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
576 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
577 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
578 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
579 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
580 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
581 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
582 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
583 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
584 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 ;;
585 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 ;;
586 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 ;;
587 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 ;;
588 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
589 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
590 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
591 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
592 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
593 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
594 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
595 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
596 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
597 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
598 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
599 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
600 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
601 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
602 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
603 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
604 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
605 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
606 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
607 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
608 pef_vec) tb="$tb pef.lo" ;;
609 pef_xlib_vec) tb="$tb pef.lo" ;;
610 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
611 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
612 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
613 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
614 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
615 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
616 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
617 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
618 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
619 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
620 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
621 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
622 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
623 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
624 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
625 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
626 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
627 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
628 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
629 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
630 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
631 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
632 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
633 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
634 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
635 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
636 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
637 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
638 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
639 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
640 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
641 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
642 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
643 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
644 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
645 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
646 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
647 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
648 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
649 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
650 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
651 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
652 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
653 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
654 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
655 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
656 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
657 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
658 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
659 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
660 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
661 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
662 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
663 sym_vec) tb="$tb xsym.lo" ;;
664 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
665 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
666 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
667 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
668 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
669 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
670 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
671 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
672 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
673 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
674 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
675 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
676 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
677 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
678 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
679 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
680 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
681 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
682 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
683 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
684 tic80_coff_vec) tb="$tb coff-tic80.lo $coff" ;;
685 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
686 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
687 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
688 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
689 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
690 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
691 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
692 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
693 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
694 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
695 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
696 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
697 wasm_vec) tb="$tb wasm-module.lo" ;;
698 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
699 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
700 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
701 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
702 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
703 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
704 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
705 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
706 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
707 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
708 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
709 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
710 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
711 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
712 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
713 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
714 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
715 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
716 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
717 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
719 # These appear out of order in targets.c
720 srec_vec) tb="$tb srec.lo" ;;
721 symbolsrec_vec) tb="$tb srec.lo" ;;
722 tekhex_vec) tb="$tb tekhex.lo" ;;
723 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
724 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
727 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
730 if test ${target_size} = 64; then
733 if test x"${vec}" = x"${defvec}"; then
734 bfd_default_target_size=${target_size}
738 if test "$plugins" = "yes"; then
742 # Target architecture .o files.
743 # A couple of CPUs use shorter file names to avoid problems on DOS
745 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
747 # Weed out duplicate .o files.
769 if test x${all_targets} = xtrue ; then
770 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
771 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
773 havevecs=-DHAVE_all_vecs
775 test -n "$assocvecs" &&
776 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
777 else # all_targets is true
778 # Only set these if they will be nonempty, for the clever echo.
781 test -n "$selvecs" &&
782 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
783 test -n "$selvecs" &&
784 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
785 test -n "$selarchs" &&
786 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
787 fi # all_targets is true
789 # 64-bit archives need a 64-bit bfd_vma.
790 if test "x$want_64_bit_archive" = xtrue; then
792 AC_DEFINE(USE_64_BIT_ARCHIVE, 1,
793 [Define if 64-bit archives should always be used.])
796 case ${host64}-${target64}-${want64} in
799 bfd64_libs='$(BFD64_LIBS)'
800 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
801 if test $BFD_HOST_64_BIT_DEFINED = 0; then
802 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
803 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
805 if test -n "$GCC" ; then
807 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
808 # Add more tests for gcc versions with non-working 64-bit support here.
809 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
811 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
813 if test $bad_64bit_gcc = yes ; then
814 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
820 all_backends='$(BFD32_BACKENDS)'
825 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
826 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
827 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
828 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
832 AC_SUBST(all_backends)
833 AC_SUBST(bfd_backends)
834 AC_SUBST(bfd_machines)
835 AC_SUBST(bfd_default_target_size)
839 # If we are configured native, pick a core file support file.
844 if test "${target}" = "${host}"; then
846 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
850 COREFILE=trad-core.lo
851 TRAD_HEADER='"hosts/alphalinux.h"'
853 alpha*-*-netbsd* | alpha*-*-openbsd*)
854 COREFILE=netbsd-core.lo
859 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
861 arm-*-netbsd* | arm-*-openbsd*)
862 COREFILE=netbsd-core.lo
864 arm-*-riscix) COREFILE=trad-core.lo ;;
865 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
866 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
867 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
868 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
869 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
870 hppa*-*-netbsd* | hppa*-*-openbsd*)
871 COREFILE=netbsd-core.lo
875 i[3-7]86-sequent-bsd*)
877 COREFILE=trad-core.lo
878 TRAD_HEADER='"hosts/symmetry.h"'
881 i[3-7]86-sequent-sysv4*) ;;
882 i[3-7]86-sequent-sysv*)
884 COREFILE=trad-core.lo
885 TRAD_HEADER='"hosts/symmetry.h"'
893 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*)
895 COREFILE=trad-core.lo
896 TRAD_HEADER='"hosts/i386bsd.h"'
899 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
902 TRAD_HEADER='"hosts/i386bsd.h"'
905 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
907 COREFILE=netbsd-core.lo
910 i[3-7]86-esix-sysv3*)
912 COREFILE=trad-core.lo
913 TRAD_HEADER='"hosts/esix.h"'
916 i[3-7]86-*-sco3.2v5*)
918 COREFILE=sco5-core.lo
921 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
923 COREFILE=trad-core.lo
924 TRAD_HEADER='"hosts/i386sco.h"'
929 COREFILE=trad-core.lo
930 TRAD_HEADER='"hosts/i386mach3.h"'
935 COREFILE=trad-core.lo
936 TRAD_HEADER='"hosts/i386linux.h"'
937 case "$enable_targets"-"$want64" in
938 *x86_64-*linux*|*-true)
939 CORE_HEADER='"hosts/x86-64linux.h"'
943 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
944 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
946 mips-*-netbsd* | mips*-*-openbsd*)
947 COREFILE=netbsd-core.lo
949 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
950 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
951 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
953 COREFILE=trad-core.lo
954 TRAD_HEADER='"hosts/m68klinux.h"'
957 COREFILE=netbsd-core.lo
960 COREFILE=trad-core.lo
961 TRAD_HEADER='"hosts/pc532mach.h"'
963 ns32k-*-netbsd* | ns32k-*-openbsd*)
964 COREFILE=netbsd-core.lo
967 COREFILE=lynx-core.lo
970 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
972 COREFILE=rs6000-core.lo
973 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
976 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
978 COREFILE=rs6000-core.lo
979 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
980 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
981 # have c_impl as a member of struct core_dumpx
982 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
983 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
984 [Define if struct core_dumpx has member c_impl])
985 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
987 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
988 rs6000-*-*) COREFILE=rs6000-core.lo ;;
989 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
990 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
991 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
993 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
995 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
996 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
997 s390*-*-*) COREFILE=trad-core.lo ;;
998 sh*-*-netbsd* | sh*-*-openbsd*)
999 COREFILE=netbsd-core.lo
1001 sparc-*-netbsd* | sparc*-*-openbsd*)
1002 COREFILE=netbsd-core.lo
1004 vax-*-netbsd* | vax-*-openbsd*)
1005 COREFILE=netbsd-core.lo
1008 COREFILE=trad-core.lo
1009 TRAD_HEADER='"hosts/vaxult2.h"'
1012 COREFILE=trad-core.lo
1013 TRAD_HEADER='"hosts/vaxult2.h"'
1016 COREFILE=trad-core.lo
1017 TRAD_HEADER='"hosts/vaxlinux.h"'
1020 COREFILE=trad-core.lo
1021 TRAD_HEADER='"hosts/vaxbsd.h"'
1024 CORE_HEADER='"hosts/x86-64linux.h"'
1026 x86_64-*-netbsd* | x86_64-*-openbsd*)
1027 COREFILE=netbsd-core.lo
1032 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
1033 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
1034 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
1035 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
1036 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
1037 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
1038 osf-core.lo) COREFLAG=-DOSF_CORE ;;
1039 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
1040 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
1041 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
1042 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1045 # ELF corefile support has several flavors, but all of
1046 # them use something called <sys/procfs.h>
1047 AC_CHECK_HEADERS(sys/procfs.h)
1048 if test "$ac_cv_header_sys_procfs_h" = yes; then
1049 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
1050 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
1051 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
1052 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
1053 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
1054 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
1055 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
1056 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
1057 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
1058 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
1059 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
1060 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
1061 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
1062 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
1063 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
1064 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
1065 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
1066 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
1067 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
1068 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
1069 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
1074 if test -n "$CORE_HEADER"; then
1075 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
1076 [Name of host specific core header file to include in elf.c.])
1078 if test -n "$TRAD_HEADER"; then
1079 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
1080 [Name of host specific header file to include in trad-core.c.])
1083 if test "$plugins" = "yes"; then
1088 AC_SUBST(supports_plugins)
1089 AC_SUBST(lt_cv_dlopen_libs)
1091 # Determine the host dependent file_ptr a.k.a. off_t type. In order
1092 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1093 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1094 # Hopefully a reasonable assumption since fseeko et.al. should be
1095 # upward compatible.
1096 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1097 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1098 AC_CHECK_SIZEOF(off_t)
1100 AC_MSG_CHECKING([file_ptr type])
1102 bfd_ufile_ptr="unsigned long"
1103 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1104 -o x"${ac_cv_sizeof_off_t}" = x8; then
1105 bfd_file_ptr=BFD_HOST_64_BIT
1106 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1108 AC_MSG_RESULT($bfd_file_ptr)
1109 AC_SUBST(bfd_file_ptr)
1110 AC_SUBST(bfd_ufile_ptr)
1112 dnl AC_CHECK_HEADERS(sys/mman.h)
1114 AC_CHECK_FUNCS(madvise mprotect)
1115 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1116 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1119 rm -f doc/config.status
1120 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1122 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1123 dnl our two separate POTFILES. Yuck.
1124 AC_CONFIG_COMMANDS([default],
1128 *) srcdirpre='$(srcdir)/' ;;
1132 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1133 if test $lang != dummy; then
1134 POFILES="$POFILES $srcdirpre$lang.po"
1135 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1138 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1139 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1140 -e "s,@POFILES@,$POFILES," \
1141 -e "s,@GMOFILES@,$GMOFILES," \
1142 po/Makefile.in > po/Makefile]],[[]])
1144 dnl Required by html, pdf, install-pdf and install-html
1145 AC_SUBST(datarootdir)