RISC-V: Don't assume the priv attributes are in order when handling them.
[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.
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
5f2a6b85 436elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-nacl.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" ;;
521 i386_elf32_nacl_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
522 i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
523 i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
2f67d686
AM
524 i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;;
525 i386_msdos_vec) tb="$tb i386msdos.lo" ;;
f4943d82 526 i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
251dae91 527 i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;;
f4943d82 528 i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;;
5f2a6b85 529 iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;;
6d00b590
AM
530 ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
531 ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;;
2f67d686
AM
532 ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
533 ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
534 ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;;
535 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 536 ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;;
6d00b590
AM
537 ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
538 iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
0afcef53
L
539 k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
540 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 ;;
541 l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;;
542 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
543 lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
544 lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
6d00b590
AM
545 m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
546 m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
547 m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
548 m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
549 m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
550 m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
551 m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
552 m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
7b4ae824 553 s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;;
f4943d82
AM
554 mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
555 mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
556 mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;;
6d00b590
AM
557 mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
558 mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
f4943d82
AM
559 mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
560 mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;;
561 mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
562 mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;;
6d00b590
AM
563 mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
564 mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
565 metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;;
6d00b590 566 microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
2f67d686 567 microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
8e415ce8
AM
568 mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
569 mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
570 mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;;
f4943d82
AM
571 mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
572 mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
573 mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
574 mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
575 mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
576 mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
577 mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
578 mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
579 mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
580 mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
581 mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
582 mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
583 mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
584 mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;;
585 mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
586 mips_elf64_le_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_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;;
588 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 ;;
589 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 ;;
590 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
591 mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
592 mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
593 mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
594 mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
595 moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
596 moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
597 msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
598 msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
599 mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
6d00b590
AM
600 nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
601 nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
602 nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
603 nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;;
fe944acf 604 nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;;
2f67d686
AM
605 nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
606 nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;;
607 ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
608 ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
6d00b590 609 or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;;
2f67d686
AM
610 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
611 pef_vec) tb="$tb pef.lo" ;;
612 pef_xlib_vec) tb="$tb pef.lo" ;;
6d00b590
AM
613 pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
614 pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;;
2f67d686 615 powerpc_boot_vec) tb="$tb ppcboot.lo" ;;
6d00b590
AM
616 powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
617 powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
618 powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
619 powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
2f67d686
AM
620 powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
621 powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
622 powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
f4943d82
AM
623 powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
624 powerpc_pe_le_vec) tb="$tb pe-ppc.lo peigen.lo $coff" ;;
625 powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
626 powerpc_pei_le_vec) tb="$tb pei-ppc.lo peigen.lo $coff" ;;
627 powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
889294f6 628 pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;;
e23eba97
NC
629 riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf32.lo $elf" ;;
630 riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf32.lo $elf"; target_size=64 ;;
6d00b590 631 rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;;
f4943d82
AM
632 rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
633 rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;;
634 rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;;
6d00b590
AM
635 rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
636 rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
2f67d686 637 rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
8d3c78e4 638 rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
6d00b590 639 s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
2f67d686 640 s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
a8e14f4c
NC
641 score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
642 score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;;
f4943d82
AM
643 sh_coff_vec) tb="$tb coff-sh.lo $coff" ;;
644 sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;;
645 sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;;
646 sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;;
647 sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
648 sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
649 sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
650 sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
651 sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
652 sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
653 sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
654 sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
f4943d82
AM
655 sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
656 sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;;
657 sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;;
658 sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;;
2f67d686
AM
659 sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
660 sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
661 sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
662 sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
663 sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
664 sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
2f67d686 665 spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
6d00b590 666 sym_vec) tb="$tb xsym.lo" ;;
f4943d82
AM
667 tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;;
668 tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
669 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
670 tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
671 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
672 tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
673 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;;
674 tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
675 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
676 tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
677 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
678 tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
679 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;;
2f67d686
AM
680 tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
681 tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
682 tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
683 tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
684 tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
685 tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
2f67d686
AM
686 tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
687 tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;;
688 tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
689 tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;;
690 tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;;
691 v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
692 v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
6d00b590 693 vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
2f67d686
AM
694 vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
695 vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
3f8107ab 696 ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;;
d924db55 697 visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;;
a6be0538 698 wasm_vec) tb="$tb wasm-module.lo" ;;
8fb740dd 699 wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;;
f4943d82 700 x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;;
5f2a6b85
AM
701 x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
702 x86_64_elf32_nacl_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;;
703 x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
704 x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
705 x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
706 x86_64_elf64_nacl_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
707 x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;;
2f67d686 708 x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;;
f4943d82 709 x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
251dae91 710 x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
f4943d82 711 x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;;
2f67d686
AM
712 xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
713 xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;;
714 xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
715 xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
716 xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
f4943d82 717 z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;;
6655dba2 718 z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;;
f4943d82 719 z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;;
252b5132 720
341ca622 721 # These appear out of order in targets.c
6d00b590
AM
722 srec_vec) tb="$tb srec.lo" ;;
723 symbolsrec_vec) tb="$tb srec.lo" ;;
724 tekhex_vec) tb="$tb tekhex.lo" ;;
725 core_cisco_be_vec) tb="$tb cisco-core.lo" ;;
726 core_cisco_le_vec) tb="$tb cisco-core.lo" ;;
341ca622 727
6d00b590 728 "") ;;
252b5132
RH
729 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
730 esac
69263e90
AM
731
732 if test ${target_size} = 64; then
733 target64=true
734 fi
735 if test x"${vec}" = x"${defvec}"; then
736 bfd_default_target_size=${target_size}
737 fi
252b5132
RH
738done
739
999d6dff
AM
740if test "$plugins" = "yes"; then
741 tb="$tb plugin.lo"
742fi
743
252b5132
RH
744# Target architecture .o files.
745# A couple of CPUs use shorter file names to avoid problems on DOS
746# filesystems.
d031aafb 747ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
252b5132
RH
748
749# Weed out duplicate .o files.
750f=""
751for i in $tb ; do
752 case " $f " in
753 *" $i "*) ;;
754 *) f="$f $i" ;;
755 esac
756done
757tb="$f"
758
759f=""
760for i in $ta ; do
761 case " $f " in
762 *" $i "*) ;;
763 *) f="$f $i" ;;
764 esac
765done
766ta="$f"
767
768bfd_backends="$tb"
769bfd_machines="$ta"
770
771if test x${all_targets} = xtrue ; then
772 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
773 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
774 selvecs=
7256a114 775 havevecs=-DHAVE_all_vecs
252b5132 776 selarchs=
08f74004
AM
777 test -n "$assocvecs" &&
778 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
252b5132
RH
779else # all_targets is true
780 # Only set these if they will be nonempty, for the clever echo.
781 havevecs=
08f74004 782 assocvecs=
252b5132
RH
783 test -n "$selvecs" &&
784 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
785 test -n "$selvecs" &&
786 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
787 test -n "$selarchs" &&
788 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
789fi # all_targets is true
790
e6cc316a
L
791# 64-bit archives need a 64-bit bfd_vma.
792if test "x$want_64_bit_archive" = xtrue; then
793 want64=true
794 AC_DEFINE(USE_64_BIT_ARCHIVE, 1,
865422fa 795 [Define if 64-bit archives should always be used.])
e6cc316a
L
796fi
797
c603b11b
AM
798case ${host64}-${target64}-${want64} in
799 *true*)
800 wordsize=64
801 bfd64_libs='$(BFD64_LIBS)'
802 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
803 if test $BFD_HOST_64_BIT_DEFINED = 0; then
804 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
805 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
806 fi
807 if test -n "$GCC" ; then
808 bad_64bit_gcc=no;
809 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
810 # Add more tests for gcc versions with non-working 64-bit support here.
811 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
812 bad_64bit_gcc=yes;
813 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
814 AC_MSG_RESULT(no))
815 if test $bad_64bit_gcc = yes ; then
816 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
817 fi
818 fi
819 ;;
820 false-false-false)
821 wordsize=32
822 all_backends='$(BFD32_BACKENDS)'
823 ;;
824esac
825
826tdefaults=""
827test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
828test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
829test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
830test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
831
832AC_SUBST(wordsize)
833AC_SUBST(bfd64_libs)
834AC_SUBST(all_backends)
835AC_SUBST(bfd_backends)
836AC_SUBST(bfd_machines)
837AC_SUBST(bfd_default_target_size)
838AC_SUBST(tdefaults)
839AC_SUBST(havevecs)
840
841# If we are configured native, pick a core file support file.
842COREFILE=
843COREFLAG=
844CORE_HEADER=
845TRAD_HEADER=
846if test "${target}" = "${host}"; then
847 case "${host}" in
848 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
849 COREFILE=''
850 ;;
851 alpha*-*-linux-*)
852 COREFILE=trad-core.lo
853 TRAD_HEADER='"hosts/alphalinux.h"'
854 ;;
855 alpha*-*-netbsd* | alpha*-*-openbsd*)
856 COREFILE=netbsd-core.lo
857 ;;
858 alpha*-*-*)
859 COREFILE=osf-core.lo
860 ;;
861 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
862 COREFILE='' ;;
8b5d0a4f 863 arm*-*-netbsd* | arm-*-openbsd*)
c603b11b
AM
864 COREFILE=netbsd-core.lo
865 ;;
866 arm-*-riscix) COREFILE=trad-core.lo ;;
867 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
868 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
869 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
870 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
871 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
872 hppa*-*-netbsd* | hppa*-*-openbsd*)
873 COREFILE=netbsd-core.lo
874 ;;
875
c603b11b
AM
876changequote(,)dnl
877 i[3-7]86-sequent-bsd*)
878changequote([,])dnl
879 COREFILE=trad-core.lo
880 TRAD_HEADER='"hosts/symmetry.h"'
881 ;;
882changequote(,)dnl
883 i[3-7]86-sequent-sysv4*) ;;
884 i[3-7]86-sequent-sysv*)
885changequote([,])dnl
886 COREFILE=trad-core.lo
887 TRAD_HEADER='"hosts/symmetry.h"'
888 ;;
889changequote(,)dnl
890 i[3-7]86-*-bsdi)
891changequote([,])dnl
892 COREFILE=
893 ;;
894changequote(,)dnl
895 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*)
896changequote([,])dnl
897 COREFILE=trad-core.lo
898 TRAD_HEADER='"hosts/i386bsd.h"'
899 ;;
900changequote(,)dnl
901 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
902changequote([,])dnl
903 COREFILE=''
904 TRAD_HEADER='"hosts/i386bsd.h"'
905 ;;
906changequote(,)dnl
907 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
908changequote([,])dnl
909 COREFILE=netbsd-core.lo
910 ;;
911changequote(,)dnl
912 i[3-7]86-esix-sysv3*)
913changequote([,])dnl
914 COREFILE=trad-core.lo
915 TRAD_HEADER='"hosts/esix.h"'
916 ;;
917changequote(,)dnl
918 i[3-7]86-*-sco3.2v5*)
919changequote([,])dnl
920 COREFILE=sco5-core.lo
921 ;;
922changequote(,)dnl
923 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
924changequote([,])dnl
925 COREFILE=trad-core.lo
926 TRAD_HEADER='"hosts/i386sco.h"'
927 ;;
928changequote(,)dnl
929 i[3-7]86-*-mach3*)
930changequote([,])dnl
931 COREFILE=trad-core.lo
932 TRAD_HEADER='"hosts/i386mach3.h"'
933 ;;
934changequote(,)dnl
935 i[3-7]86-*-linux-*)
936changequote([,])dnl
937 COREFILE=trad-core.lo
938 TRAD_HEADER='"hosts/i386linux.h"'
939 case "$enable_targets"-"$want64" in
940 *x86_64-*linux*|*-true)
941 CORE_HEADER='"hosts/x86-64linux.h"'
942 esac
943 ;;
944changequote(,)dnl
945 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
946 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
947changequote([,])dnl
8b5d0a4f 948 mips*-*-netbsd* | mips*-*-openbsd*)
c603b11b
AM
949 COREFILE=netbsd-core.lo
950 ;;
c603b11b
AM
951 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
952 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
953 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
c603b11b
AM
954 m68*-*-linux-*)
955 COREFILE=trad-core.lo
956 TRAD_HEADER='"hosts/m68klinux.h"'
957 ;;
dc12032b 958 m68*-*-netbsd*)
c603b11b
AM
959 COREFILE=netbsd-core.lo
960 ;;
c603b11b
AM
961 ns32k-pc532-mach)
962 COREFILE=trad-core.lo
963 TRAD_HEADER='"hosts/pc532mach.h"'
964 ;;
965 ns32k-*-netbsd* | ns32k-*-openbsd*)
966 COREFILE=netbsd-core.lo
967 ;;
968 rs6000-*-lynx*)
969 COREFILE=lynx-core.lo
970 ;;
971changequote(,)dnl
972 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*)
973changequote([,])dnl
974 COREFILE=rs6000-core.lo
975 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
976 ;;
977changequote(,)dnl
978 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
979changequote([,])dnl
980 COREFILE=rs6000-core.lo
981 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
982 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
983 # have c_impl as a member of struct core_dumpx
984 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
985 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
986 [Define if struct core_dumpx has member c_impl])
987 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
988 ;;
989 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
990 rs6000-*-*) COREFILE=rs6000-core.lo ;;
991 powerpc64-*-aix*) COREFILE=rs6000-core.lo ;;
992 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
993 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
994 powerpc-*-beos*) ;;
995 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
996 COREFILE='' ;;
997 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
998 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
999 s390*-*-*) COREFILE=trad-core.lo ;;
1000 sh*-*-netbsd* | sh*-*-openbsd*)
1001 COREFILE=netbsd-core.lo
1002 ;;
1003 sparc-*-netbsd* | sparc*-*-openbsd*)
1004 COREFILE=netbsd-core.lo
1005 ;;
c603b11b
AM
1006 vax-*-netbsd* | vax-*-openbsd*)
1007 COREFILE=netbsd-core.lo
1008 ;;
1009 vax-*-ultrix2*)
1010 COREFILE=trad-core.lo
1011 TRAD_HEADER='"hosts/vaxult2.h"'
1012 ;;
1013 vax-*-ultrix*)
1014 COREFILE=trad-core.lo
1015 TRAD_HEADER='"hosts/vaxult2.h"'
1016 ;;
1017 vax-*-linux-*)
1018 COREFILE=trad-core.lo
1019 TRAD_HEADER='"hosts/vaxlinux.h"'
1020 ;;
1021 vax-*-*)
1022 COREFILE=trad-core.lo
1023 TRAD_HEADER='"hosts/vaxbsd.h"'
1024 ;;
1025 x86_64-*-linux*)
1026 CORE_HEADER='"hosts/x86-64linux.h"'
1027 ;;
1028 x86_64-*-netbsd* | x86_64-*-openbsd*)
1029 COREFILE=netbsd-core.lo
1030 ;;
1031 esac
1032
1033 case "$COREFILE" in
1034 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
1035 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
1036 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
1037 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
1038 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
1039 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
1040 osf-core.lo) COREFLAG=-DOSF_CORE ;;
1041 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
1042 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
1043 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
1044 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
1045 esac
252b5132 1046
c603b11b
AM
1047 # ELF corefile support has several flavors, but all of
1048 # them use something called <sys/procfs.h>
1049 AC_CHECK_HEADERS(sys/procfs.h)
1050 if test "$ac_cv_header_sys_procfs_h" = yes; then
1051 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
1052 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
1053 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
1054 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
1055 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
1056 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
1057 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
1058 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
1059 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid)
1060 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
1061 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid)
1062 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
1063 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid)
1064 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
1065 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid)
1066 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
1067 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
1068 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
1069 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
1070 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
1071 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
1072 fi
1073fi
1074AC_SUBST(COREFILE)
1075AC_SUBST(COREFLAG)
1076if test -n "$CORE_HEADER"; then
1077 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
1078 [Name of host specific core header file to include in elf.c.])
1079fi
1080if test -n "$TRAD_HEADER"; then
1081 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
1082 [Name of host specific header file to include in trad-core.c.])
1083fi
252b5132 1084
ce3c775b
NC
1085if test "$plugins" = "yes"; then
1086 supports_plugins=1
1087else
1088 supports_plugins=0
1089fi
1090AC_SUBST(supports_plugins)
3cf9e6c4 1091AC_SUBST(lt_cv_dlopen_libs)
ce3c775b 1092
96fe4562 1093# Determine the host dependent file_ptr a.k.a. off_t type. In order
1012372a
AC
1094# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1095# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1096# Hopefully a reasonable assumption since fseeko et.al. should be
1097# upward compatible.
2e6f4fae 1098AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
1012372a 1099if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
2ba49b59 1100 AC_CHECK_SIZEOF(off_t)
1012372a 1101fi
ccba357f
AM
1102AC_MSG_CHECKING([file_ptr type])
1103bfd_file_ptr="long"
1104bfd_ufile_ptr="unsigned long"
1105if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1106 -o x"${ac_cv_sizeof_off_t}" = x8; then
1012372a
AC
1107 bfd_file_ptr=BFD_HOST_64_BIT
1108 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1109fi
1110AC_MSG_RESULT($bfd_file_ptr)
1111AC_SUBST(bfd_file_ptr)
1112AC_SUBST(bfd_ufile_ptr)
1113
252b5132
RH
1114dnl AC_CHECK_HEADERS(sys/mman.h)
1115AC_FUNC_MMAP
1116AC_CHECK_FUNCS(madvise mprotect)
1117case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1118 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1119esac
1120
1121rm -f doc/config.status
5464f5a1 1122AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
20e95c23
DJ
1123
1124dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1125dnl our two separate POTFILES. Yuck.
1126AC_CONFIG_COMMANDS([default],
1127[[
1128case "$srcdir" in
1129 .) srcdirpre= ;;
1130 *) srcdirpre='$(srcdir)/' ;;
1131esac
1132POFILES=
1133GMOFILES=
1134for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1135 if test $lang != dummy; then
1136 POFILES="$POFILES $srcdirpre$lang.po"
1137 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1138 fi
1139done
1140sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1141 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1142 -e "s,@POFILES@,$POFILES," \
1143 -e "s,@GMOFILES@,$GMOFILES," \
1144 po/Makefile.in > po/Makefile]],[[]])
108a6f8e 1145
31dd3154 1146dnl Required by html, pdf, install-pdf and install-html
108a6f8e
CD
1147AC_SUBST(datarootdir)
1148AC_SUBST(docdir)
1149AC_SUBST(htmldir)
31dd3154 1150AC_SUBST(pdfdir)
108a6f8e 1151
5464f5a1 1152AC_OUTPUT
This page took 1.218641 seconds and 4 git commands to generate.