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