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