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 DEBUGDIR=${libdir}/debug
130 AC_ARG_WITH(separate-debug-dir,
131 AS_HELP_STRING([--with-separate-debug-dir=DIR],
132 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
133 [DEBUGDIR="${withval}"])
136 ACX_PKGVERSION([GNU Binutils])
137 ACX_BUGURL([http://www.sourceware.org/bugzilla/])
141 AC_CONFIG_HEADERS(config.h:config.in)
144 AH_VERBATIM([00_CONFIG_H_CHECK],
145 [/* Check that config.h is #included before system headers
146 (this works only for glibc, but that should be enough). */
147 #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
148 # error config.h must be #included before system headers
150 #define __CONFIG_H__ 1])
152 if test -z "$target" ; then
153 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
157 AM_CONDITIONAL(GENINSRC_NEVER, false)
163 bfd_default_target_size=32
167 ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
168 ZW_GNU_GETTEXT_SISTER_DIR
171 # Permit host specific settings.
172 . ${srcdir}/configure.host
177 BFD_HOST_64BIT_LONG=0
178 BFD_HOST_64BIT_LONG_LONG=0
179 BFD_HOST_64_BIT_DEFINED=0
182 BFD_HOSTPTR_T="unsigned long"
185 AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
186 AC_CHECK_SIZEOF(void *)
187 AC_CHECK_SIZEOF(long)
190 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
194 if test "x${ac_cv_sizeof_long}" = "x8"; then
195 BFD_HOST_64BIT_LONG=1
196 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
197 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
198 elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
199 BFD_HOST_64BIT_LONG_LONG=1
200 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
201 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
202 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
203 BFD_HOSTPTR_T="unsigned long long"
207 if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
208 BFD_HOST_64_BIT_DEFINED=1
209 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
210 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
213 AC_SUBST(BFD_HOST_64BIT_LONG)
214 AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
215 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
216 AC_SUBST(BFD_HOST_64_BIT)
217 AC_SUBST(BFD_HOST_U_64_BIT)
218 AC_SUBST(BFD_HOSTPTR_T)
222 AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h)
223 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h)
224 GCC_HEADER_STDINT(bfd_stdint.h)
229 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno fls)
230 AC_CHECK_FUNCS(strtoull getrlimit)
232 AC_CHECK_DECLS(basename)
233 AC_CHECK_DECLS(ftello)
234 AC_CHECK_DECLS(ftello64)
235 AC_CHECK_DECLS(fseeko)
236 AC_CHECK_DECLS(fseeko64)
242 AC_CHECK_DECLS(getenv)
243 AC_CHECK_DECLS(malloc)
244 AC_CHECK_DECLS(realloc)
245 AC_CHECK_DECLS(stpcpy)
246 AC_CHECK_DECLS(strstr)
247 AC_CHECK_DECLS(asprintf)
248 AC_CHECK_DECLS(vasprintf)
249 AC_CHECK_DECLS(snprintf)
250 AC_CHECK_DECLS(vsnprintf)
251 AC_CHECK_DECLS(strnlen)
253 # Link in zlib if we can. This allows us to read compressed debug sections.
254 # This is used only by compress.c.
257 save_CFLAGS="$CFLAGS"
258 CFLAGS="$CFLAGS -Werror"
259 AC_CACHE_CHECK([compiler support for hidden visibility], bfd_cv_hidden,
260 [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
261 const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
262 extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));]],
264 [bfd_cv_hidden=yes], [bfd_cv_hidden=no])])
265 CFLAGS="$save_CFLAGS"
266 if test $bfd_cv_hidden = yes; then
267 AC_DEFINE(HAVE_HIDDEN, 1,
268 [Define if your compiler supports hidden visibility.])
271 # Check if linker supports --as-needed and --no-as-needed options
272 AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
273 [bfd_cv_ld_as_needed=no
274 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
275 bfd_cv_ld_as_needed=yes
281 # When building a shared libbfd, link against the pic version of libiberty
282 # so that apps that use libbfd won't need libiberty just to satisfy any
284 # We can't do that if a pic libiberty is unavailable since including non-pic
285 # code would insert text relocations into libbfd.
288 if test "$enable_shared" = "yes"; then
290 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
292 if test -n "$x"; then
293 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
297 # More hacks to build DLLs on Windows.
299 SHARED_LDFLAGS="-no-undefined"
300 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
303 # Use built-in libintl on macOS, since it is not provided by libc.
305 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
309 if test -n "$SHARED_LIBADD"; then
310 if test -n "$LIBM"; then
311 if test x"$bfd_cv_ld_as_needed" = xyes; then
312 # Link against libm only when needed. Put -lc, -lm inside -Wl
313 # to stop libtool reordering these options.
314 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
316 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
321 AC_SUBST(SHARED_LDFLAGS)
322 AC_SUBST(SHARED_LIBADD)
326 # Canonicalize the secondary target names.
327 if test -n "$enable_targets" ; then
328 for targ in `echo $enable_targets | sed 's/,/ /g'`
330 result=`$ac_config_sub $targ 2>/dev/null`
331 if test -n "$result" ; then
332 canon_targets="$canon_targets $result"
334 # Allow targets that config.sub doesn't recognize, like "all".
335 canon_targets="$canon_targets $targ"
346 for targ in $target $canon_targets
348 if test $targ = all; then
350 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
351 elif test $targ != plugin; then
353 if test $targ = $target; then
356 selvecs="$selvecs $targ_defvec $targ_selvecs"
357 selarchs="$selarchs $targ_archs"
358 TDEFINES="$TDEFINES $targ_cflags"
363 # This processing still needs to be done if we're to decide properly whether
364 # 64-bit support needs to be compiled in. Currently, it will be included if
365 # the default or any other explicitly requested target requires it; it
366 # will not be included on a 32-bit host if no 64-bit target is requested, and
367 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
370 # uniq the default and selected vectors in all the configured targets.
372 for i in $selvecs ; do
381 # uniq the associated vectors in all the configured targets.
383 for i in $assocvecs ; do
392 # uniq the architectures in all the configured targets.
394 for i in $selarchs ; do
402 # Target backend .o files.
405 elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
407 coffgen="coffgen.lo dwarf2.lo"
408 coff="cofflink.lo $coffgen"
409 ecoff="ecofflink.lo $coffgen"
410 xcoff="xcofflink.lo $coffgen"
412 elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo"
417 # This list is alphabetized to make it easy to compare
418 # with the two vector lists in targets.c. For the same reason,
419 # use one entry per line, even though this leads to long lines.
420 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
421 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
422 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
423 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
424 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
425 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
426 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
427 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
428 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
429 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
430 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
431 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
432 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
433 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
434 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
435 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
436 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
437 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
438 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
439 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
440 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
441 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
442 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
443 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
444 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
445 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
446 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
447 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
448 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
449 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
450 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
451 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
452 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
453 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
454 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
455 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
456 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
457 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
458 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
459 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
460 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
461 cris_aout_vec) tb="$tb aout-cris.lo" ;;
462 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
463 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
464 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
465 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
466 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
467 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
468 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
469 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
470 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
471 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
472 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
473 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
474 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
475 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
476 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
477 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
478 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
479 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
480 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
481 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
482 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
483 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
484 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
485 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
486 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
487 hppa_som_vec) tb="$tb som.lo" ;;
488 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
489 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
490 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
491 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
492 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
493 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
494 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
495 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
496 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
497 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
498 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
499 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
500 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
501 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
502 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
503 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
504 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
505 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
506 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
507 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
508 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
509 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
510 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 ;;
511 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
512 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
513 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
514 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
515 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 ;;
516 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
517 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 ;;
518 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
519 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
520 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
521 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
522 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
523 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
524 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
525 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
526 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
527 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
528 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
529 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
530 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
531 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
532 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
533 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
534 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
535 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
536 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
537 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
538 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
539 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
540 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
541 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
542 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
543 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
544 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
545 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
546 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
547 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
548 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
549 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
550 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
551 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
552 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
553 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
554 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
555 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
556 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
557 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
558 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
559 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
560 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
561 mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
562 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 ;;
563 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 ;;
564 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 ;;
565 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 ;;
566 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
567 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
568 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
569 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
570 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
571 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
572 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
573 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
574 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
575 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
576 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
577 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
578 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
579 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
580 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
581 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
582 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
583 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
584 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
585 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
586 pef_vec) tb="$tb pef.lo" ;;
587 pef_xlib_vec) tb="$tb pef.lo" ;;
588 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
589 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
590 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
591 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
592 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
593 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
594 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
595 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
596 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
597 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
598 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
599 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
600 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
601 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
602 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
603 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
604 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
605 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
606 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
607 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
608 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
609 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
610 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
611 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
612 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
613 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
614 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
615 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
616 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
617 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
618 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
619 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
620 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
621 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
622 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
623 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
624 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
625 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
626 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
627 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
628 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
629 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
630 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
631 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
632 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
633 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
634 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
635 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
636 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
637 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
638 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
639 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
640 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
641 sym_vec) tb="$tb xsym.lo" ;;
642 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
643 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
644 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
645 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
646 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
647 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
648 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
649 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
650 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
651 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
652 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
653 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
654 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
655 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
656 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
657 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
658 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
659 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
660 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
661 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
662 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
663 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
664 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
665 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
666 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
667 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
668 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
669 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
670 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
671 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
672 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
673 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
674 wasm_vec) tb="$tb wasm-module.lo" ;;
675 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
676 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
677 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
678 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
679 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
680 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
681 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
682 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
683 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
684 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
685 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
686 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
687 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
688 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
689 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
690 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
691 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
692 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
693 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
694 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
696 # These appear out of order in targets.c
697 srec_vec) tb="$tb srec.lo" ;;
698 symbolsrec_vec) tb="$tb srec.lo" ;;
699 tekhex_vec) tb="$tb tekhex.lo" ;;
700 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
701 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
704 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
707 if test ${target_size} = 64; then
710 if test x"${vec}" = x"${defvec}"; then
711 bfd_default_target_size=${target_size}
715 if test "$plugins" = "yes"; then
719 # Target architecture .o files.
720 # A couple of CPUs use shorter file names to avoid problems on DOS
722 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
724 # Weed out duplicate .o files.
746 if test x${all_targets} = xtrue ; then
747 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
748 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
750 havevecs=-DHAVE_all_vecs
752 test -n "$assocvecs" &&
753 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
754 else # all_targets is true
755 # Only set these if they will be nonempty, for the clever echo.
758 test -n "$selvecs" &&
759 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
760 test -n "$selvecs" &&
761 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
762 test -n "$selarchs" &&
763 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
764 fi # all_targets is true
766 # 64-bit archives need a 64-bit bfd_vma.
767 if test "x$want_64_bit_archive" = xtrue; then
769 AC_DEFINE(USE_64_BIT_ARCHIVE, 1,
770 [Define if 64-bit archives should always be used.])
773 case ${host64}-${target64}-${want64} in
776 bfd64_libs='$(BFD64_LIBS)'
777 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
778 if test $BFD_HOST_64_BIT_DEFINED = 0; then
779 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
780 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
782 if test -n "$GCC" ; then
784 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
785 # Add more tests for gcc versions with non-working 64-bit support here.
786 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
788 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
790 if test $bad_64bit_gcc = yes ; then
791 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
797 all_backends='$(BFD32_BACKENDS)'
802 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
803 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
804 test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
805 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
809 AC_SUBST(all_backends)
810 AC_SUBST(bfd_backends)
811 AC_SUBST(bfd_machines)
812 AC_SUBST(bfd_default_target_size)
816 # If we are configured native, pick a core file support file.
821 if test "${target}" = "${host}"; then
823 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
827 COREFILE=trad-core.lo
828 TRAD_HEADER='"hosts/alphalinux.h"'
830 alpha*-*-netbsd* | alpha*-*-openbsd*)
831 COREFILE=netbsd-core.lo
836 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
838 arm-*-netbsd* | arm-*-openbsd*)
839 COREFILE=netbsd-core.lo
841 arm-*-riscix) COREFILE=trad-core.lo ;;
842 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
843 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
844 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
845 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
846 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
847 hppa*-*-netbsd* | hppa*-*-openbsd*)
848 COREFILE=netbsd-core.lo
852 i[3-7]86-sequent-bsd*)
854 COREFILE=trad-core.lo
855 TRAD_HEADER='"hosts/symmetry.h"'
858 i[3-7]86-sequent-sysv4*) ;;
859 i[3-7]86-sequent-sysv*)
861 COREFILE=trad-core.lo
862 TRAD_HEADER='"hosts/symmetry.h"'
870 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*)
872 COREFILE=trad-core.lo
873 TRAD_HEADER='"hosts/i386bsd.h"'
876 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
879 TRAD_HEADER='"hosts/i386bsd.h"'
882 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
884 COREFILE=netbsd-core.lo
887 i[3-7]86-esix-sysv3*)
889 COREFILE=trad-core.lo
890 TRAD_HEADER='"hosts/esix.h"'
893 i[3-7]86-*-sco3.2v5*)
895 COREFILE=sco5-core.lo
898 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
900 COREFILE=trad-core.lo
901 TRAD_HEADER='"hosts/i386sco.h"'
906 COREFILE=trad-core.lo
907 TRAD_HEADER='"hosts/i386mach3.h"'
912 COREFILE=trad-core.lo
913 TRAD_HEADER='"hosts/i386linux.h"'
914 case "$enable_targets"-"$want64" in
915 *x86_64-*linux*|*-true)
916 CORE_HEADER='"hosts/x86-64linux.h"'
920 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
921 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
923 mips-*-netbsd* | mips*-*-openbsd*)
924 COREFILE=netbsd-core.lo
926 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
927 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
928 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
930 COREFILE=trad-core.lo
931 TRAD_HEADER='"hosts/m68klinux.h"'
934 COREFILE=netbsd-core.lo
937 COREFILE=trad-core.lo
938 TRAD_HEADER='"hosts/pc532mach.h"'
940 ns32k-*-netbsd* | ns32k-*-openbsd*)
941 COREFILE=netbsd-core.lo
944 COREFILE=lynx-core.lo
947 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
949 COREFILE=rs6000-core.lo
950 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
953 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
955 COREFILE=rs6000-core.lo
956 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
957 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
958 # have c_impl as a member of struct core_dumpx
959 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
960 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
961 [Define if struct core_dumpx has member c_impl])
962 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
964 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
965 rs6000-*-*) COREFILE=rs6000-core.lo ;;
966 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
967 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
968 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
970 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
972 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
973 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
974 s390*-*-*) COREFILE=trad-core.lo ;;
975 sh*-*-netbsd* | sh*-*-openbsd*)
976 COREFILE=netbsd-core.lo
978 sparc-*-netbsd* | sparc*-*-openbsd*)
979 COREFILE=netbsd-core.lo
981 vax-*-netbsd* | vax-*-openbsd*)
982 COREFILE=netbsd-core.lo
985 COREFILE=trad-core.lo
986 TRAD_HEADER='"hosts/vaxult2.h"'
989 COREFILE=trad-core.lo
990 TRAD_HEADER='"hosts/vaxult2.h"'
993 COREFILE=trad-core.lo
994 TRAD_HEADER='"hosts/vaxlinux.h"'
997 COREFILE=trad-core.lo
998 TRAD_HEADER='"hosts/vaxbsd.h"'
1001 CORE_HEADER='"hosts/x86-64linux.h"'
1003 x86_64-*-netbsd* | x86_64-*-openbsd*)
1004 COREFILE=netbsd-core.lo
1009 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
1010 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
1011 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
1012 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
1013 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
1014 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
1015 osf-core.lo) COREFLAG=-DOSF_CORE ;;
1016 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
1017 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
1018 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
1019 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1022 # ELF corefile support has several flavors, but all of
1023 # them use something called <sys/procfs.h>
1024 AC_CHECK_HEADERS(sys/procfs.h)
1025 if test "$ac_cv_header_sys_procfs_h" = yes; then
1026 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
1027 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
1028 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
1029 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
1030 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
1031 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
1032 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
1033 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
1034 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
1035 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
1036 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
1037 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
1038 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
1039 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
1040 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
1041 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
1042 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
1043 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
1044 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
1045 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
1046 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
1051 if test -n "$CORE_HEADER"; then
1052 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
1053 [Name of host specific core header file to include in elf.c.])
1055 if test -n "$TRAD_HEADER"; then
1056 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
1057 [Name of host specific header file to include in trad-core.c.])
1060 if test "$plugins" = "yes"; then
1065 AC_SUBST(supports_plugins)
1066 AC_SUBST(lt_cv_dlopen_libs)
1068 # Determine the host dependent file_ptr a.k.a. off_t type. In order
1069 # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1070 # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1071 # Hopefully a reasonable assumption since fseeko et.al. should be
1072 # upward compatible.
1073 AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1074 if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
1075 AC_CHECK_SIZEOF(off_t)
1077 AC_MSG_CHECKING([file_ptr type])
1079 bfd_ufile_ptr="unsigned long"
1080 if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1081 -o x"${ac_cv_sizeof_off_t}" = x8; then
1082 bfd_file_ptr=BFD_HOST_64_BIT
1083 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1085 AC_MSG_RESULT($bfd_file_ptr)
1086 AC_SUBST(bfd_file_ptr)
1087 AC_SUBST(bfd_ufile_ptr)
1089 dnl AC_CHECK_HEADERS(sys/mman.h)
1091 AC_CHECK_FUNCS(madvise mprotect)
1092 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1093 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1096 rm -f doc/config.status
1097 AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
1099 dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1100 dnl our two separate POTFILES. Yuck.
1101 AC_CONFIG_COMMANDS([default],
1105 *) srcdirpre='$(srcdir)/' ;;
1109 for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1110 if test $lang != dummy; then
1111 POFILES="$POFILES $srcdirpre$lang.po"
1112 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1115 sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1116 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1117 -e "s,@POFILES@,$POFILES," \
1118 -e "s,@GMOFILES@,$GMOFILES," \
1119 po/Makefile.in > po/Makefile]],[[]])
1121 dnl Required by html, pdf, install-pdf and install-html
1122 AC_SUBST(datarootdir)