Merge branch 'master' into merge-job
[deliverable/binutils-gdb.git] / bfd / configure.ac
CommitLineData
252b5132
RH
1dnl Process this file with autoconf to produce a configure script.
2dnl
b3adc24a 3dnl Copyright (C) 2012-2020 Free Software Foundation, Inc.
4e5106e6 4dnl Copyright (C) 2019-2020 Advanced Micro Devices, Inc. All rights reserved.
5bf135a7
NC
5dnl
6dnl This file is free software; you can redistribute it and/or modify
7dnl it under the terms of the GNU General Public License as published by
8dnl the Free Software Foundation; either version 3 of the License, or
9dnl (at your option) any later version.
1b786873 10dnl
5bf135a7
NC
11dnl This program is distributed in the hope that it will be useful,
12dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14dnl GNU General Public License for more details.
1b786873 15dnl
5bf135a7
NC
16dnl You should have received a copy of the GNU General Public License
17dnl along with this program; see the file COPYING3. If not see
18dnl <http://www.gnu.org/licenses/>.
19dnl
252b5132 20
2e98a7bd
AM
21m4_include([version.m4])
22AC_INIT([bfd], BFD_VERSION)
5464f5a1 23AC_CONFIG_SRCDIR([libbfd.c])
252b5132 24
5464f5a1 25AC_CANONICAL_TARGET
252b5132
RH
26AC_ISC_POSIX
27
c4dd807e 28AM_INIT_AUTOMAKE
252b5132 29
da594c4a 30dnl These must be called before LT_INIT, because it may want
252b5132
RH
31dnl to call AC_CHECK_PROG.
32AC_CHECK_TOOL(AR, ar)
33AC_CHECK_TOOL(RANLIB, ranlib, :)
34
35dnl Default to a non shared library. This may be overridden by the
36dnl configure option --enable-shared.
da594c4a 37AC_DISABLE_SHARED
252b5132 38
cfbc9945
SE
39AC_PROG_CC
40AC_GNU_SOURCE
7357c5b6 41AC_USE_SYSTEM_EXTENSIONS
08c13eba 42
ce3c775b
NC
43LT_INIT([dlopen])
44
da2f07f1
JK
45# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
46ACX_LARGEFILE
ce3c775b
NC
47
48AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
49
252b5132
RH
50AC_ARG_ENABLE(64-bit-bfd,
51[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
52[case "${enableval}" in
53 yes) want64=true ;;
54 no) want64=false ;;
55 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
56esac],[want64=false])dnl
504b7d20 57
252b5132
RH
58AC_ARG_ENABLE(targets,
59[ --enable-targets alternative target configurations],
60[case "${enableval}" in
5464f5a1 61 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
252b5132
RH
62 ;;
63 no) enable_targets= ;;
64 *) enable_targets=$enableval ;;
65esac])dnl
504b7d20 66
e6cc316a
L
67AC_ARG_ENABLE(64_bit_archive,
68 AS_HELP_STRING([--enable-64-bit-archive],
69 [force 64-bit archives]),
70[case "${enableval}" in
71 yes) want_64_bit_archive=true ;;
72 no) want_64_bit_archive=false ;;
73 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-archive option) ;;
74esac],[want_64_bit_archive=unset])dnl
75
252b5132
RH
76AC_ARG_WITH(mmap,
77[ --with-mmap try using mmap for BFD input files if available],
78[case "${withval}" in
79 yes) want_mmap=true ;;
80 no) want_mmap=false ;;
81 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
82esac],[want_mmap=false])dnl
83
6ec7057a
RH
84AC_ARG_ENABLE(secureplt,
85[ --enable-secureplt Default to creating read-only plt entries],
86[case "${enableval}" in
87 yes) use_secureplt=true ;;
88 no) use_secureplt=false ;;
89 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
cc75d373 90esac],[use_secureplt=true])dnl
6ec7057a
RH
91if test $use_secureplt = true; then
92 AC_DEFINE(USE_SECUREPLT, 1,
93 [Define if we should default to creating read-only plt entries])
94fi
95
f6aec96d
L
96# Decide if -z separate-code should be enabled in ELF linker by default.
97ac_default_ld_z_separate_code=unset
98AC_ARG_ENABLE(separate-code,
99 AS_HELP_STRING([--enable-separate-code],
100 [enable -z separate-code in ELF linker by default]),
101[case "${enableval}" in
102 yes) ac_default_ld_z_separate_code=1 ;;
103 no) ac_default_ld_z_separate_code=0 ;;
104esac])
105# Enable -z separate-code by default for Linux/x86.
872899f1 106changequote(,)dnl
f6aec96d
L
107case "${target}" in
108i[3-7]86-*-linux-* | x86_64-*-linux-*)
872899f1 109changequote([,])dnl
f6aec96d
L
110 if test ${ac_default_ld_z_separate_code} = unset; then
111 ac_default_ld_z_separate_code=1
112 fi
113 ;;
114esac
115if test "${ac_default_ld_z_separate_code}" = unset; then
116 ac_default_ld_z_separate_code=0
117fi
118AC_DEFINE_UNQUOTED(DEFAULT_LD_Z_SEPARATE_CODE,
119 $ac_default_ld_z_separate_code,
120 [Define to 1 if you want to enable -z separate-code in ELF linker by default.])
121
ef72a554
KT
122AC_ARG_ENABLE(leading-mingw64-underscores,
123 AS_HELP_STRING([--enable-leading-mingw64-underscores],
124 [Enable leading underscores on 64 bit mingw targets]),
125 [],[])
126AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
127 [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
128 [Define if we should use leading underscore on 64 bit mingw targets])])
129
0d4a1476 130DEBUGDIR=${libdir}/debug
0d4a1476
AS
131AC_ARG_WITH(separate-debug-dir,
132 AS_HELP_STRING([--with-separate-debug-dir=DIR],
133 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
134[DEBUGDIR="${withval}"])
135AC_SUBST(DEBUGDIR)
136
a1ac8190
JM
137ACX_PKGVERSION([GNU Binutils])
138ACX_BUGURL([http://www.sourceware.org/bugzilla/])
c428fa83 139
9e9b66a9 140AM_BINUTILS_WARNINGS
a2d91340 141
da594c4a 142AC_CONFIG_HEADERS(config.h:config.in)
252b5132 143
df7b86aa
NC
144# PR 14072
145AH_VERBATIM([00_CONFIG_H_CHECK],
146[/* Check that config.h is #included before system headers
147 (this works only for glibc, but that should be enough). */
d17dce55 148#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__)
df7b86aa
NC
149# error config.h must be #included before system headers
150#endif
151#define __CONFIG_H__ 1])
152
252b5132
RH
153if test -z "$target" ; then
154 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
155fi
252b5132
RH
156
157AM_MAINTAINER_MODE
d5fbea21 158AM_CONDITIONAL(GENINSRC_NEVER, false)
a703a6ea 159AM_INSTALL_LIBBFD
252b5132
RH
160AC_EXEEXT
161
162host64=false
163target64=false
69263e90 164bfd_default_target_size=32
252b5132
RH
165
166# host stuff:
167
293b4d4f 168ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt"
20e95c23
DJ
169ZW_GNU_GETTEXT_SISTER_DIR
170AM_PO_SUBDIRS
252b5132
RH
171
172# Permit host specific settings.
173. ${srcdir}/configure.host
174
175AC_SUBST(HDEFINES)
176AC_PROG_INSTALL
177
178BFD_HOST_64BIT_LONG=0
d2df793a 179BFD_HOST_64BIT_LONG_LONG=0
252b5132
RH
180BFD_HOST_64_BIT_DEFINED=0
181BFD_HOST_64_BIT=
182BFD_HOST_U_64_BIT=
d2df793a 183BFD_HOSTPTR_T="unsigned long"
ec317fb1 184
33c734b2
AM
185AC_TYPE_LONG_DOUBLE
186AC_CHECK_TYPES([long long], [AC_CHECK_SIZEOF(long long)])
d2df793a 187AC_CHECK_SIZEOF(void *)
2ba49b59 188AC_CHECK_SIZEOF(long)
242a1159 189AC_CHECK_SIZEOF(int)
d2df793a
NC
190
191if test "x${ac_cv_sizeof_void_p}" = "x8"; then
6726e1ea 192 host64=true
bce5e5c9
AM
193fi
194
195if test "x${ac_cv_sizeof_long}" = "x8"; then
ccba357f
AM
196 BFD_HOST_64BIT_LONG=1
197 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
198 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
6726e1ea 199elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
bce5e5c9 200 BFD_HOST_64BIT_LONG_LONG=1
ccba357f
AM
201 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
202 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
bce5e5c9
AM
203 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
204 BFD_HOSTPTR_T="unsigned long long"
205 fi
6726e1ea
L
206fi
207
ccba357f 208if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
6726e1ea 209 BFD_HOST_64_BIT_DEFINED=1
ccba357f
AM
210 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
211 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
ec317fb1
ILT
212fi
213
252b5132 214AC_SUBST(BFD_HOST_64BIT_LONG)
d2df793a 215AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
252b5132
RH
216AC_SUBST(BFD_HOST_64_BIT_DEFINED)
217AC_SUBST(BFD_HOST_64_BIT)
218AC_SUBST(BFD_HOST_U_64_BIT)
d2df793a 219AC_SUBST(BFD_HOSTPTR_T)
252b5132
RH
220
221BFD_CC_FOR_BUILD
222
31593e1b 223AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h wctype.h)
9d782e8d 224AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h)
d5efd9fc 225GCC_HEADER_STDINT(bfd_stdint.h)
252b5132
RH
226AC_HEADER_TIME
227AC_HEADER_DIRENT
17d5dae2 228
2e0fbf77 229ACX_HEADER_STRING
a767a1c4 230AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno fls)
9d782e8d 231AC_CHECK_FUNCS(strtoull getrlimit)
252b5132 232
ec7b76fe
JG
233AC_CHECK_DECLS(basename)
234AC_CHECK_DECLS(ftello)
235AC_CHECK_DECLS(ftello64)
236AC_CHECK_DECLS(fseeko)
237AC_CHECK_DECLS(fseeko64)
2e9ebff5 238
252b5132
RH
239BFD_BINARY_FOPEN
240
d34a2b1d
JG
241AC_CHECK_DECLS(ffs)
242AC_CHECK_DECLS(free)
243AC_CHECK_DECLS(getenv)
244AC_CHECK_DECLS(malloc)
245AC_CHECK_DECLS(realloc)
be5cacdb 246AC_CHECK_DECLS(stpcpy)
d34a2b1d 247AC_CHECK_DECLS(strstr)
d6f1bafa
IB
248AC_CHECK_DECLS(asprintf)
249AC_CHECK_DECLS(vasprintf)
36527912
AJ
250AC_CHECK_DECLS(snprintf)
251AC_CHECK_DECLS(vsnprintf)
5a026fc9 252AC_CHECK_DECLS(strnlen)
252b5132 253
9ae46699
L
254# Link in zlib if we can. This allows us to read compressed debug sections.
255# This is used only by compress.c.
256AM_ZLIB
1b315056 257
629dabe3
AM
258save_CFLAGS="$CFLAGS"
259CFLAGS="$CFLAGS -Werror"
8722de9c
AM
260AC_CACHE_CHECK([compiler support for hidden visibility], bfd_cv_hidden,
261[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
262const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n";
263extern void print (const char *) __attribute__ ((__visibility__ ("hidden")));]],
264 [[print (hw);]])],
265 [bfd_cv_hidden=yes], [bfd_cv_hidden=no])])
629dabe3 266CFLAGS="$save_CFLAGS"
8722de9c
AM
267if test $bfd_cv_hidden = yes; then
268 AC_DEFINE(HAVE_HIDDEN, 1,
269 [Define if your compiler supports hidden visibility.])
270fi
271
51dec227
AM
272# Check if linker supports --as-needed and --no-as-needed options
273AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
274 [bfd_cv_ld_as_needed=no
275 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
276 bfd_cv_ld_as_needed=yes
277 fi
278 ])
279
280LT_LIB_M
281
29670fb9
AM
282# When building a shared libbfd, link against the pic version of libiberty
283# so that apps that use libbfd won't need libiberty just to satisfy any
284# libbfd references.
285# We can't do that if a pic libiberty is unavailable since including non-pic
286# code would insert text relocations into libbfd.
287SHARED_LIBADD=
288SHARED_LDFLAGS=
289if test "$enable_shared" = "yes"; then
bb2a49f2 290changequote(,)dnl
c5cb8442 291 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
bb2a49f2 292changequote([,])dnl
c5cb8442 293 if test -n "$x"; then
29670fb9 294 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
c5cb8442 295 fi
29670fb9 296
29670fb9 297 case "${host}" in
edd01d07 298 # More hacks to build DLLs on Windows.
29670fb9
AM
299 *-*-cygwin*)
300 SHARED_LDFLAGS="-no-undefined"
301 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
39691762 302 ;;
73589c9d 303
edd01d07
MR
304 # Use built-in libintl on macOS, since it is not provided by libc.
305 *-*-darwin*)
73589c9d
CS
306 SHARED_LIBADD="-L`pwd`/../libiberty/pic -L`pwd`/../intl -liberty -lintl"
307 ;;
29670fb9 308 esac
51dec227
AM
309
310 if test -n "$SHARED_LIBADD"; then
311 if test -n "$LIBM"; then
312 if test x"$bfd_cv_ld_as_needed" = xyes; then
313 # Link against libm only when needed. Put -lc, -lm inside -Wl
314 # to stop libtool reordering these options.
315 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
316 else
317 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
318 fi
319 fi
320 fi
29670fb9
AM
321fi
322AC_SUBST(SHARED_LDFLAGS)
323AC_SUBST(SHARED_LIBADD)
252b5132
RH
324
325# target stuff:
326
327# Canonicalize the secondary target names.
328if test -n "$enable_targets" ; then
329 for targ in `echo $enable_targets | sed 's/,/ /g'`
330 do
6d83c84b 331 result=`$ac_config_sub $targ 2>/dev/null`
252b5132
RH
332 if test -n "$result" ; then
333 canon_targets="$canon_targets $result"
334 else
335 # Allow targets that config.sub doesn't recognize, like "all".
336 canon_targets="$canon_targets $targ"
337 fi
338 done
339fi
340
341all_targets=false
342defvec=
343selvecs=
08f74004 344assocvecs=
252b5132
RH
345selarchs=
346TDEFINES=
347for targ in $target $canon_targets
348do
999d6dff 349 if test $targ = all; then
252b5132 350 all_targets=true
08f74004 351 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
999d6dff 352 elif test $targ != plugin; then
252b5132 353 . $srcdir/config.bfd
999d6dff 354 if test $targ = $target; then
252b5132
RH
355 defvec=$targ_defvec
356 fi
357 selvecs="$selvecs $targ_defvec $targ_selvecs"
358 selarchs="$selarchs $targ_archs"
359 TDEFINES="$TDEFINES $targ_cflags"
360 fi
361done
362AC_SUBST(TDEFINES)
363
364# This processing still needs to be done if we're to decide properly whether
365# 64-bit support needs to be compiled in. Currently, it will be included if
366# the default or any other explicitly requested target requires it; it
367# will not be included on a 32-bit host if no 64-bit target is requested, and
9eb7245e 368# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
252b5132
RH
369# used.
370
371# uniq the default and selected vectors in all the configured targets.
372f=""
373for i in $selvecs ; do
374 case " $f " in
375 *" $i "*) ;;
376 *) f="$f $i" ;;
377 esac
378done
379selvecs="$f"
380
381
08f74004
AM
382# uniq the associated vectors in all the configured targets.
383f=""
384for i in $assocvecs ; do
385 case " $f " in
386 *" $i "*) ;;
387 *) f="$f $i" ;;
388 esac
389done
390assocvecs="$f"
391
392
252b5132
RH
393# uniq the architectures in all the configured targets.
394f=""
395for i in $selarchs ; do
396 case " $f " in
397 *" $i "*) ;;
398 *) f="$f $i" ;;
399 esac
400done
401selarchs="$f"
402
403# Target backend .o files.
404tb=
405
98641896
L
406elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo
407 dwarf1.lo dwarf2.lo"
f4943d82
AM
408coffgen="coffgen.lo dwarf2.lo"
409coff="cofflink.lo $coffgen"
410ecoff="ecofflink.lo $coffgen"
411xcoff="xcofflink.lo $coffgen"
252b5132 412
5f2a6b85 413elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo"
252b5132
RH
414for vec in $selvecs
415do
69263e90 416 target_size=32
252b5132
RH
417 case "$vec" in
418 # This list is alphabetized to make it easy to compare
dc810e39
AM
419 # with the two vector lists in targets.c. For the same reason,
420 # use one entry per line, even though this leads to long lines.
2f67d686
AM
421 aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
422 aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;;
a75cf613
ES
423 aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
424 aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
425 aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
426 aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
f075eb5e 427 aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;;
f4943d82 428 alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;;
2f67d686
AM
429 alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
430 alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
2f67d686
AM
431 alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
432 alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
433 am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
5922befa 434 amdgcn_elf64_le_vec) tb="$tb elf64-amdgcn.lo elf64.lo $elf"; target_size=64 ;;
6d00b590 435 aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;;
2f67d686
AM
436 aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
437 aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
2f67d686
AM
438 arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
439 arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
2f67d686
AM
440 arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
441 arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
617a5ada
CL
442 arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
443 arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
2f67d686
AM
444 arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
445 arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
446 arm_elf32_symbian_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
447 arm_elf32_symbian_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
448 arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
449 arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;;
f4943d82
AM
450 arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
451 arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;;
f4943d82
AM
452 arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
453 arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;;
454 arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
455 arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;;
f4943d82
AM
456 arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
457 arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;;
f075eb5e 458 arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;;
6d00b590
AM
459 avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
460 bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
461 bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
6d00b590 462 cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
2f67d686 463 cris_aout_vec) tb="$tb aout-cris.lo" ;;
6d00b590 464 cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
2f67d686 465 cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
6d00b590 466 crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
b8891f8d
AJ
467 csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
468 csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;;
6d00b590
AM
469 d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
470 d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
471 dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
2f67d686
AM
472 elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
473 elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
474 elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
475 elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
45d5293f
JM
476 bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;;
477 bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
478 epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;;
479 fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
480 frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
481 frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
482 h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
5518c738 483 h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
2f67d686 484 hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
6d00b590
AM
485 hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
486 hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
2f67d686
AM
487 hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
488 hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
489 hppa_som_vec) tb="$tb som.lo" ;;
2f67d686
AM
490 i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
491 i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
2f67d686 492 i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
f4943d82
AM
493 i386_coff_vec) tb="$tb coff-i386.lo $coff" ;;
494 i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;;
495 i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;;
496 i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;;
5f2a6b85
AM
497 i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
498 i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
499 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
500 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
501 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
2f67d686
AM
502 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
503 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
f4943d82
AM
504 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
505 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
5f2a6b85 506 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
6d00b590
AM
507 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
508 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
2f67d686
AM
509 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
510 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
511 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
512 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 ;;
f4943d82 513 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
6d00b590
AM
514 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
515 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
0afcef53
L
516 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
517 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 ;;
518 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
519 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 ;;
6d00b590
AM
520 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
521 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
6d00b590
AM
522 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
523 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
524 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
525 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
526 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
527 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
528 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
529 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
7b4ae824 530 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
f4943d82
AM
531 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
532 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
533 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
6d00b590
AM
534 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
535 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
f4943d82
AM
536 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
537 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
538 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
539 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
6d00b590
AM
540 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
541 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
542 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
6d00b590 543 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
2f67d686 544 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
8e415ce8
AM
545 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
546 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
547 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
f4943d82
AM
548 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
549 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
550 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
551 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
552 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
553 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
554 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
555 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
556 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
557 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
558 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
559 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
560 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
561 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
562 mips_elf64_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_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_trad_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_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
566 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 ;;
567 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 ;;
2f67d686
AM
568 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
569 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
570 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
571 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
572 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
573 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
574 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
575 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
576 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
6d00b590
AM
577 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
578 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
579 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
580 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
fe944acf 581 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
2f67d686
AM
582 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
583 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
584 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
585 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6d00b590 586 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
2f67d686
AM
587 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
588 pef_vec) tb="$tb pef.lo" ;;
589 pef_xlib_vec) tb="$tb pef.lo" ;;
6d00b590
AM
590 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
591 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
2f67d686 592 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
6d00b590
AM
593 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
594 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
595 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
596 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
2f67d686
AM
597 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
598 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
599 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
f4943d82
AM
600 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
601 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
602 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
603 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
604 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
889294f6 605 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
e23eba97
NC
606 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
607 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
6d00b590 608 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
f4943d82
AM
609 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
610 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
611 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
6d00b590
AM
612 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
613 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
2f67d686 614 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
8d3c78e4 615 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
6d00b590 616 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
2f67d686 617 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6d00b590
AM
618 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
619 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64 ;;
f4943d82
AM
620 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
621 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
622 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
623 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
624 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
625 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
626 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
627 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
628 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
629 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
630 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
631 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
f4943d82
AM
632 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
633 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
634 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
635 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
2f67d686
AM
636 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
637 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
638 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
639 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
640 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
641 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
2f67d686 642 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
6d00b590
AM
643 sym_vec) tb="$tb xsym.lo" ;;
644 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
f4943d82
AM
645 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
646 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
647 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
648 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
649 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
650 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
651 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
652 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
653 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
654 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
655 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
656 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
657 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
2f67d686
AM
658 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
659 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
660 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
661 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
662 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
663 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
2f67d686
AM
664 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
665 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
666 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
667 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
668 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
669 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
670 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6d00b590 671 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
2f67d686
AM
672 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
673 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
3f8107ab 674 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
d924db55 675 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
a6be0538 676 wasm_vec) tb="$tb wasm-module.lo" ;;
8fb740dd 677 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
f4943d82 678 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
5f2a6b85
AM
679 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
680 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
681 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
682 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
683 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
684 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
685 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
2f67d686 686 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
f4943d82
AM
687 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
688 x86_64_pe_be_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
689 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
2f67d686
AM
690 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
691 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
692 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
693 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
694 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
f4943d82 695 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
6655dba2 696 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;;
f4943d82 697 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
252b5132 698
341ca622 699 # These appear out of order in targets.c
6d00b590
AM
700 srec_vec) tb="$tb srec.lo" ;;
701 symbolsrec_vec) tb="$tb srec.lo" ;;
702 tekhex_vec) tb="$tb tekhex.lo" ;;
703 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
704 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
341ca622 705
6d00b590 706 "") ;;
252b5132
RH
707 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
708 esac
69263e90
AM
709
710 if test ${target_size} = 64; then
711 target64=true
712 fi
713 if test x"${vec}" = x"${defvec}"; then
714 bfd_default_target_size=${target_size}
715 fi
252b5132
RH
716done
717
999d6dff
AM
718if test "$plugins" = "yes"; then
719 tb="$tb plugin.lo"
720fi
721
252b5132
RH
722# Target architecture .o files.
723# A couple of CPUs use shorter file names to avoid problems on DOS
724# filesystems.
d031aafb 725ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
726
727# Weed out duplicate .o files.
728f=""
729for i in $tb ; do
730 case " $f " in
731 *" $i "*) ;;
732 *) f="$f $i" ;;
733 esac
734done
735tb="$f"
736
737f=""
738for i in $ta ; do
739 case " $f " in
740 *" $i "*) ;;
741 *) f="$f $i" ;;
742 esac
743done
744ta="$f"
745
746bfd_backends="$tb"
747bfd_machines="$ta"
748
749if test x${all_targets} = xtrue ; then
750 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
751 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
752 selvecs=
7256a114 753 havevecs=-DHAVE_all_vecs
252b5132 754 selarchs=
08f74004
AM
755 test -n "$assocvecs" &&
756 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
757else # all_targets is true
758 # Only set these if they will be nonempty, for the clever echo.
759 havevecs=
08f74004 760 assocvecs=
252b5132
RH
761 test -n "$selvecs" &&
762 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
763 test -n "$selvecs" &&
764 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
765 test -n "$selarchs" &&
766 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
767fi # all_targets is true
768
e6cc316a
L
769# 64-bit archives need a 64-bit bfd_vma.
770if test "x$want_64_bit_archive" = xtrue; then
771 want64=true
772 AC_DEFINE(USE_64_BIT_ARCHIVE, 1,
865422fa 773 [Define if 64-bit archives should always be used.])
e6cc316a
L
774fi
775
c603b11b
AM
776case ${host64}-${target64}-${want64} in
777 *true*)
778 wordsize=64
779 bfd64_libs='$(BFD64_LIBS)'
780 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
781 if test $BFD_HOST_64_BIT_DEFINED = 0; then
782 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
783 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
784 fi
785 if test -n "$GCC" ; then
786 bad_64bit_gcc=no;
787 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
788 # Add more tests for gcc versions with non-working 64-bit support here.
789 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
790 bad_64bit_gcc=yes;
791 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
792 AC_MSG_RESULT(no))
793 if test $bad_64bit_gcc = yes ; then
794 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
795 fi
796 fi
797 ;;
798 false-false-false)
799 wordsize=32
800 all_backends='$(BFD32_BACKENDS)'
801 ;;
802esac
803
804tdefaults=""
805test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
806test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
807test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
808test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
809
810AC_SUBST(wordsize)
811AC_SUBST(bfd64_libs)
812AC_SUBST(all_backends)
813AC_SUBST(bfd_backends)
814AC_SUBST(bfd_machines)
815AC_SUBST(bfd_default_target_size)
816AC_SUBST(tdefaults)
817AC_SUBST(havevecs)
818
819# If we are configured native, pick a core file support file.
820COREFILE=
821COREFLAG=
822CORE_HEADER=
823TRAD_HEADER=
824if test "${target}" = "${host}"; then
825 case "${host}" in
826 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
827 COREFILE=''
828 ;;
829 alpha*-*-linux-*)
830 COREFILE=trad-core.lo
831 TRAD_HEADER='"hosts/alphalinux.h"'
832 ;;
833 alpha*-*-netbsd* | alpha*-*-openbsd*)
834 COREFILE=netbsd-core.lo
835 ;;
836 alpha*-*-*)
837 COREFILE=osf-core.lo
838 ;;
839 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
840 COREFILE='' ;;
841 arm-*-netbsd* | arm-*-openbsd*)
842 COREFILE=netbsd-core.lo
843 ;;
844 arm-*-riscix) COREFILE=trad-core.lo ;;
845 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
846 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
847 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
848 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
849 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
850 hppa*-*-netbsd* | hppa*-*-openbsd*)
851 COREFILE=netbsd-core.lo
852 ;;
853
c603b11b
AM
854changequote(,)dnl
855 i[3-7]86-sequent-bsd*)
856changequote([,])dnl
857 COREFILE=trad-core.lo
858 TRAD_HEADER='"hosts/symmetry.h"'
859 ;;
860changequote(,)dnl
861 i[3-7]86-sequent-sysv4*) ;;
862 i[3-7]86-sequent-sysv*)
863changequote([,])dnl
864 COREFILE=trad-core.lo
865 TRAD_HEADER='"hosts/symmetry.h"'
866 ;;
867changequote(,)dnl
868 i[3-7]86-*-bsdi)
869changequote([,])dnl
870 COREFILE=
871 ;;
872changequote(,)dnl
873 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*)
874changequote([,])dnl
875 COREFILE=trad-core.lo
876 TRAD_HEADER='"hosts/i386bsd.h"'
877 ;;
878changequote(,)dnl
879 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
880changequote([,])dnl
881 COREFILE=''
882 TRAD_HEADER='"hosts/i386bsd.h"'
883 ;;
884changequote(,)dnl
885 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
886changequote([,])dnl
887 COREFILE=netbsd-core.lo
888 ;;
889changequote(,)dnl
890 i[3-7]86-esix-sysv3*)
891changequote([,])dnl
892 COREFILE=trad-core.lo
893 TRAD_HEADER='"hosts/esix.h"'
894 ;;
895changequote(,)dnl
896 i[3-7]86-*-sco3.2v5*)
897changequote([,])dnl
898 COREFILE=sco5-core.lo
899 ;;
900changequote(,)dnl
901 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
902changequote([,])dnl
903 COREFILE=trad-core.lo
904 TRAD_HEADER='"hosts/i386sco.h"'
905 ;;
906changequote(,)dnl
907 i[3-7]86-*-mach3*)
908changequote([,])dnl
909 COREFILE=trad-core.lo
910 TRAD_HEADER='"hosts/i386mach3.h"'
911 ;;
912changequote(,)dnl
913 i[3-7]86-*-linux-*)
914changequote([,])dnl
915 COREFILE=trad-core.lo
916 TRAD_HEADER='"hosts/i386linux.h"'
917 case "$enable_targets"-"$want64" in
918 *x86_64-*linux*|*-true)
919 CORE_HEADER='"hosts/x86-64linux.h"'
920 esac
921 ;;
922changequote(,)dnl
923 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
924 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
925changequote([,])dnl
c603b11b
AM
926 mips-*-netbsd* | mips*-*-openbsd*)
927 COREFILE=netbsd-core.lo
928 ;;
c603b11b
AM
929 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
930 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
931 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
c603b11b
AM
932 m68*-*-linux-*)
933 COREFILE=trad-core.lo
934 TRAD_HEADER='"hosts/m68klinux.h"'
935 ;;
dc12032b 936 m68*-*-netbsd*)
c603b11b
AM
937 COREFILE=netbsd-core.lo
938 ;;
c603b11b
AM
939 ns32k-pc532-mach)
940 COREFILE=trad-core.lo
941 TRAD_HEADER='"hosts/pc532mach.h"'
942 ;;
943 ns32k-*-netbsd* | ns32k-*-openbsd*)
944 COREFILE=netbsd-core.lo
945 ;;
946 rs6000-*-lynx*)
947 COREFILE=lynx-core.lo
948 ;;
949changequote(,)dnl
950 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
951changequote([,])dnl
952 COREFILE=rs6000-core.lo
953 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
954 ;;
955changequote(,)dnl
956 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
957changequote([,])dnl
958 COREFILE=rs6000-core.lo
959 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
960 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
961 # have c_impl as a member of struct core_dumpx
962 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
963 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
964 [Define if struct core_dumpx has member c_impl])
965 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
966 ;;
967 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
968 rs6000-*-*) COREFILE=rs6000-core.lo ;;
969 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
970 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
971 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
972 powerpc-*-beos*) ;;
973 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
974 COREFILE='' ;;
975 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
976 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
977 s390*-*-*) COREFILE=trad-core.lo ;;
978 sh*-*-netbsd* | sh*-*-openbsd*)
979 COREFILE=netbsd-core.lo
980 ;;
981 sparc-*-netbsd* | sparc*-*-openbsd*)
982 COREFILE=netbsd-core.lo
983 ;;
c603b11b
AM
984 vax-*-netbsd* | vax-*-openbsd*)
985 COREFILE=netbsd-core.lo
986 ;;
987 vax-*-ultrix2*)
988 COREFILE=trad-core.lo
989 TRAD_HEADER='"hosts/vaxult2.h"'
990 ;;
991 vax-*-ultrix*)
992 COREFILE=trad-core.lo
993 TRAD_HEADER='"hosts/vaxult2.h"'
994 ;;
995 vax-*-linux-*)
996 COREFILE=trad-core.lo
997 TRAD_HEADER='"hosts/vaxlinux.h"'
998 ;;
999 vax-*-*)
1000 COREFILE=trad-core.lo
1001 TRAD_HEADER='"hosts/vaxbsd.h"'
1002 ;;
1003 x86_64-*-linux*)
1004 CORE_HEADER='"hosts/x86-64linux.h"'
1005 ;;
1006 x86_64-*-netbsd* | x86_64-*-openbsd*)
1007 COREFILE=netbsd-core.lo
1008 ;;
1009 esac
1010
1011 case "$COREFILE" in
1012 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
1013 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
1014 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
1015 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
1016 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
1017 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
1018 osf-core.lo) COREFLAG=-DOSF_CORE ;;
1019 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
1020 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
1021 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
1022 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1023 esac
252b5132 1024
c603b11b
AM
1025 # ELF corefile support has several flavors, but all of
1026 # them use something called <sys/procfs.h>
1027 AC_CHECK_HEADERS(sys/procfs.h)
1028 if test "$ac_cv_header_sys_procfs_h" = yes; then
1029 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
1030 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
1031 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
1032 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
1033 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
1034 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
1035 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
1036 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
1037 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
1038 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
1039 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
1040 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
1041 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
1042 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
1043 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
1044 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
1045 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
1046 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
1047 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
1048 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
1049 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
1050 fi
1051fi
1052AC_SUBST(COREFILE)
1053AC_SUBST(COREFLAG)
1054if test -n "$CORE_HEADER"; then
1055 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
1056 [Name of host specific core header file to include in elf.c.])
1057fi
1058if test -n "$TRAD_HEADER"; then
1059 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
1060 [Name of host specific header file to include in trad-core.c.])
1061fi
252b5132 1062
ce3c775b
NC
1063if test "$plugins" = "yes"; then
1064 supports_plugins=1
1065else
1066 supports_plugins=0
1067fi
1068AC_SUBST(supports_plugins)
3cf9e6c4 1069AC_SUBST(lt_cv_dlopen_libs)
ce3c775b 1070
96fe4562 1071# Determine the host dependent file_ptr a.k.a. off_t type. In order
1012372a
AC
1072# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1073# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1074# Hopefully a reasonable assumption since fseeko et.al. should be
1075# upward compatible.
2e6f4fae 1076AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1012372a 1077if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
2ba49b59 1078 AC_CHECK_SIZEOF(off_t)
1012372a 1079fi
ccba357f
AM
1080AC_MSG_CHECKING([file_ptr type])
1081bfd_file_ptr="long"
1082bfd_ufile_ptr="unsigned long"
1083if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1084 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
1085 bfd_file_ptr=BFD_HOST_64_BIT
1086 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1087fi
1088AC_MSG_RESULT($bfd_file_ptr)
1089AC_SUBST(bfd_file_ptr)
1090AC_SUBST(bfd_ufile_ptr)
1091
252b5132
RH
1092dnl AC_CHECK_HEADERS(sys/mman.h)
1093AC_FUNC_MMAP
1094AC_CHECK_FUNCS(madvise mprotect)
1095case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1096 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1097esac
1098
1099rm -f doc/config.status
5464f5a1 1100AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
20e95c23
DJ
1101
1102dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1103dnl our two separate POTFILES. Yuck.
1104AC_CONFIG_COMMANDS([default],
1105[[
1106case "$srcdir" in
1107 .) srcdirpre= ;;
1108 *) srcdirpre='$(srcdir)/' ;;
1109esac
1110POFILES=
1111GMOFILES=
1112for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1113 if test $lang != dummy; then
1114 POFILES="$POFILES $srcdirpre$lang.po"
1115 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1116 fi
1117done
1118sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1119 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1120 -e "s,@POFILES@,$POFILES," \
1121 -e "s,@GMOFILES@,$GMOFILES," \
1122 po/Makefile.in > po/Makefile]],[[]])
108a6f8e 1123
31dd3154 1124dnl Required by html, pdf, install-pdf and install-html
108a6f8e
CD
1125AC_SUBST(datarootdir)
1126AC_SUBST(docdir)
1127AC_SUBST(htmldir)
31dd3154 1128AC_SUBST(pdfdir)
108a6f8e 1129
5464f5a1 1130AC_OUTPUT
This page took 0.975957 seconds and 4 git commands to generate.