Add support for DragonFlyBSD target.
[binutils.git] / bfd / configure.in
Commit [+]AuthorDateLineData
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001dnl Process this file with autoconf to produce a configure script.
2dnl
3
68594b41
NN
Nathanael Nerode2004-08-30 18:58:14 +00004AC_PREREQ(2.59)
5AC_INIT
6AC_CONFIG_SRCDIR([libbfd.c])
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00007
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00008AC_CANONICAL_TARGET
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00009AC_ISC_POSIX
10
95959a6a Tristan Gingold2010-11-05 08:58:20 +000011AM_INIT_AUTOMAKE(bfd, 2.21.51)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +000012
660909e1 Alan Modra2008-08-24 03:13:05 +000013dnl These must be called before LT_INIT, because it may want
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +000014dnl to call AC_CHECK_PROG.
15AC_CHECK_TOOL(AR, ar)
16AC_CHECK_TOOL(RANLIB, ranlib, :)
17
18dnl Default to a non shared library. This may be overridden by the
19dnl configure option --enable-shared.
660909e1 Alan Modra2008-08-24 03:13:05 +000020AC_DISABLE_SHARED
aa2289c2 Richard Henderson1999-05-03 07:29:11 +000021
26832c70
SE
Steve Ellcey2007-04-14 20:36:56 +000022AC_PROG_CC
23AC_GNU_SOURCE
a403e39d Alan Modra2008-08-15 08:31:52 +000024AC_USE_SYSTEM_EXTENSIONS
f3de5eb1 Joel Brobecker2008-11-13 23:09:47 +000025
dbda9fe8
NC
Nick Clifton2009-05-26 14:12:03 +000026LT_INIT([dlopen])
27
4dcf4db8
JK
Jan Kratochvil2009-11-11 04:42:33 +000028# AC_PLUGINS setting $plugins is called by ACX_LARGEFILE.
29ACX_LARGEFILE
dbda9fe8
NC
Nick Clifton2009-05-26 14:12:03 +000030
31AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes")
32
33if test "$plugins" = "yes"; then
34 if test "$enable_dlopen" != "yes" ; then
35 AC_MSG_ERROR([
36 Building BFD with plugin support requires a host that supports -ldl.])
37 fi
38 enable_targets="$enable_targets plugin"
39fi
40
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +000041AC_ARG_ENABLE(64-bit-bfd,
42[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
43[case "${enableval}" in
44 yes) want64=true ;;
45 no) want64=false ;;
46 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
47esac],[want64=false])dnl
e9284017 Nick Clifton2007-10-16 14:42:15 +000048
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +000049AC_ARG_ENABLE(targets,
50[ --enable-targets alternative target configurations],
51[case "${enableval}" in
68594b41 Nathanael Nerode2004-08-30 18:58:14 +000052 yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all'])
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +000053 ;;
54 no) enable_targets= ;;
55 *) enable_targets=$enableval ;;
56esac])dnl
e9284017 Nick Clifton2007-10-16 14:42:15 +000057
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +000058AC_ARG_WITH(mmap,
59[ --with-mmap try using mmap for BFD input files if available],
60[case "${withval}" in
61 yes) want_mmap=true ;;
62 no) want_mmap=false ;;
63 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
64esac],[want_mmap=false])dnl
65
e6ed0f0f
RH
Richard Henderson2005-05-29 23:13:39 +000066AC_ARG_ENABLE(secureplt,
67[ --enable-secureplt Default to creating read-only plt entries],
68[case "${enableval}" in
69 yes) use_secureplt=true ;;
70 no) use_secureplt=false ;;
71 *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;;
72esac],[use_secureplt=false])dnl
73if test $use_secureplt = true; then
74 AC_DEFINE(USE_SECUREPLT, 1,
75 [Define if we should default to creating read-only plt entries])
76fi
77
1fa52323
KT
Kai Tietz2010-04-27 17:25:59 +000078AC_ARG_ENABLE(leading-mingw64-underscores,
79 AS_HELP_STRING([--enable-leading-mingw64-underscores],
80 [Enable leading underscores on 64 bit mingw targets]),
81 [],[])
82AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ],
83 [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1,
84 [Define if we should use leading underscore on 64 bit mingw targets])])
85
dd772ed7 Andreas Schwab2007-06-23 08:40:54 +000086DEBUGDIR=${libdir}/debug
dd772ed7
AS
Andreas Schwab2007-06-23 08:40:54 +000087AC_ARG_WITH(separate-debug-dir,
88 AS_HELP_STRING([--with-separate-debug-dir=DIR],
89 [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]),
90[DEBUGDIR="${withval}"])
91AC_SUBST(DEBUGDIR)
92
e9284017
NC
Nick Clifton2007-10-16 14:42:15 +000093# Check to see if we should allow the generation of
94# symbols with the ELF standard's STT_COMMON type.
95AC_ARG_ENABLE(elf-stt-common,
96[ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type],
97[case "${enableval}" in
98 yes) want_elf_stt_common=true ;;
99 no) want_elf_stt_common=false ;;
100 *) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;;
101 esac],
102# We have to choose a default behaviour. For native builds we could
103# test whether the loader supports the STT_COMMON type, but that would
104# mean that built binaries could not be exported to older systems where
105# the loader does not support it. So by default we always choose to
106# disable this feature.
107 want_elf_stt_common=false)dnl
108if test $want_elf_stt_common = true; then
109 AC_DEFINE(USE_STT_COMMON, 1,
110 [Define if we may generate symbols with ELF's STT_COMMON type])
111fi
112
55ca86d4
JM
Joseph Myers2007-03-23 02:51:30 +0000113ACX_PKGVERSION([GNU Binutils])
114ACX_BUGURL([http://www.sourceware.org/bugzilla/])
33082f89 H.J. Lu2007-03-15 14:17:20 +0000115
d8e6c8fb Alan Modra2005-04-14 05:26:44 +0000116AM_BINUTILS_WARNINGS
697c9d98 Andrew Cagney2000-04-09 12:17:43 +0000117
660909e1 Alan Modra2008-08-24 03:13:05 +0000118AC_CONFIG_HEADERS(config.h:config.in)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000119
120if test -z "$target" ; then
121 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
122fi
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000123
124AM_MAINTAINER_MODE
976bae7a Daniel Jacobowitz2006-12-11 15:09:46 +0000125AM_CONDITIONAL(GENINSRC_NEVER, false)
af3fc057 Alan Modra2002-05-17 10:34:03 +0000126AM_INSTALL_LIBBFD
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000127AC_EXEEXT
128
129host64=false
130target64=false
d3e15595 Alan Modra2001-08-17 03:54:53 +0000131bfd_default_target_size=32
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000132
133# host stuff:
134
8b7cc8f1 Nick Clifton2009-06-15 08:52:20 +0000135ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru"
e94934d8
DJ
Daniel Jacobowitz2006-05-31 15:14:39 +0000136ZW_GNU_GETTEXT_SISTER_DIR
137AM_PO_SUBDIRS
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000138
139# Permit host specific settings.
140. ${srcdir}/configure.host
141
142AC_SUBST(HDEFINES)
143AC_PROG_INSTALL
144
145BFD_HOST_64BIT_LONG=0
4e806c44 Nick Clifton2007-07-12 07:16:41 +0000146BFD_HOST_64BIT_LONG_LONG=0
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000147BFD_HOST_64_BIT_DEFINED=0
148BFD_HOST_64_BIT=
149BFD_HOST_U_64_BIT=
4e806c44 Nick Clifton2007-07-12 07:16:41 +0000150BFD_HOSTPTR_T="unsigned long"
9ed15e79 Ian Lance Taylor2003-08-27 17:43:39 +0000151
de7cec10 Alan Modra2007-09-13 14:58:47 +0000152AC_CHECK_SIZEOF(long long)
4e806c44 Nick Clifton2007-07-12 07:16:41 +0000153AC_CHECK_SIZEOF(void *)
5f789ccb Kelley Cook2005-05-10 01:27:54 +0000154AC_CHECK_SIZEOF(long)
4e806c44
NC
Nick Clifton2007-07-12 07:16:41 +0000155
156if test "x${ac_cv_sizeof_void_p}" = "x8"; then
7e1245f3 H.J. Lu2003-09-19 03:55:40 +0000157 host64=true
de7cec10
AM
Alan Modra2007-09-13 14:58:47 +0000158fi
159
160if test "x${ac_cv_sizeof_long}" = "x8"; then
8e801f5c
AM
Alan Modra2004-03-16 09:05:22 +0000161 BFD_HOST_64BIT_LONG=1
162 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long"
163 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long"
7e1245f3 H.J. Lu2003-09-19 03:55:40 +0000164elif test "x${ac_cv_sizeof_long_long}" = "x8"; then
de7cec10 Alan Modra2007-09-13 14:58:47 +0000165 BFD_HOST_64BIT_LONG_LONG=1
8e801f5c
AM
Alan Modra2004-03-16 09:05:22 +0000166 test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long"
167 test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long"
de7cec10
AM
Alan Modra2007-09-13 14:58:47 +0000168 if test "x${ac_cv_sizeof_void_p}" = "x8"; then
169 BFD_HOSTPTR_T="unsigned long long"
170 fi
7e1245f3
L
H.J. Lu2003-09-19 03:55:40 +0000171fi
172
8e801f5c Alan Modra2004-03-16 09:05:22 +0000173if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then
7e1245f3 H.J. Lu2003-09-19 03:55:40 +0000174 BFD_HOST_64_BIT_DEFINED=1
8e801f5c
AM
Alan Modra2004-03-16 09:05:22 +0000175 BFD_HOST_64_BIT="${HOST_64BIT_TYPE}"
176 BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}"
9ed15e79
ILT
Ian Lance Taylor2003-08-27 17:43:39 +0000177fi
178
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000179AC_SUBST(BFD_HOST_64BIT_LONG)
4e806c44 Nick Clifton2007-07-12 07:16:41 +0000180AC_SUBST(BFD_HOST_64BIT_LONG_LONG)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000181AC_SUBST(BFD_HOST_64_BIT_DEFINED)
182AC_SUBST(BFD_HOST_64_BIT)
183AC_SUBST(BFD_HOST_U_64_BIT)
4e806c44 Nick Clifton2007-07-12 07:16:41 +0000184AC_SUBST(BFD_HOSTPTR_T)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000185
186BFD_CC_FOR_BUILD
187
0813a17c Nick Clifton2007-10-16 15:15:50 +0000188AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h)
dfb3cbd3 Nick Clifton2009-07-01 15:02:28 +0000189AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h)
682aed18 Alan Modra2007-04-24 04:05:04 +0000190GCC_HEADER_STDINT(bfd_stdint.h)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000191AC_HEADER_TIME
192AC_HEADER_DIRENT
7420233f Jim Wilson2005-05-05 18:51:14 +0000193ACX_HEADER_STRING
28f5788e Tom Tromey2008-11-06 14:10:46 +0000194AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno)
c1dfd783 Ian Lance Taylor2003-08-27 17:57:33 +0000195AC_CHECK_FUNCS(strtoull)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000196
38b6d5a4
JG
Jerome Guitton2005-04-20 15:00:15 +0000197AC_CHECK_DECLS(basename)
198AC_CHECK_DECLS(ftello)
199AC_CHECK_DECLS(ftello64)
200AC_CHECK_DECLS(fseeko)
201AC_CHECK_DECLS(fseeko64)
cb981118 Jerome Guitton2005-03-31 15:35:38 +0000202
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000203BFD_BINARY_FOPEN
204
415ff996
JG
Jerome Guitton2005-04-22 13:58:14 +0000205AC_CHECK_DECLS(ffs)
206AC_CHECK_DECLS(free)
207AC_CHECK_DECLS(getenv)
208AC_CHECK_DECLS(malloc)
209AC_CHECK_DECLS(realloc)
932efe51 H.J. Lu2005-05-04 22:15:30 +0000210AC_CHECK_DECLS(stpcpy)
415ff996 Jerome Guitton2005-04-22 13:58:14 +0000211AC_CHECK_DECLS(strstr)
3c4daa35
AJ
Andreas Jaeger2005-05-28 11:44:49 +0000212AC_CHECK_DECLS(snprintf)
213AC_CHECK_DECLS(vsnprintf)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000214
b43e7b5f
CS
Craig Silverstein2008-07-10 01:32:23 +0000215# Link in zlib if we can. This allows us to read compressed debug sections.
216# This is used only by compress.c.
3433c262 Joel Brobecker2009-11-24 22:47:19 +0000217AM_ZLIB
b43e7b5f Craig Silverstein2008-07-10 01:32:23 +0000218
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000219# If we are configured native, pick a core file support file.
220COREFILE=
221COREFLAG=
d02bd39e H.J. Lu2010-04-10 22:21:30 +0000222CORE_HEADER=
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000223TRAD_HEADER=
224if test "${target}" = "${host}"; then
225 case "${host}" in
71bf0c40 Nick Clifton2010-05-25 10:14:12 +0000226 alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*)
4dea3a65
DB
David O'Brien2000-11-05 23:31:45 +0000227 COREFILE=''
228 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000229 alpha*-*-linux-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000230 COREFILE=trad-core.lo
231 TRAD_HEADER='"hosts/alphalinux.h"'
232 ;;
f3a44dd7
NC
Nick Clifton2002-05-11 09:10:14 +0000233 alpha*-*-netbsd* | alpha*-*-openbsd*)
234 COREFILE=netbsd-core.lo
235 ;;
71bf0c40
NC
Nick Clifton2010-05-25 10:14:12 +0000236 alpha*-*-*)
237 COREFILE=osf-core.lo
238 ;;
ba480a60 Nick Clifton2003-09-03 09:32:21 +0000239 arm-*-freebsd* | arm-*-kfreebsd*-gnu)
71bf0c40 Nick Clifton2010-05-25 10:14:12 +0000240 COREFILE='' ;;
797304bc
MK
Mark Kettenis2006-08-02 21:41:12 +0000241 arm-*-netbsd* | arm-*-openbsd*)
242 COREFILE=netbsd-core.lo
243 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000244 arm-*-riscix) COREFILE=trad-core.lo ;;
245 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
246 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
247 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
248 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
249 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
57116a69
MK
Mark Kettenis2004-06-08 07:39:37 +0000250 hppa*-*-netbsd* | hppa*-*-openbsd*)
251 COREFILE=netbsd-core.lo
252 ;;
253
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000254 i370-*-*)
13f160c0
AM
Alan Modra2000-02-23 13:52:23 +0000255 COREFILE=trad-core.lo
256 TRAD_HEADER='"hosts/i370linux.h"'
257 ;;
258
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000259changequote(,)dnl
e653f63c Nick Clifton2003-05-16 16:30:27 +0000260 i[3-7]86-sequent-bsd*)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000261changequote([,])dnl
13f160c0 Alan Modra2000-02-23 13:52:23 +0000262 COREFILE=trad-core.lo
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000263 TRAD_HEADER='"hosts/symmetry.h"'
264 ;;
265changequote(,)dnl
e653f63c
NC
Nick Clifton2003-05-16 16:30:27 +0000266 i[3-7]86-sequent-sysv4*) ;;
267 i[3-7]86-sequent-sysv*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000268changequote([,])dnl
269 COREFILE=trad-core.lo
270 TRAD_HEADER='"hosts/symmetry.h"'
271 ;;
272changequote(,)dnl
e653f63c Nick Clifton2003-05-16 16:30:27 +0000273 i[3-7]86-*-bsdi)
0e180bca
NC
Nick Clifton2001-08-23 14:33:50 +0000274changequote([,])dnl
275 COREFILE=
276 ;;
277changequote(,)dnl
1ab3b407 Mark Kettenis2004-06-17 09:38:38 +0000278 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*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000279changequote([,])dnl
280 COREFILE=trad-core.lo
281 TRAD_HEADER='"hosts/i386bsd.h"'
282 ;;
283changequote(,)dnl
0191f1c6 Nick Clifton2007-08-28 11:02:55 +0000284 i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*)
f4935467
DB
David O'Brien2001-02-19 06:33:41 +0000285changequote([,])dnl
286 COREFILE=''
287 TRAD_HEADER='"hosts/i386bsd.h"'
288 ;;
289changequote(,)dnl
605624ac Nick Clifton2003-10-06 09:12:39 +0000290 i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000291changequote([,])dnl
292 COREFILE=netbsd-core.lo
293 ;;
294changequote(,)dnl
e653f63c Nick Clifton2003-05-16 16:30:27 +0000295 i[3-7]86-esix-sysv3*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000296changequote([,])dnl
297 COREFILE=trad-core.lo
298 TRAD_HEADER='"hosts/esix.h"'
299 ;;
300changequote(,)dnl
e653f63c Nick Clifton2003-05-16 16:30:27 +0000301 i[3-7]86-*-sco3.2v5*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000302changequote([,])dnl
303 COREFILE=sco5-core.lo
304 ;;
305changequote(,)dnl
e653f63c Nick Clifton2003-05-16 16:30:27 +0000306 i[3-7]86-*-sco* | i[3-7]86-*-isc*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000307changequote([,])dnl
308 COREFILE=trad-core.lo
309 TRAD_HEADER='"hosts/i386sco.h"'
310 ;;
311changequote(,)dnl
e653f63c Nick Clifton2003-05-16 16:30:27 +0000312 i[3-7]86-*-mach3*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000313changequote([,])dnl
314 COREFILE=trad-core.lo
315 TRAD_HEADER='"hosts/i386mach3.h"'
316 ;;
317changequote(,)dnl
e429753a Nick Clifton2005-03-23 15:35:50 +0000318 i[3-7]86-*-linux-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000319changequote([,])dnl
320 COREFILE=trad-core.lo
321 TRAD_HEADER='"hosts/i386linux.h"'
322 ;;
323changequote(,)dnl
e653f63c
NC
Nick Clifton2003-05-16 16:30:27 +0000324 i[3-7]86-*-isc*) COREFILE=trad-core.lo ;;
325 i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000326changequote([,])dnl
327 i860-*-mach3* | i860-*-osf1*)
328 COREFILE=trad-core.lo
329 TRAD_HEADER='"hosts/i860mach3.h"'
330 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000331 mips-*-netbsd* | mips*-*-openbsd*)
332 COREFILE=netbsd-core.lo
333 ;;
334 mips-dec-*)
335 COREFILE=trad-core.lo
336 TRAD_HEADER='"hosts/decstation.h"'
337 ;;
338 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
339 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
340 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000341 mips-*-sysv4*) ;;
342 mips-*-sysv* | mips-*-riscos*)
343 COREFILE=trad-core.lo
344 TRAD_HEADER='"hosts/riscos.h"'
345 ;;
346 mips-sony-bsd*)
347 COREFILE=trad-core.lo
348 TRAD_HEADER='"hosts/news-mips.h"'
349 ;;
350 m68*-bull*-sysv*)
351 COREFILE=trad-core.lo
352 TRAD_HEADER='"hosts/dpx2.h"'
353 ;;
354 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
355 m68*-hp-bsd*)
356 COREFILE=trad-core.lo
357 TRAD_HEADER='"hosts/hp300bsd.h"'
358 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000359 m68*-*-linux-*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000360 COREFILE=trad-core.lo
361 TRAD_HEADER='"hosts/m68klinux.h"'
362 ;;
363 m68*-motorola-sysv*)
364 COREFILE=trad-core.lo
365 TRAD_HEADER='"hosts/delta68.h"'
366 ;;
367 m68*-sony-*)
368 COREFILE=trad-core.lo
369 TRAD_HEADER='"hosts/news.h"'
370 ;;
371 m68*-*-netbsd* | m68*-*-openbsd*)
372 COREFILE=netbsd-core.lo
373 ;;
374 m68*-apple-aux*)
375 COREFILE=trad-core.lo
376 TRAD_HEADER='"hosts/m68kaux.h"'
377 ;;
d3d0d6b7
NC
Nick Clifton2002-03-18 12:46:27 +0000378 m88*-*-sysv4*)
379 ;;
380 m88*-motorola-sysv*)
381 COREFILE=ptrace-core.lo
382 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000383 m88*-*-mach3*)
384 COREFILE=trad-core.lo
385 TRAD_HEADER='"hosts/m88kmach3.h"'
386 ;;
4153f5e4
NC
Nick Clifton2004-05-24 14:48:18 +0000387 m88*-*-openbsd*)
388 COREFILE=netbsd-core.lo
389 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000390 ns32k-pc532-mach)
391 COREFILE=trad-core.lo
392 TRAD_HEADER='"hosts/pc532mach.h"'
393 ;;
394 ns32k-*-netbsd* | ns32k-*-openbsd*)
395 COREFILE=netbsd-core.lo
396 ;;
d3d0d6b7
NC
Nick Clifton2002-03-18 12:46:27 +0000397 rs6000-*-lynx*)
398 COREFILE=lynx-core.lo
399 ;;
bbcff986
RS
Richard Sandiford2009-03-14 09:11:38 +0000400changequote(,)dnl
401 rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*)
402changequote([,])dnl
d3d0d6b7
NC
Nick Clifton2002-03-18 12:46:27 +0000403 COREFILE=rs6000-core.lo
404 COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
405 ;;
319836e5 Kevin Buettner2000-04-03 21:48:31 +0000406changequote(,)dnl
b3eaacf7 Alan Modra2002-05-13 13:33:30 +0000407 rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
319836e5
KB
Kevin Buettner2000-04-03 21:48:31 +0000408changequote([,])dnl
409 COREFILE=rs6000-core.lo
410 COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
b3eaacf7
AM
Alan Modra2002-05-13 13:33:30 +0000411 # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
412 # have c_impl as a member of struct core_dumpx
413 AC_MSG_CHECKING([for c_impl in struct core_dumpx])
68594b41 Nathanael Nerode2004-08-30 18:58:14 +0000414 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1,
b3eaacf7
AM
Alan Modra2002-05-13 13:33:30 +0000415 [Define if struct core_dumpx has member c_impl])
416 AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
319836e5 Kevin Buettner2000-04-03 21:48:31 +0000417 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000418 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
419 rs6000-*-*) COREFILE=rs6000-core.lo ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000420 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
421 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
422 powerpc-*-beos*) ;;
ba480a60
NC
Nick Clifton2003-09-03 09:32:21 +0000423 powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu)
424 COREFILE='' ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000425 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
f4935467 David O'Brien2001-02-19 06:33:41 +0000426 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000427 s390*-*-*) COREFILE=trad-core.lo ;;
32ccb349
MK
Mark Kettenis2006-12-16 11:24:05 +0000428 sh*-*-netbsd* | sh*-*-openbsd*)
429 COREFILE=netbsd-core.lo
430 ;;
79e9ec83 Nick Clifton2002-05-13 08:33:26 +0000431 sparc-*-netbsd* | sparc*-*-openbsd*)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000432 COREFILE=netbsd-core.lo
433 ;;
434 tahoe-*-*)
435 COREFILE=trad-core.lo
436 TRAD_HEADER='"hosts/tahoe.h"'
437 ;;
fbaade17
NC
Nick Clifton2003-06-11 13:38:07 +0000438 vax-*-netbsd* | vax-*-openbsd*)
439 COREFILE=netbsd-core.lo
440 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000441 vax-*-ultrix2*)
442 COREFILE=trad-core.lo
443 TRAD_HEADER='"hosts/vaxult2.h"'
444 ;;
445 vax-*-ultrix*)
446 COREFILE=trad-core.lo
447 TRAD_HEADER='"hosts/vaxult2.h"'
448 ;;
e429753a Nick Clifton2005-03-23 15:35:50 +0000449 vax-*-linux-*)
34b74b85
NC
Nick Clifton2003-12-03 15:07:17 +0000450 COREFILE=trad-core.lo
451 TRAD_HEADER='"hosts/vaxlinux.h"'
452 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000453 vax-*-*)
454 COREFILE=trad-core.lo
455 TRAD_HEADER='"hosts/vaxbsd.h"'
456 ;;
d02bd39e
L
H.J. Lu2010-04-10 22:21:30 +0000457 x86_64-*-linux*)
458 CORE_HEADER='"hosts/x86-64linux.h"'
459 ;;
c98cd69b
MK
Mark Kettenis2004-03-13 12:33:48 +0000460 x86_64-*-netbsd* | x86_64-*-openbsd*)
461 COREFILE=netbsd-core.lo
462 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000463 esac
464
465 case "$COREFILE" in
466 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
467 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
468 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
469 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
470 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
471 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
472 osf-core.lo) COREFLAG=-DOSF_CORE ;;
473 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
474 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
475 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
476 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
477 esac
478
479 # ELF corefile support has several flavors, but all of
480 # them use something called <sys/procfs.h>
481 AC_CHECK_HEADERS(sys/procfs.h)
482 if test "$ac_cv_header_sys_procfs_h" = yes; then
483 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
afd5b9f5 Michael Snyder2000-08-30 18:12:21 +0000484 BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000485 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
afd5b9f5 Michael Snyder2000-08-30 18:12:21 +0000486 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000487 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
5797ce68 Alan Modra2000-09-30 00:44:49 +0000488 BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
afd5b9f5 Michael Snyder2000-08-30 18:12:21 +0000489 BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000490 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
afd5b9f5 Michael Snyder2000-08-30 18:12:21 +0000491 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000492 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
afd5b9f5 Michael Snyder2000-08-30 18:12:21 +0000493 BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000494 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
5797ce68 Alan Modra2000-09-30 00:44:49 +0000495 BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000496 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
497 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
3ef27956 Daniel Gutson2010-01-05 00:40:07 +0000498 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg)
d6c3cd14 Nick Clifton2000-01-10 18:50:16 +0000499 BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000500 fi
501fi
502AC_SUBST(COREFILE)
503AC_SUBST(COREFLAG)
d02bd39e
L
H.J. Lu2010-04-10 22:21:30 +0000504if test -n "$CORE_HEADER"; then
505 AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER,
506 [Name of host specific core header file to include in elf.c.])
507fi
9aff6771
AM
Alan Modra2000-05-02 00:12:52 +0000508if test -n "$TRAD_HEADER"; then
509 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
510 [Name of host specific header file to include in trad-core.c.])
511fi
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000512
5b721174
AM
Alan Modra2009-03-04 02:10:34 +0000513# Check if linker supports --as-needed and --no-as-needed options
514AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed,
515 [bfd_cv_ld_as_needed=no
516 if $LD --help 2>/dev/null | grep as-needed > /dev/null; then
517 bfd_cv_ld_as_needed=yes
518 fi
519 ])
520
521LT_LIB_M
522
c2716a3a
AM
Alan Modra2009-01-16 08:02:29 +0000523# When building a shared libbfd, link against the pic version of libiberty
524# so that apps that use libbfd won't need libiberty just to satisfy any
525# libbfd references.
526# We can't do that if a pic libiberty is unavailable since including non-pic
527# code would insert text relocations into libbfd.
528SHARED_LIBADD=
529SHARED_LDFLAGS=
530if test "$enable_shared" = "yes"; then
fd2949da Alan Modra2002-03-04 01:16:53 +0000531changequote(,)dnl
10998d5a Thiemo Seufer2008-04-14 19:58:48 +0000532 x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'`
fd2949da Alan Modra2002-03-04 01:16:53 +0000533changequote([,])dnl
10998d5a Thiemo Seufer2008-04-14 19:58:48 +0000534 if test -n "$x"; then
c2716a3a Alan Modra2009-01-16 08:02:29 +0000535 SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty"
10998d5a Thiemo Seufer2008-04-14 19:58:48 +0000536 fi
c2716a3a
AM
Alan Modra2009-01-16 08:02:29 +0000537
538# More hacks to build DLLs on Windows.
539 case "${host}" in
540 *-*-cygwin*)
541 SHARED_LDFLAGS="-no-undefined"
542 SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
96394eb4 H.J. Lu2001-10-21 06:51:03 +0000543 ;;
c2716a3a Alan Modra2009-01-16 08:02:29 +0000544 esac
5b721174
AM
Alan Modra2009-03-04 02:10:34 +0000545
546 if test -n "$SHARED_LIBADD"; then
547 if test -n "$LIBM"; then
548 if test x"$bfd_cv_ld_as_needed" = xyes; then
549 # Link against libm only when needed. Put -lc, -lm inside -Wl
550 # to stop libtool reordering these options.
551 SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed"
552 else
553 SHARED_LIBADD="$SHARED_LIBADD $LIBM"
554 fi
555 fi
556 fi
c2716a3a
AM
Alan Modra2009-01-16 08:02:29 +0000557fi
558AC_SUBST(SHARED_LDFLAGS)
559AC_SUBST(SHARED_LIBADD)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000560
561# target stuff:
562
563# Canonicalize the secondary target names.
564if test -n "$enable_targets" ; then
565 for targ in `echo $enable_targets | sed 's/,/ /g'`
566 do
e894dab5 Michael Meissner1999-09-14 23:29:35 +0000567 result=`$ac_config_sub $targ 2>/dev/null`
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000568 if test -n "$result" ; then
569 canon_targets="$canon_targets $result"
570 else
571 # Allow targets that config.sub doesn't recognize, like "all".
572 canon_targets="$canon_targets $targ"
573 fi
574 done
575fi
576
577all_targets=false
578defvec=
579selvecs=
ba5f62a2 Alan Modra2002-11-05 01:18:56 +0000580assocvecs=
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000581selarchs=
582TDEFINES=
583for targ in $target $canon_targets
584do
585 if test "x$targ" = "xall"; then
586 all_targets=true
ba5f62a2 Alan Modra2002-11-05 01:18:56 +0000587 assocvecs="$assocvecs $targ_defvec $targ_selvecs"
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000588 else
589 . $srcdir/config.bfd
590 if test "x$targ" = "x$target"; then
591 defvec=$targ_defvec
592 fi
593 selvecs="$selvecs $targ_defvec $targ_selvecs"
594 selarchs="$selarchs $targ_archs"
595 TDEFINES="$TDEFINES $targ_cflags"
596 fi
597done
598AC_SUBST(TDEFINES)
599
600# This processing still needs to be done if we're to decide properly whether
601# 64-bit support needs to be compiled in. Currently, it will be included if
602# the default or any other explicitly requested target requires it; it
603# will not be included on a 32-bit host if no 64-bit target is requested, and
46399c9e Ian Lance Taylor1999-09-19 22:43:16 +0000604# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000605# used.
606
607# uniq the default and selected vectors in all the configured targets.
608f=""
609for i in $selvecs ; do
610 case " $f " in
611 *" $i "*) ;;
612 *) f="$f $i" ;;
613 esac
614done
615selvecs="$f"
616
617
ba5f62a2
AM
Alan Modra2002-11-05 01:18:56 +0000618# uniq the associated vectors in all the configured targets.
619f=""
620for i in $assocvecs ; do
621 case " $f " in
622 *" $i "*) ;;
623 *) f="$f $i" ;;
624 esac
625done
626assocvecs="$f"
627
628
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000629# uniq the architectures in all the configured targets.
630f=""
631for i in $selarchs ; do
632 case " $f " in
633 *" $i "*) ;;
634 *) f="$f $i" ;;
635 esac
636done
637selarchs="$f"
638
639# Target backend .o files.
640tb=
641
e4373bdf Alan Modra2009-08-11 02:14:17 +0000642elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo
816b7937 H.J. Lu2009-06-16 13:41:10 +0000643 elf-eh-frame.lo dwarf1.lo"
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000644
645for vec in $selvecs
646do
d3e15595 Alan Modra2001-08-17 03:54:53 +0000647 target_size=32
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000648 case "$vec" in
649 # This list is alphabetized to make it easy to compare
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000650 # with the two vector lists in targets.c. For the same reason,
651 # use one entry per line, even though this leads to long lines.
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000652 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
6dfc29aa Alan Modra2002-06-17 02:27:38 +0000653 aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000654 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
655 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
656 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000657 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000658 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
659 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
660 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
661 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
c82ef6a9
NC
Nick Clifton2006-08-21 08:12:46 +0000662 arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
663 arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;;
664 arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
665 arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000666 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
667 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
668 armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;;
669 armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
670 armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
671 armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
672 armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000673 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
674 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
36438cff H.J. Lu2009-04-17 13:46:18 +0000675 bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
9b143545 Alexandre Oliva2003-07-10 04:44:37 +0000676 bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;;
eb62019a Alan Modra2000-03-27 08:39:14 +0000677 bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;;
1a35c4a0 Catherine Moore2005-09-30 15:36:41 +0000678 bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
65a4b3b8 Bernd Schmidt2006-03-26 00:38:42 +0000679 bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000680 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000681 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
4b4c7ba7 Richard Sandiford2006-03-07 08:39:21 +0000682 bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
66b7c0dd Mark Mitchell2004-09-03 17:15:44 +0000683 bfd_elf32_bigarm_symbian_vec)
4b4c7ba7 Richard Sandiford2006-03-07 08:39:21 +0000684 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e513ba5d Paul Brook2005-01-06 16:18:25 +0000685 bfd_elf32_bigarm_vxworks_vec)
4b4c7ba7 Richard Sandiford2006-03-07 08:39:21 +0000686 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4279ed38
RS
Richard Sandiford2006-03-22 09:28:15 +0000687 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
688 bfd_elf32_bigmips_vxworks_vec)
689 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
c71c5ca9 Nick Clifton2007-06-29 14:09:34 +0000690 bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;;
ed2dd403 Nick Clifton2004-03-30 14:04:32 +0000691 bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;;
cd6f7291 Hans-Peter Nilsson2000-07-20 16:21:07 +0000692 bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
13e82919 Nick Clifton2004-07-07 17:28:53 +0000693 bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000694 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
695 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
ba57705f Nick Clifton2002-05-28 14:08:47 +0000696 bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000697 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
7031b448 Dave Brolley2002-06-18 21:10:55 +0000698 bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
9db4e192 Alexandre Oliva2004-05-06 02:46:29 +0000699 bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;;
dd0adf18 Nick Clifton2009-04-16 15:39:48 +0000700 bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;;
4ff50093 Joern Rennecke2001-08-29 01:33:52 +0000701 bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000702 bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
9ecf1e50 Jason Thorpe2004-07-27 22:30:25 +0000703 bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000704 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
13f160c0 Alan Modra2000-02-23 13:52:23 +0000705 bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;;
cd7bebbc Rainer Orth2010-03-05 19:48:52 +0000706 bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
e4373bdf
AM
Alan Modra2009-08-11 02:14:17 +0000707 bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
708 bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
709 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-vxworks.lo elf32.lo $elf" ;;
2f6fcc61 Jason Eckhardt2000-07-28 21:10:20 +0000710 bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000711 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
4e4db529 Ian Lance Taylor1999-05-27 21:42:14 +0000712 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000713 bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
fff83094 Alan Modra2001-12-19 02:14:37 +0000714 bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
ae36e8cc Nick Clifton2002-07-17 14:15:52 +0000715 bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
293bde6b Stan Cox2003-01-03 21:12:28 +0000716 bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;;
76f66765
NC
Nick Clifton2008-12-23 19:10:25 +0000717 bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
718 bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000719 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000720 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
66b7c0dd Mark Mitchell2004-09-03 17:15:44 +0000721 bfd_elf32_littlearm_symbian_vec)
4b4c7ba7 Richard Sandiford2006-03-07 08:39:21 +0000722 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
e513ba5d Paul Brook2005-01-06 16:18:25 +0000723 bfd_elf32_littlearm_vxworks_vec)
4b4c7ba7
RS
Richard Sandiford2006-03-07 08:39:21 +0000724 tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
725 bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;;
4279ed38
RS
Richard Sandiford2006-03-22 09:28:15 +0000726 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
727 bfd_elf32_littlemips_vxworks_vec)
728 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
28ed9ab5 Nick Clifton2005-07-18 14:13:36 +0000729 bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000730 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
376caa5a
NC
Nick Clifton2003-12-19 11:44:01 +0000731 bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
732 bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
733 bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
da39a754
SC
Stephane Carrez2003-04-21 13:24:19 +0000734 bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
735 bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000736 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
737 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
738 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
739 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
21971afd
DB
Dave Brolley2007-02-05 20:10:25 +0000740 bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
741 bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;;
ad627b38 Nick Clifton2009-08-06 17:38:04 +0000742 bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000743 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
744 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
5c7604d4 Nathan Sidwell2005-12-16 10:23:12 +0000745 bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;;
1c300c07 Nick Clifton2002-12-30 19:25:13 +0000746 bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;;
4279ed38
RS
Richard Sandiford2006-03-22 09:28:15 +0000747 bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
748 bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
02d1fa7b
RS
Richard Sandiford2010-12-31 11:00:52 +0000749 bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec)
750 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
751 bfd_elf32_ntradlittlemips_vec | bfd_elf32_ntradlittlemips_freebsd_vec)
752 tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
6e10a47a Nick Clifton2001-04-24 15:08:16 +0000753 bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
37f4530e Nick Clifton2002-01-31 17:33:08 +0000754 bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;;
c7e275cc
ILT
Ian Lance Taylor1999-09-04 17:07:46 +0000755 bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
756 bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";;
c440d9ad
PB
Paul Brook2005-07-05 13:25:56 +0000757 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
758 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
759 bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;;
7bb985cd
NC
Nick Clifton2009-09-29 14:17:19 +0000760 bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
761 bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;;
b72e10f9 Nick Clifton2001-02-10 00:58:38 +0000762 bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;;
44346bb3
NC
Nick Clifton2009-03-18 16:58:33 +0000763 bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
764 bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;;
d3d0d6b7
NC
Nick Clifton2002-03-18 12:46:27 +0000765 # FIXME: We include cofflink.lo not because it's needed for
766 # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
767 # which needs it but does not list it. Should be fixed in right place.
12262680
RS
Richard Sandiford2006-08-04 13:13:56 +0000768 bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
769 bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
770 bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
771 bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
772 bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
773 bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;;
774 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
aab06c2d Nick Clifton2010-05-25 14:12:35 +0000775 bfd_elf32_shbfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12262680 Richard Sandiford2006-08-04 13:13:56 +0000776 bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
aab06c2d Nick Clifton2010-05-25 14:12:35 +0000777 bfd_elf32_shfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12262680
RS
Richard Sandiford2006-08-04 13:13:56 +0000778 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
779 bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
780 bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
781 bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
782 bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
38ebbbd1 Nick Clifton2006-08-07 11:04:37 +0000783 bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
12262680 Richard Sandiford2006-08-04 13:13:56 +0000784 bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;;
abcbf620 Richard Sandiford2006-04-05 12:41:59 +0000785 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
dd19839e Rainer Orth2010-10-22 12:08:24 +0000786 bfd_elf32_sparc_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
abcbf620 Richard Sandiford2006-04-05 12:41:59 +0000787 bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;;
999aabcd Alan Modra2006-10-25 06:49:21 +0000788 bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;;
05186a7b
JM
Joseph Myers2010-03-25 21:12:25 +0000789 bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
790 bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;;
02d1fa7b
RS
Richard Sandiford2010-12-31 11:00:52 +0000791 bfd_elf32_tradbigmips_vec | bfd_elf32_tradbigmips_freebsd_vec)
792 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
793 bfd_elf32_tradlittlemips_vec | bfd_elf32_tradlittlemips_freebsd_vec)
794 tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000795 bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000796 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
f8f27ef9 Jason Thorpe2002-05-30 02:14:13 +0000797 bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;;
dc323640 Geoffrey Keating2001-12-08 03:46:03 +0000798 bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
6da0fc66 Nick Clifton2006-02-17 14:36:28 +0000799 bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;;
607ef48f
NC
Nick Clifton2003-04-01 15:50:31 +0000800 bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
801 bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;;
636529a0 Richard Henderson2002-10-15 17:14:51 +0000802 bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000803 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
804 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
4279ed38 Richard Sandiford2006-03-22 09:28:15 +0000805 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000806 bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
807 bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000808 bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
fff83094 Alan Modra2001-12-19 02:14:37 +0000809 bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000810 bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
7ead9a68 Tristan Gingold2010-05-14 07:18:37 +0000811 bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000812 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
4279ed38 Richard Sandiford2006-03-22 09:28:15 +0000813 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
2cf98ff0 Nick Clifton2001-10-30 15:20:14 +0000814 bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000815 bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
816 bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
817 bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
6dfc29aa
AM
Alan Modra2002-06-17 02:27:38 +0000818 bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
819 bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
67b77899
AM
Alan Modra2002-10-16 08:39:38 +0000820 bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
821 bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
822 bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
823 bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
abcbf620 Richard Sandiford2006-04-05 12:41:59 +0000824 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
ebcb8d85 Mike Frysinger2006-10-18 23:58:52 +0000825 bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
dd19839e Rainer Orth2010-10-22 12:08:24 +0000826 bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;;
02d1fa7b
RS
Richard Sandiford2010-12-31 11:00:52 +0000827 bfd_elf64_tradbigmips_vec | bfd_elf64_tradbigmips_freebsd_vec)
828 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
829 bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec)
830 tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
e4373bdf Alan Modra2009-08-11 02:14:17 +0000831 bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
cd7bebbc Rainer Orth2010-03-05 19:48:52 +0000832 bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
e4373bdf Alan Modra2009-08-11 02:14:17 +0000833 bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
c4f7d3b9 H.J. Lu2010-12-31 00:33:30 +0000834 bfd_elf32_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo elf32.lo $elf"; target_size=64 ;;
e4373bdf
AM
Alan Modra2009-08-11 02:14:17 +0000835 bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
836 bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;;
2cf98ff0 Nick Clifton2001-10-30 15:20:14 +0000837 bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000838 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
839 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
840 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
841 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
cd6f7291 Hans-Peter Nilsson2000-07-20 16:21:07 +0000842 cris_aout_vec) tb="$tb aout-cris.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000843 demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000844 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000845 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000846 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
847 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000848 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
849 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
850 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
851 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
852 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
853 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
854 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
855 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
856 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
857 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
a5285462 Nick Clifton2006-09-20 11:35:11 +0000858 x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000859 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
860 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000861 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
862 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
863 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
864 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000865 i386msdos_vec) tb="$tb i386msdos.lo" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000866 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
867 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000868 i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
869 i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
a5285462
NC
Nick Clifton2006-09-20 11:35:11 +0000870 x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
871 x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000872 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
873 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
874 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
875 ieee_vec) tb="$tb ieee.lo" ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000876 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
877 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000878 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
879 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
880 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000881 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000882 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
883 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
6dfc29aa Alan Modra2002-06-17 02:27:38 +0000884 m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;;
4153f5e4 Nick Clifton2004-05-24 14:48:18 +0000885 m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;;
eadf164a
KD
Klee Dienes2002-11-18 16:37:54 +0000886 mach_o_be_vec) tb="$tb mach-o.lo" ;;
887 mach_o_le_vec) tb="$tb mach-o.lo" ;;
888 mach_o_fat_vec) tb="$tb mach-o.lo" ;;
fd4ff6c3 Tristan Gingold2009-06-05 09:19:44 +0000889 mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;;
a7e1cdcb Tristan Gingold2010-01-13 11:49:36 +0000890 mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;;
1455a3ad
ILT
Ian Lance Taylor1999-09-11 23:37:28 +0000891 mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
892 mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
893 mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
894 mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
61ffdd1d
AM
Alan Modra2001-09-18 09:57:26 +0000895 mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
896 mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000897 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000898 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000899 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000900 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000901 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
37f4530e Nick Clifton2002-01-31 17:33:08 +0000902 or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000903 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000904 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
eadf164a
KD
Klee Dienes2002-11-18 16:37:54 +0000905 pef_vec) tb="$tb pef.lo" ;;
906 pef_xlib_vec) tb="$tb pef.lo" ;;
c4101914 Nick Clifton2001-02-18 23:33:11 +0000907 pdp11_aout_vec) tb="$tb pdp11.lo" ;;
dbda9fe8 Nick Clifton2009-05-26 14:12:03 +0000908 plugin_vec) tb="$tb plugin.lo" ;;
03401616 H.J. Lu2001-05-25 22:50:27 +0000909 pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000910 ppcboot_vec) tb="$tb ppcboot.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000911 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
d3d0d6b7 Nick Clifton2002-03-18 12:46:27 +0000912 rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000913 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000914 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000915 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000916 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000917 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
1848baaa
NC
Nick Clifton2000-06-19 01:22:44 +0000918 shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
919 shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000920 som_vec) tb="$tb som.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000921 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000922 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
923 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
924 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
925 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
926 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000927 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
eadf164a Klee Dienes2002-11-18 16:37:54 +0000928 sym_vec) tb="$tb xsym.lo" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000929 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
930 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
74be271c
NC
Nick Clifton2002-08-28 10:38:51 +0000931 tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;;
932 tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;;
933 tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;;
934 tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;;
935 tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;;
936 tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;;
482a616e Timothy Wall2000-04-07 17:06:58 +0000937 tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000938 tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;;
482a616e Timothy Wall2000-04-07 17:06:58 +0000939 tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000940 tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;;
482a616e Timothy Wall2000-04-07 17:06:58 +0000941 tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;;
61ffdd1d Alan Modra2001-09-18 09:57:26 +0000942 tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000943 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
f8f27ef9 Jason Thorpe2002-05-30 02:14:13 +0000944 vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;;
0d1df730 Jason Thorpe2002-06-08 23:23:08 +0000945 vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;;
94e479cc Alan Modra2002-07-01 08:31:53 +0000946 vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000947 versados_vec) tb="$tb versados.lo" ;;
cb1be502 Tristan Gingold2010-04-14 09:24:58 +0000948 vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;;
053dc88b Tristan Gingold2010-04-01 09:47:13 +0000949 vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;;
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000950 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
951 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
d35e1486 Nick Clifton2005-10-25 17:40:19 +0000952 z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;;
7a96054c Nick Clifton2005-08-26 09:47:49 +0000953 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;;
aa2289c2 Richard Henderson1999-05-03 07:29:11 +0000954
6dfc29aa
AM
Alan Modra2002-06-17 02:27:38 +0000955 # These appear out of order in targets.c
956 srec_vec) tb="$tb srec.lo" ;;
957 symbolsrec_vec) tb="$tb srec.lo" ;;
958 tekhex_vec) tb="$tb tekhex.lo" ;;
959 cisco_core_big_vec) tb="$tb cisco-core.lo" ;;
960 cisco_core_little_vec) tb="$tb cisco-core.lo" ;;
961
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000962 "") ;;
963 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
964 esac
d3e15595
AM
Alan Modra2001-08-17 03:54:53 +0000965
966 if test ${target_size} = 64; then
967 target64=true
968 fi
969 if test x"${vec}" = x"${defvec}"; then
970 bfd_default_target_size=${target_size}
971 fi
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000972done
973
974# Target architecture .o files.
975# A couple of CPUs use shorter file names to avoid problems on DOS
976# filesystems.
5c7604d4 Nathan Sidwell2005-12-16 10:23:12 +0000977ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +0000978
979# Weed out duplicate .o files.
980f=""
981for i in $tb ; do
982 case " $f " in
983 *" $i "*) ;;
984 *) f="$f $i" ;;
985 esac
986done
987tb="$f"
988
989f=""
990for i in $ta ; do
991 case " $f " in
992 *" $i "*) ;;
993 *) f="$f $i" ;;
994 esac
995done
996ta="$f"
997
998bfd_backends="$tb"
999bfd_machines="$ta"
1000
1001if test x${all_targets} = xtrue ; then
1002 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
1003 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
1004 selvecs=
7ead9a68 Tristan Gingold2010-05-14 07:18:37 +00001005 havevecs=-DHAVE_all_vecs
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001006 selarchs=
ba5f62a2
AM
Alan Modra2002-11-05 01:18:56 +00001007 test -n "$assocvecs" &&
1008 assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001009else # all_targets is true
1010 # Only set these if they will be nonempty, for the clever echo.
1011 havevecs=
ba5f62a2 Alan Modra2002-11-05 01:18:56 +00001012 assocvecs=
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001013 test -n "$selvecs" &&
1014 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
1015 test -n "$selvecs" &&
1016 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1017 test -n "$selarchs" &&
1018 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
1019fi # all_targets is true
1020
1021case ${host64}-${target64}-${want64} in
1022 *true*)
1023 wordsize=64
82d6a00d H.J. Lu2007-01-12 04:04:08 +00001024 bfd64_libs='$(BFD64_LIBS)'
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001025 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
8e801f5c Alan Modra2004-03-16 09:05:22 +00001026 if test $BFD_HOST_64_BIT_DEFINED = 0; then
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001027 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
1028 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
1029 fi
ea3d03da
HPN
Hans-Peter Nilsson2002-01-26 21:55:54 +00001030 if test -n "$GCC" ; then
1031 bad_64bit_gcc=no;
1032 AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
1033 # Add more tests for gcc versions with non-working 64-bit support here.
1034 AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
1035 bad_64bit_gcc=yes;
1036 AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
1037 AC_MSG_RESULT(no))
1038 if test $bad_64bit_gcc = yes ; then
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001039 AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
ea3d03da
HPN
Hans-Peter Nilsson2002-01-26 21:55:54 +00001040 fi
1041 fi
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001042 ;;
1043 false-false-false)
1044 wordsize=32
1045 all_backends='$(BFD32_BACKENDS)'
1046 ;;
1047esac
1048
1049AC_SUBST(wordsize)
82d6a00d H.J. Lu2007-01-12 04:04:08 +00001050AC_SUBST(bfd64_libs)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001051AC_SUBST(all_backends)
1052AC_SUBST(bfd_backends)
1053AC_SUBST(bfd_machines)
d3e15595 Alan Modra2001-08-17 03:54:53 +00001054AC_SUBST(bfd_default_target_size)
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001055
dbda9fe8
NC
Nick Clifton2009-05-26 14:12:03 +00001056if test "$plugins" = "yes"; then
1057 supports_plugins=1
1058else
1059 supports_plugins=0
1060fi
1061AC_SUBST(supports_plugins)
1062
8904897b
AC
Andrew Cagney2004-02-11 22:01:00 +00001063# Determine the host dependant file_ptr a.k.a. off_t type. In order
1064# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and
1065# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long.
1066# Hopefully a reasonable assumption since fseeko et.al. should be
1067# upward compatible.
0b8676a9 Daniel Jacobowitz2005-11-03 16:06:11 +00001068AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64)
8904897b Andrew Cagney2004-02-11 22:01:00 +00001069if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then
5f789ccb Kelley Cook2005-05-10 01:27:54 +00001070 AC_CHECK_SIZEOF(off_t)
8904897b Andrew Cagney2004-02-11 22:01:00 +00001071fi
8e801f5c
AM
Alan Modra2004-03-16 09:05:22 +00001072AC_MSG_CHECKING([file_ptr type])
1073bfd_file_ptr="long"
1074bfd_ufile_ptr="unsigned long"
1075if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \
1076 -o x"${ac_cv_sizeof_off_t}" = x8; then
8904897b
AC
Andrew Cagney2004-02-11 22:01:00 +00001077 bfd_file_ptr=BFD_HOST_64_BIT
1078 bfd_ufile_ptr=BFD_HOST_U_64_BIT
1079fi
1080AC_MSG_RESULT($bfd_file_ptr)
1081AC_SUBST(bfd_file_ptr)
1082AC_SUBST(bfd_ufile_ptr)
1083
1084
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001085tdefaults=""
1086test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
1087test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
ba5f62a2 Alan Modra2002-11-05 01:18:56 +00001088test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001089test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
aa2289c2 Richard Henderson1999-05-03 07:29:11 +00001090AC_SUBST(tdefaults)
7ead9a68 Tristan Gingold2010-05-14 07:18:37 +00001091AC_SUBST(havevecs)
aa2289c2
RH
Richard Henderson1999-05-03 07:29:11 +00001092
1093dnl AC_CHECK_HEADERS(sys/mman.h)
1094AC_FUNC_MMAP
1095AC_CHECK_FUNCS(madvise mprotect)
1096case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
1097 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
1098esac
1099
1100rm -f doc/config.status
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001101AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in])
e94934d8
DJ
Daniel Jacobowitz2006-05-31 15:14:39 +00001102
1103dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of
1104dnl our two separate POTFILES. Yuck.
1105AC_CONFIG_COMMANDS([default],
1106[[
1107case "$srcdir" in
1108 .) srcdirpre= ;;
1109 *) srcdirpre='$(srcdir)/' ;;
1110esac
1111POFILES=
1112GMOFILES=
1113for lang in dummy $OBSOLETE_ALL_LINGUAS; do
1114 if test $lang != dummy; then
1115 POFILES="$POFILES $srcdirpre$lang.po"
1116 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
1117 fi
1118done
1119sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \
1120 -e '/BLD-POTFILES =/r po/BLD-POTFILES' \
1121 -e "s,@POFILES@,$POFILES," \
1122 -e "s,@GMOFILES@,$GMOFILES," \
1123 po/Makefile.in > po/Makefile]],[[]])
8d074d15 Carlos O'Donell2006-04-06 21:49:35 +00001124
5c3f3a67 Joseph Myers2009-02-03 15:54:05 +00001125dnl Required by html, pdf, install-pdf and install-html
8d074d15
CD
Carlos O'Donell2006-04-06 21:49:35 +00001126AC_SUBST(datarootdir)
1127AC_SUBST(docdir)
1128AC_SUBST(htmldir)
5c3f3a67 Joseph Myers2009-02-03 15:54:05 +00001129AC_SUBST(pdfdir)
8d074d15 Carlos O'Donell2006-04-06 21:49:35 +00001130
68594b41 Nathanael Nerode2004-08-30 18:58:14 +00001131AC_OUTPUT
1b5c4662 Nick Clifton2001-03-23 18:05:30 +00001132