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