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