Commit | Line | Data |
---|---|---|
252b5132 RH |
1 | dnl Process this file with autoconf to produce a configure script. |
2 | dnl | |
4b95cf5c | 3 | dnl Copyright (C) 2012-2014 Free Software Foundation, Inc. |
5bf135a7 NC |
4 | dnl |
5 | dnl This file is free software; you can redistribute it and/or modify | |
6 | dnl it under the terms of the GNU General Public License as published by | |
7 | dnl the Free Software Foundation; either version 3 of the License, or | |
8 | dnl (at your option) any later version. | |
9 | dnl | |
10 | dnl This program is distributed in the hope that it will be useful, | |
11 | dnl but WITHOUT ANY WARRANTY; without even the implied warranty of | |
12 | dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13 | dnl GNU General Public License for more details. | |
14 | dnl | |
15 | dnl You should have received a copy of the GNU General Public License | |
16 | dnl along with this program; see the file COPYING3. If not see | |
17 | dnl <http://www.gnu.org/licenses/>. | |
18 | dnl | |
252b5132 | 19 | |
5464f5a1 | 20 | AC_PREREQ(2.59) |
bc080e94 | 21 | AC_INIT([bfd], [2.24.51]) |
5464f5a1 | 22 | AC_CONFIG_SRCDIR([libbfd.c]) |
252b5132 | 23 | |
5464f5a1 | 24 | AC_CANONICAL_TARGET |
252b5132 RH |
25 | AC_ISC_POSIX |
26 | ||
c4dd807e | 27 | AM_INIT_AUTOMAKE |
252b5132 | 28 | |
da594c4a | 29 | dnl These must be called before LT_INIT, because it may want |
252b5132 RH |
30 | dnl to call AC_CHECK_PROG. |
31 | AC_CHECK_TOOL(AR, ar) | |
32 | AC_CHECK_TOOL(RANLIB, ranlib, :) | |
33 | ||
34 | dnl Default to a non shared library. This may be overridden by the | |
35 | dnl configure option --enable-shared. | |
da594c4a | 36 | AC_DISABLE_SHARED |
252b5132 | 37 | |
cfbc9945 SE |
38 | AC_PROG_CC |
39 | AC_GNU_SOURCE | |
7357c5b6 | 40 | AC_USE_SYSTEM_EXTENSIONS |
08c13eba | 41 | |
ce3c775b NC |
42 | LT_INIT([dlopen]) |
43 | ||
da2f07f1 JK |
44 | # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. |
45 | ACX_LARGEFILE | |
ce3c775b NC |
46 | |
47 | AM_CONDITIONAL(PLUGINS, test "$plugins" = "yes") | |
48 | ||
49 | if test "$plugins" = "yes"; then | |
50 | if test "$enable_dlopen" != "yes" ; then | |
51 | AC_MSG_ERROR([ | |
52 | Building BFD with plugin support requires a host that supports -ldl.]) | |
53 | fi | |
54 | enable_targets="$enable_targets plugin" | |
55 | fi | |
56 | ||
252b5132 RH |
57 | AC_ARG_ENABLE(64-bit-bfd, |
58 | [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)], | |
59 | [case "${enableval}" in | |
60 | yes) want64=true ;; | |
61 | no) want64=false ;; | |
62 | *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;; | |
63 | esac],[want64=false])dnl | |
504b7d20 | 64 | |
252b5132 RH |
65 | AC_ARG_ENABLE(targets, |
66 | [ --enable-targets alternative target configurations], | |
67 | [case "${enableval}" in | |
5464f5a1 | 68 | yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all']) |
252b5132 RH |
69 | ;; |
70 | no) enable_targets= ;; | |
71 | *) enable_targets=$enableval ;; | |
72 | esac])dnl | |
504b7d20 | 73 | |
252b5132 RH |
74 | AC_ARG_WITH(mmap, |
75 | [ --with-mmap try using mmap for BFD input files if available], | |
76 | [case "${withval}" in | |
77 | yes) want_mmap=true ;; | |
78 | no) want_mmap=false ;; | |
79 | *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;; | |
80 | esac],[want_mmap=false])dnl | |
81 | ||
6ec7057a RH |
82 | AC_ARG_ENABLE(secureplt, |
83 | [ --enable-secureplt Default to creating read-only plt entries], | |
84 | [case "${enableval}" in | |
85 | yes) use_secureplt=true ;; | |
86 | no) use_secureplt=false ;; | |
87 | *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;; | |
88 | esac],[use_secureplt=false])dnl | |
89 | if test $use_secureplt = true; then | |
90 | AC_DEFINE(USE_SECUREPLT, 1, | |
91 | [Define if we should default to creating read-only plt entries]) | |
92 | fi | |
93 | ||
ef72a554 KT |
94 | AC_ARG_ENABLE(leading-mingw64-underscores, |
95 | AS_HELP_STRING([--enable-leading-mingw64-underscores], | |
96 | [Enable leading underscores on 64 bit mingw targets]), | |
97 | [],[]) | |
98 | AS_IF([ test x"$enable_leading_mingw64_underscores" = xyes ], | |
99 | [AC_DEFINE(USE_MINGW64_LEADING_UNDERSCORES, 1, | |
100 | [Define if we should use leading underscore on 64 bit mingw targets])]) | |
101 | ||
0d4a1476 | 102 | DEBUGDIR=${libdir}/debug |
0d4a1476 AS |
103 | AC_ARG_WITH(separate-debug-dir, |
104 | AS_HELP_STRING([--with-separate-debug-dir=DIR], | |
105 | [Look for global separate debug info in DIR [[default=LIBDIR/debug]]]), | |
106 | [DEBUGDIR="${withval}"]) | |
107 | AC_SUBST(DEBUGDIR) | |
108 | ||
504b7d20 NC |
109 | # Check to see if we should allow the generation of |
110 | # symbols with the ELF standard's STT_COMMON type. | |
111 | AC_ARG_ENABLE(elf-stt-common, | |
112 | [ --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type], | |
113 | [case "${enableval}" in | |
114 | yes) want_elf_stt_common=true ;; | |
115 | no) want_elf_stt_common=false ;; | |
116 | *) AC_MSG_ERROR(bad value ${enableval} for ELF STT_COMMON option) ;; | |
117 | esac], | |
118 | # We have to choose a default behaviour. For native builds we could | |
119 | # test whether the loader supports the STT_COMMON type, but that would | |
120 | # mean that built binaries could not be exported to older systems where | |
121 | # the loader does not support it. So by default we always choose to | |
122 | # disable this feature. | |
123 | want_elf_stt_common=false)dnl | |
124 | if test $want_elf_stt_common = true; then | |
125 | AC_DEFINE(USE_STT_COMMON, 1, | |
126 | [Define if we may generate symbols with ELF's STT_COMMON type]) | |
127 | fi | |
8059fb19 | 128 | |
a1ac8190 JM |
129 | ACX_PKGVERSION([GNU Binutils]) |
130 | ACX_BUGURL([http://www.sourceware.org/bugzilla/]) | |
c428fa83 | 131 | |
9e9b66a9 | 132 | AM_BINUTILS_WARNINGS |
a2d91340 | 133 | |
da594c4a | 134 | AC_CONFIG_HEADERS(config.h:config.in) |
252b5132 | 135 | |
df7b86aa NC |
136 | # PR 14072 |
137 | AH_VERBATIM([00_CONFIG_H_CHECK], | |
138 | [/* Check that config.h is #included before system headers | |
139 | (this works only for glibc, but that should be enough). */ | |
d17dce55 | 140 | #if defined(__GLIBC__) && !defined(__FreeBSD_kernel__) && !defined(__CONFIG_H__) |
df7b86aa NC |
141 | # error config.h must be #included before system headers |
142 | #endif | |
143 | #define __CONFIG_H__ 1]) | |
144 | ||
252b5132 RH |
145 | if test -z "$target" ; then |
146 | AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) | |
147 | fi | |
252b5132 RH |
148 | |
149 | AM_MAINTAINER_MODE | |
d5fbea21 | 150 | AM_CONDITIONAL(GENINSRC_NEVER, false) |
a703a6ea | 151 | AM_INSTALL_LIBBFD |
252b5132 RH |
152 | AC_EXEEXT |
153 | ||
154 | host64=false | |
155 | target64=false | |
69263e90 | 156 | bfd_default_target_size=32 |
252b5132 RH |
157 | |
158 | # host stuff: | |
159 | ||
4c6a93d3 | 160 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id ru uk" |
20e95c23 DJ |
161 | ZW_GNU_GETTEXT_SISTER_DIR |
162 | AM_PO_SUBDIRS | |
252b5132 RH |
163 | |
164 | # Permit host specific settings. | |
165 | . ${srcdir}/configure.host | |
166 | ||
167 | AC_SUBST(HDEFINES) | |
168 | AC_PROG_INSTALL | |
169 | ||
170 | BFD_HOST_64BIT_LONG=0 | |
d2df793a | 171 | BFD_HOST_64BIT_LONG_LONG=0 |
252b5132 RH |
172 | BFD_HOST_64_BIT_DEFINED=0 |
173 | BFD_HOST_64_BIT= | |
174 | BFD_HOST_U_64_BIT= | |
d2df793a | 175 | BFD_HOSTPTR_T="unsigned long" |
ec317fb1 | 176 | |
bce5e5c9 | 177 | AC_CHECK_SIZEOF(long long) |
d2df793a | 178 | AC_CHECK_SIZEOF(void *) |
2ba49b59 | 179 | AC_CHECK_SIZEOF(long) |
d2df793a NC |
180 | |
181 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
6726e1ea | 182 | host64=true |
bce5e5c9 AM |
183 | fi |
184 | ||
185 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
ccba357f AM |
186 | BFD_HOST_64BIT_LONG=1 |
187 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
188 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
6726e1ea | 189 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then |
bce5e5c9 | 190 | BFD_HOST_64BIT_LONG_LONG=1 |
ccba357f AM |
191 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" |
192 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
bce5e5c9 AM |
193 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then |
194 | BFD_HOSTPTR_T="unsigned long long" | |
195 | fi | |
6726e1ea L |
196 | fi |
197 | ||
ccba357f | 198 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then |
6726e1ea | 199 | BFD_HOST_64_BIT_DEFINED=1 |
ccba357f AM |
200 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" |
201 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
ec317fb1 ILT |
202 | fi |
203 | ||
252b5132 | 204 | AC_SUBST(BFD_HOST_64BIT_LONG) |
d2df793a | 205 | AC_SUBST(BFD_HOST_64BIT_LONG_LONG) |
252b5132 RH |
206 | AC_SUBST(BFD_HOST_64_BIT_DEFINED) |
207 | AC_SUBST(BFD_HOST_64_BIT) | |
208 | AC_SUBST(BFD_HOST_U_64_BIT) | |
d2df793a | 209 | AC_SUBST(BFD_HOSTPTR_T) |
252b5132 RH |
210 | |
211 | BFD_CC_FOR_BUILD | |
212 | ||
5879bb8f | 213 | AC_CHECK_HEADERS(alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h wchar.h) |
9d782e8d | 214 | AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h sys/stat.h sys/resource.h) |
d5efd9fc | 215 | GCC_HEADER_STDINT(bfd_stdint.h) |
252b5132 RH |
216 | AC_HEADER_TIME |
217 | AC_HEADER_DIRENT | |
17d5dae2 KT |
218 | |
219 | AC_CHECK_HEADERS(windows.h dlfcn.h) | |
220 | ||
2e0fbf77 | 221 | ACX_HEADER_STRING |
428b207a | 222 | AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno) |
9d782e8d | 223 | AC_CHECK_FUNCS(strtoull getrlimit) |
252b5132 | 224 | |
ec7b76fe JG |
225 | AC_CHECK_DECLS(basename) |
226 | AC_CHECK_DECLS(ftello) | |
227 | AC_CHECK_DECLS(ftello64) | |
228 | AC_CHECK_DECLS(fseeko) | |
229 | AC_CHECK_DECLS(fseeko64) | |
2e9ebff5 | 230 | |
252b5132 RH |
231 | BFD_BINARY_FOPEN |
232 | ||
d34a2b1d JG |
233 | AC_CHECK_DECLS(ffs) |
234 | AC_CHECK_DECLS(free) | |
235 | AC_CHECK_DECLS(getenv) | |
236 | AC_CHECK_DECLS(malloc) | |
237 | AC_CHECK_DECLS(realloc) | |
be5cacdb | 238 | AC_CHECK_DECLS(stpcpy) |
d34a2b1d | 239 | AC_CHECK_DECLS(strstr) |
36527912 AJ |
240 | AC_CHECK_DECLS(snprintf) |
241 | AC_CHECK_DECLS(vsnprintf) | |
252b5132 | 242 | |
1b315056 CS |
243 | # Link in zlib if we can. This allows us to read compressed debug sections. |
244 | # This is used only by compress.c. | |
bf993e3c | 245 | AM_ZLIB |
1b315056 | 246 | |
252b5132 RH |
247 | # If we are configured native, pick a core file support file. |
248 | COREFILE= | |
249 | COREFLAG= | |
8bc7f138 | 250 | CORE_HEADER= |
252b5132 RH |
251 | TRAD_HEADER= |
252 | if test "${target}" = "${host}"; then | |
253 | case "${host}" in | |
9fcd9da6 | 254 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*) |
46d59bfa DB |
255 | COREFILE='' |
256 | ;; | |
ed84e695 | 257 | alpha*-*-linux-*) |
252b5132 RH |
258 | COREFILE=trad-core.lo |
259 | TRAD_HEADER='"hosts/alphalinux.h"' | |
260 | ;; | |
690cc98b NC |
261 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
262 | COREFILE=netbsd-core.lo | |
263 | ;; | |
9fcd9da6 NC |
264 | alpha*-*-*) |
265 | COREFILE=osf-core.lo | |
266 | ;; | |
13dfd2d0 | 267 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
9fcd9da6 | 268 | COREFILE='' ;; |
e33533a4 MK |
269 | arm-*-netbsd* | arm-*-openbsd*) |
270 | COREFILE=netbsd-core.lo | |
271 | ;; | |
252b5132 RH |
272 | arm-*-riscix) COREFILE=trad-core.lo ;; |
273 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
274 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
275 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
276 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
277 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
278 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
279 | COREFILE=netbsd-core.lo | |
280 | ;; | |
281 | ||
dc810e39 | 282 | i370-*-*) |
5b93d8bb AM |
283 | COREFILE=trad-core.lo |
284 | TRAD_HEADER='"hosts/i370linux.h"' | |
285 | ;; | |
286 | ||
252b5132 | 287 | changequote(,)dnl |
80c7c40a | 288 | i[3-7]86-sequent-bsd*) |
252b5132 | 289 | changequote([,])dnl |
5b93d8bb | 290 | COREFILE=trad-core.lo |
252b5132 RH |
291 | TRAD_HEADER='"hosts/symmetry.h"' |
292 | ;; | |
293 | changequote(,)dnl | |
80c7c40a NC |
294 | i[3-7]86-sequent-sysv4*) ;; |
295 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
296 | changequote([,])dnl |
297 | COREFILE=trad-core.lo | |
298 | TRAD_HEADER='"hosts/symmetry.h"' | |
299 | ;; | |
7e3b3466 | 300 | changequote(,)dnl |
80c7c40a | 301 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
302 | changequote([,])dnl |
303 | COREFILE= | |
304 | ;; | |
252b5132 | 305 | changequote(,)dnl |
d2bef492 | 306 | 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*) |
252b5132 RH |
307 | changequote([,])dnl |
308 | COREFILE=trad-core.lo | |
309 | TRAD_HEADER='"hosts/i386bsd.h"' | |
310 | ;; | |
d4af9775 | 311 | changequote(,)dnl |
0b3e17e9 | 312 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) |
d4af9775 DB |
313 | changequote([,])dnl |
314 | COREFILE='' | |
315 | TRAD_HEADER='"hosts/i386bsd.h"' | |
316 | ;; | |
252b5132 | 317 | changequote(,)dnl |
4615568e | 318 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
319 | changequote([,])dnl |
320 | COREFILE=netbsd-core.lo | |
321 | ;; | |
322 | changequote(,)dnl | |
80c7c40a | 323 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
324 | changequote([,])dnl |
325 | COREFILE=trad-core.lo | |
326 | TRAD_HEADER='"hosts/esix.h"' | |
327 | ;; | |
328 | changequote(,)dnl | |
80c7c40a | 329 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
330 | changequote([,])dnl |
331 | COREFILE=sco5-core.lo | |
332 | ;; | |
333 | changequote(,)dnl | |
80c7c40a | 334 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
335 | changequote([,])dnl |
336 | COREFILE=trad-core.lo | |
337 | TRAD_HEADER='"hosts/i386sco.h"' | |
338 | ;; | |
339 | changequote(,)dnl | |
80c7c40a | 340 | i[3-7]86-*-mach3*) |
252b5132 RH |
341 | changequote([,])dnl |
342 | COREFILE=trad-core.lo | |
343 | TRAD_HEADER='"hosts/i386mach3.h"' | |
344 | ;; | |
345 | changequote(,)dnl | |
ed84e695 | 346 | i[3-7]86-*-linux-*) |
252b5132 RH |
347 | changequote([,])dnl |
348 | COREFILE=trad-core.lo | |
349 | TRAD_HEADER='"hosts/i386linux.h"' | |
680db949 L |
350 | case "$enable_targets"-"$want64" in |
351 | *x86_64-*linux*|*-true) | |
b1bd052d L |
352 | CORE_HEADER='"hosts/x86-64linux.h"' |
353 | esac | |
252b5132 RH |
354 | ;; |
355 | changequote(,)dnl | |
80c7c40a NC |
356 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
357 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
358 | changequote([,])dnl |
359 | i860-*-mach3* | i860-*-osf1*) | |
360 | COREFILE=trad-core.lo | |
361 | TRAD_HEADER='"hosts/i860mach3.h"' | |
362 | ;; | |
252b5132 RH |
363 | mips-*-netbsd* | mips*-*-openbsd*) |
364 | COREFILE=netbsd-core.lo | |
365 | ;; | |
366 | mips-dec-*) | |
367 | COREFILE=trad-core.lo | |
368 | TRAD_HEADER='"hosts/decstation.h"' | |
369 | ;; | |
370 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
371 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
372 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
373 | mips-*-sysv4*) ;; |
374 | mips-*-sysv* | mips-*-riscos*) | |
375 | COREFILE=trad-core.lo | |
376 | TRAD_HEADER='"hosts/riscos.h"' | |
377 | ;; | |
378 | mips-sony-bsd*) | |
379 | COREFILE=trad-core.lo | |
380 | TRAD_HEADER='"hosts/news-mips.h"' | |
381 | ;; | |
382 | m68*-bull*-sysv*) | |
383 | COREFILE=trad-core.lo | |
384 | TRAD_HEADER='"hosts/dpx2.h"' | |
385 | ;; | |
386 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
387 | m68*-hp-bsd*) | |
388 | COREFILE=trad-core.lo | |
389 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
390 | ;; | |
ed84e695 | 391 | m68*-*-linux-*) |
252b5132 RH |
392 | COREFILE=trad-core.lo |
393 | TRAD_HEADER='"hosts/m68klinux.h"' | |
394 | ;; | |
395 | m68*-motorola-sysv*) | |
396 | COREFILE=trad-core.lo | |
397 | TRAD_HEADER='"hosts/delta68.h"' | |
398 | ;; | |
399 | m68*-sony-*) | |
400 | COREFILE=trad-core.lo | |
401 | TRAD_HEADER='"hosts/news.h"' | |
402 | ;; | |
403 | m68*-*-netbsd* | m68*-*-openbsd*) | |
404 | COREFILE=netbsd-core.lo | |
405 | ;; | |
406 | m68*-apple-aux*) | |
407 | COREFILE=trad-core.lo | |
408 | TRAD_HEADER='"hosts/m68kaux.h"' | |
409 | ;; | |
eb1e0e80 NC |
410 | m88*-*-sysv4*) |
411 | ;; | |
412 | m88*-motorola-sysv*) | |
413 | COREFILE=ptrace-core.lo | |
414 | ;; | |
252b5132 RH |
415 | m88*-*-mach3*) |
416 | COREFILE=trad-core.lo | |
417 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
418 | ;; | |
c6f8758f NC |
419 | m88*-*-openbsd*) |
420 | COREFILE=netbsd-core.lo | |
421 | ;; | |
252b5132 RH |
422 | ns32k-pc532-mach) |
423 | COREFILE=trad-core.lo | |
424 | TRAD_HEADER='"hosts/pc532mach.h"' | |
425 | ;; | |
426 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
427 | COREFILE=netbsd-core.lo | |
428 | ;; | |
eb1e0e80 NC |
429 | rs6000-*-lynx*) |
430 | COREFILE=lynx-core.lo | |
431 | ;; | |
e5231592 RS |
432 | changequote(,)dnl |
433 | rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*) | |
434 | changequote([,])dnl | |
eb1e0e80 NC |
435 | COREFILE=rs6000-core.lo |
436 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
437 | ;; | |
653f71ca | 438 | changequote(,)dnl |
83954261 | 439 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
440 | changequote([,])dnl |
441 | COREFILE=rs6000-core.lo | |
442 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
443 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
444 | # have c_impl as a member of struct core_dumpx | |
445 | AC_MSG_CHECKING([for c_impl in struct core_dumpx]) | |
5464f5a1 | 446 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1, |
83954261 AM |
447 | [Define if struct core_dumpx has member c_impl]) |
448 | AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) | |
653f71ca | 449 | ;; |
252b5132 RH |
450 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
451 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
452 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
453 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
454 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
455 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
456 | COREFILE='' ;; | |
252b5132 | 457 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 458 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 459 | s390*-*-*) COREFILE=trad-core.lo ;; |
a38b2659 MK |
460 | sh*-*-netbsd* | sh*-*-openbsd*) |
461 | COREFILE=netbsd-core.lo | |
462 | ;; | |
a9bf1154 | 463 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
464 | COREFILE=netbsd-core.lo |
465 | ;; | |
466 | tahoe-*-*) | |
467 | COREFILE=trad-core.lo | |
468 | TRAD_HEADER='"hosts/tahoe.h"' | |
469 | ;; | |
de6e5e1a NC |
470 | vax-*-netbsd* | vax-*-openbsd*) |
471 | COREFILE=netbsd-core.lo | |
472 | ;; | |
252b5132 RH |
473 | vax-*-ultrix2*) |
474 | COREFILE=trad-core.lo | |
475 | TRAD_HEADER='"hosts/vaxult2.h"' | |
476 | ;; | |
477 | vax-*-ultrix*) | |
478 | COREFILE=trad-core.lo | |
479 | TRAD_HEADER='"hosts/vaxult2.h"' | |
480 | ;; | |
ed84e695 | 481 | vax-*-linux-*) |
f8fc3443 NC |
482 | COREFILE=trad-core.lo |
483 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
484 | ;; | |
252b5132 RH |
485 | vax-*-*) |
486 | COREFILE=trad-core.lo | |
487 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
488 | ;; | |
8bc7f138 L |
489 | x86_64-*-linux*) |
490 | CORE_HEADER='"hosts/x86-64linux.h"' | |
491 | ;; | |
85cfd8d3 MK |
492 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
493 | COREFILE=netbsd-core.lo | |
494 | ;; | |
252b5132 RH |
495 | esac |
496 | ||
497 | case "$COREFILE" in | |
498 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
499 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
500 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
501 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
502 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
503 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
504 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
505 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
506 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
507 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
508 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
509 | esac | |
510 | ||
511 | # ELF corefile support has several flavors, but all of | |
512 | # them use something called <sys/procfs.h> | |
513 | AC_CHECK_HEADERS(sys/procfs.h) | |
514 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
515 | BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t) | |
7ee38065 | 516 | BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t) |
252b5132 | 517 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who) |
7ee38065 | 518 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who) |
252b5132 | 519 | BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t) |
f572a39d | 520 | BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t) |
7ee38065 | 521 | BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t) |
252b5132 | 522 | BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t) |
335e41d4 | 523 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo_t, pr_pid) |
7ee38065 | 524 | BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t) |
335e41d4 | 525 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prpsinfo32_t, pr_pid) |
252b5132 | 526 | BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t) |
335e41d4 | 527 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo_t, pr_pid) |
7ee38065 | 528 | BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t) |
335e41d4 | 529 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(psinfo32_t, pr_pid) |
252b5132 | 530 | BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t) |
f572a39d | 531 | BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t) |
252b5132 RH |
532 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context) |
533 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg) | |
16231b7b | 534 | BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_fpreg) |
16e9c715 | 535 | BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t) |
252b5132 RH |
536 | fi |
537 | fi | |
538 | AC_SUBST(COREFILE) | |
539 | AC_SUBST(COREFLAG) | |
8bc7f138 L |
540 | if test -n "$CORE_HEADER"; then |
541 | AC_DEFINE_UNQUOTED(CORE_HEADER, $CORE_HEADER, | |
542 | [Name of host specific core header file to include in elf.c.]) | |
543 | fi | |
3f9b03b5 AM |
544 | if test -n "$TRAD_HEADER"; then |
545 | AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER, | |
546 | [Name of host specific header file to include in trad-core.c.]) | |
547 | fi | |
252b5132 | 548 | |
51dec227 AM |
549 | # Check if linker supports --as-needed and --no-as-needed options |
550 | AC_CACHE_CHECK(linker --as-needed support, bfd_cv_ld_as_needed, | |
551 | [bfd_cv_ld_as_needed=no | |
552 | if $LD --help 2>/dev/null | grep as-needed > /dev/null; then | |
553 | bfd_cv_ld_as_needed=yes | |
554 | fi | |
555 | ]) | |
556 | ||
557 | LT_LIB_M | |
558 | ||
29670fb9 AM |
559 | # When building a shared libbfd, link against the pic version of libiberty |
560 | # so that apps that use libbfd won't need libiberty just to satisfy any | |
561 | # libbfd references. | |
562 | # We can't do that if a pic libiberty is unavailable since including non-pic | |
563 | # code would insert text relocations into libbfd. | |
564 | SHARED_LIBADD= | |
565 | SHARED_LDFLAGS= | |
566 | if test "$enable_shared" = "yes"; then | |
bb2a49f2 | 567 | changequote(,)dnl |
c5cb8442 | 568 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
bb2a49f2 | 569 | changequote([,])dnl |
c5cb8442 | 570 | if test -n "$x"; then |
29670fb9 | 571 | SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" |
c5cb8442 | 572 | fi |
29670fb9 AM |
573 | |
574 | # More hacks to build DLLs on Windows. | |
575 | case "${host}" in | |
576 | *-*-cygwin*) | |
577 | SHARED_LDFLAGS="-no-undefined" | |
578 | SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
39691762 | 579 | ;; |
29670fb9 | 580 | esac |
51dec227 AM |
581 | |
582 | if test -n "$SHARED_LIBADD"; then | |
583 | if test -n "$LIBM"; then | |
584 | if test x"$bfd_cv_ld_as_needed" = xyes; then | |
585 | # Link against libm only when needed. Put -lc, -lm inside -Wl | |
586 | # to stop libtool reordering these options. | |
587 | SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" | |
588 | else | |
589 | SHARED_LIBADD="$SHARED_LIBADD $LIBM" | |
590 | fi | |
591 | fi | |
592 | fi | |
29670fb9 AM |
593 | fi |
594 | AC_SUBST(SHARED_LDFLAGS) | |
595 | AC_SUBST(SHARED_LIBADD) | |
252b5132 RH |
596 | |
597 | # target stuff: | |
598 | ||
599 | # Canonicalize the secondary target names. | |
600 | if test -n "$enable_targets" ; then | |
601 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
602 | do | |
6d83c84b | 603 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
604 | if test -n "$result" ; then |
605 | canon_targets="$canon_targets $result" | |
606 | else | |
607 | # Allow targets that config.sub doesn't recognize, like "all". | |
608 | canon_targets="$canon_targets $targ" | |
609 | fi | |
610 | done | |
611 | fi | |
612 | ||
613 | all_targets=false | |
614 | defvec= | |
615 | selvecs= | |
08f74004 | 616 | assocvecs= |
252b5132 RH |
617 | selarchs= |
618 | TDEFINES= | |
619 | for targ in $target $canon_targets | |
620 | do | |
621 | if test "x$targ" = "xall"; then | |
622 | all_targets=true | |
08f74004 | 623 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
624 | else |
625 | . $srcdir/config.bfd | |
626 | if test "x$targ" = "x$target"; then | |
627 | defvec=$targ_defvec | |
628 | fi | |
629 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
630 | selarchs="$selarchs $targ_archs" | |
631 | TDEFINES="$TDEFINES $targ_cflags" | |
632 | fi | |
633 | done | |
634 | AC_SUBST(TDEFINES) | |
635 | ||
636 | # This processing still needs to be done if we're to decide properly whether | |
637 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
638 | # the default or any other explicitly requested target requires it; it | |
639 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 640 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
641 | # used. |
642 | ||
643 | # uniq the default and selected vectors in all the configured targets. | |
644 | f="" | |
645 | for i in $selvecs ; do | |
646 | case " $f " in | |
647 | *" $i "*) ;; | |
648 | *) f="$f $i" ;; | |
649 | esac | |
650 | done | |
651 | selvecs="$f" | |
652 | ||
653 | ||
08f74004 AM |
654 | # uniq the associated vectors in all the configured targets. |
655 | f="" | |
656 | for i in $assocvecs ; do | |
657 | case " $f " in | |
658 | *" $i "*) ;; | |
659 | *) f="$f $i" ;; | |
660 | esac | |
661 | done | |
662 | assocvecs="$f" | |
663 | ||
664 | ||
252b5132 RH |
665 | # uniq the architectures in all the configured targets. |
666 | f="" | |
667 | for i in $selarchs ; do | |
668 | case " $f " in | |
669 | *" $i "*) ;; | |
670 | *) f="$f $i" ;; | |
671 | esac | |
672 | done | |
673 | selarchs="$f" | |
674 | ||
675 | # Target backend .o files. | |
676 | tb= | |
677 | ||
ea7a63de | 678 | elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo |
6de2ae4a | 679 | elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
680 | |
681 | for vec in $selvecs | |
682 | do | |
69263e90 | 683 | target_size=32 |
252b5132 RH |
684 | case "$vec" in |
685 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
686 | # with the two vector lists in targets.c. For the same reason, |
687 | # use one entry per line, even though this leads to long lines. | |
252b5132 | 688 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; |
341ca622 | 689 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
690 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
691 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
692 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 693 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
694 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
695 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
696 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
697 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
7148cc28 NC |
698 | arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; |
699 | arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; | |
700 | arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
701 | arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
dc810e39 AM |
702 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; |
703 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
704 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
705 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
706 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
707 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
708 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
709 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
710 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
92dd4511 | 711 | bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
73c3cd1c | 712 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 713 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
0f64bb02 | 714 | bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
48d502e1 | 715 | bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
dc810e39 | 716 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 717 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
b38cadfb NC |
718 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
719 | bfd_elf32_bigarm_nacl_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
8059fb19 | 720 | bfd_elf32_bigarm_symbian_vec) |
b38cadfb | 721 | tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
8059fb19 | 722 | bfd_elf32_bigarm_vxworks_vec) |
b38cadfb | 723 | tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
0a44bf69 RS |
724 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
725 | bfd_elf32_bigmips_vxworks_vec) | |
726 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
e202fa84 | 727 | bfd_elf32_bigmoxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; |
36591ba1 | 728 | bfd_elf32_bignios2_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; |
3d3d428f | 729 | bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; |
0949843d | 730 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 731 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
8059fb19 | 732 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
733 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
734 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 735 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
cfb8c092 | 736 | bfd_elf32_epiphany_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;; |
252b5132 | 737 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 738 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 739 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
e01b0e69 | 740 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 741 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 742 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 743 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 744 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
5a68afcf RM |
745 | bfd_elf32_i386_sol2_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; |
746 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; | |
747 | bfd_elf32_i386_nacl_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; | |
748 | bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; | |
749 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-ifunc.lo elf-nacl.lo elf-vxworks.lo elf32.lo $elf" ;; | |
9d751335 | 750 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 751 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 752 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
cbe79dfe TG |
753 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; |
754 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf";; | |
cf88bb9f | 755 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 756 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
84e94c90 NC |
757 | bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; |
758 | bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; | |
252b5132 | 759 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 760 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 761 | bfd_elf32_littlearm_symbian_vec) |
b38cadfb | 762 | tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
4e7fd91e | 763 | bfd_elf32_littlearm_vxworks_vec) |
b38cadfb NC |
764 | tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
765 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
766 | bfd_elf32_littlearm_nacl_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
0a44bf69 RS |
767 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
768 | bfd_elf32_littlemips_vxworks_vec) | |
769 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
e202fa84 | 770 | bfd_elf32_littlemoxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; |
36591ba1 | 771 | bfd_elf32_littlenios2_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; |
e729279b | 772 | bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; |
252b5132 | 773 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
774 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
775 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
776 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
777 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
778 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
779 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
780 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
781 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
782 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
d9352518 DB |
783 | bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; |
784 | bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; | |
a3c62988 | 785 | bfd_elf32_metag_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;; |
f23200ad | 786 | bfd_elf32_microblazeel_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; |
7ba29e2a | 787 | bfd_elf32_microblaze_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; |
252b5132 RH |
788 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; |
789 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
d031aafb | 790 | bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; |
2469cfa2 | 791 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
13761a11 | 792 | bfd_elf32_msp430_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
0a44bf69 RS |
793 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
794 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
aeffff67 RS |
795 | bfd_elf32_ntradbigmips_vec | bfd_elf32_ntradbigmips_freebsd_vec) |
796 | tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
797 | bfd_elf32_ntradlittlemips_vec | bfd_elf32_ntradlittlemips_freebsd_vec) | |
798 | tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
35c08157 KLC |
799 | bfd_elf32_nds32be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; |
800 | bfd_elf32_nds32le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; | |
801 | bfd_elf32_nds32belin_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; | |
802 | bfd_elf32_nds32lelin_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; | |
b3baf5d0 | 803 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 804 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
805 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
806 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
9d8504b1 PB |
807 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
808 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
7b8e7dad | 809 | bfd_elf32_powerpc_freebsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
9d8504b1 | 810 | bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
99c513f6 | 811 | bfd_elf32_rl78_vec) tb="$tb elf32-rl78.lo $elf" ;; |
c7927a3c NC |
812 | bfd_elf32_rx_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
813 | bfd_elf32_rx_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; | |
4c422395 | 814 | bfd_elf32_rx_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
a85d7ed0 | 815 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
02b1cb40 NC |
816 | bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;; |
817 | bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;; | |
eb1e0e80 NC |
818 | # FIXME: We include cofflink.lo not because it's needed for |
819 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
820 | # which needs it but does not list it. Should be fixed in right place. | |
55e6e397 RS |
821 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
822 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
823 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
824 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
825 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
826 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
827 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
8e45593f | 828 | bfd_elf32_shbfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 | 829 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
8e45593f | 830 | bfd_elf32_shfd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 RS |
831 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; |
832 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
833 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
834 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
835 | bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
7b12cedc | 836 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 | 837 | bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; |
910600e9 | 838 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
1360ba76 | 839 | bfd_elf32_sparc_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
910600e9 | 840 | bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
e9f53129 | 841 | bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; |
40b36596 JM |
842 | bfd_elf32_tic6x_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; |
843 | bfd_elf32_tic6x_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
2a616379 BS |
844 | bfd_elf32_tic6x_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; |
845 | bfd_elf32_tic6x_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
846 | bfd_elf32_tic6x_elf_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
847 | bfd_elf32_tic6x_elf_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
fb6cedde WL |
848 | bfd_elf32_tilegx_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; |
849 | bfd_elf32_tilegx_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; | |
aa137e4d | 850 | bfd_elf32_tilepro_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;; |
aeffff67 RS |
851 | bfd_elf32_tradbigmips_vec | bfd_elf32_tradbigmips_freebsd_vec) |
852 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
853 | bfd_elf32_tradlittlemips_vec | bfd_elf32_tradlittlemips_freebsd_vec) | |
854 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 855 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 856 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
de863c74 | 857 | bfd_elf32_v850_rh850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 858 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 859 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
d70c5fc7 | 860 | bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; |
f6c1a2d5 | 861 | bfd_elf32_xgate_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;; |
e0001a05 NC |
862 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
863 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 864 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 | 865 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
1419bbe5 WN |
866 | bfd_elf64_bigaarch64_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; |
867 | bfd_elf32_bigaarch64_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; | |
dc810e39 | 868 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
0a44bf69 | 869 | 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 ;; |
dc810e39 AM |
870 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
871 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
cbe79dfe TG |
872 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; |
873 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
874 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
202e2356 | 875 | bfd_elf64_ia64_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 ;; |
1419bbe5 WN |
876 | bfd_elf64_littleaarch64_vec)tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; |
877 | bfd_elf32_littleaarch64_vec)tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; | |
dc810e39 | 878 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
0a44bf69 | 879 | 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 ;; |
3c3bdf30 | 880 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
881 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
882 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
7b8e7dad | 883 | bfd_elf64_powerpc_freebsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 | 884 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; |
341ca622 AM |
885 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
886 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
887 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
888 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
889 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
890 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
910600e9 | 891 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
71a75f6f | 892 | bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
1360ba76 | 893 | bfd_elf64_sparc_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
fb6cedde WL |
894 | bfd_elf64_tilegx_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; |
895 | bfd_elf64_tilegx_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; | |
aeffff67 RS |
896 | bfd_elf64_tradbigmips_vec | bfd_elf64_tradbigmips_freebsd_vec) |
897 | tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
898 | bfd_elf64_tradlittlemips_vec | bfd_elf64_tradlittlemips_freebsd_vec) | |
899 | tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
5a68afcf RM |
900 | bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; |
901 | bfd_elf64_x86_64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
902 | bfd_elf64_x86_64_sol2_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
903 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
904 | bfd_elf32_x86_64_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;; | |
905 | bfd_elf32_x86_64_nacl_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo elf32.lo $elf"; target_size=64 ;; | |
906 | bfd_elf64_l1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
907 | bfd_elf64_l1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
908 | bfd_elf64_k1om_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
909 | bfd_elf64_k1om_freebsd_vec) tb="$tb elf64-x86-64.lo elf-ifunc.lo elf-nacl.lo elf64.lo $elf"; target_size=64 ;; | |
3c3bdf30 | 910 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
911 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
912 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
913 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
914 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 915 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 916 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 917 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 918 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
919 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
920 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
921 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
922 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
923 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
924 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
925 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
926 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
927 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
928 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
929 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
930 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
99ad8390 | 931 | x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;; |
252b5132 RH |
932 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; |
933 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
934 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
935 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
936 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
937 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 938 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
939 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
940 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
941 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
942 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
99ad8390 NC |
943 | x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; |
944 | x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; | |
252b5132 RH |
945 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
946 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
947 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
948 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
949 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
950 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
951 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
952 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
953 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
252b5132 | 954 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; |
252b5132 RH |
955 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
956 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 957 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 958 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
93509525 KD |
959 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
960 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
961 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
154a1ee5 | 962 | mach_o_i386_vec) tb="$tb mach-o-i386.lo" ;; |
618b7301 | 963 | mach_o_x86_64_vec) tb="$tb mach-o-x86-64.lo" ;; |
277d1b5e ILT |
964 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
965 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
966 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
967 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
968 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
969 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 970 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 971 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 972 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 973 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 974 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 975 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 976 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 977 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
978 | pef_vec) tb="$tb pef.lo" ;; |
979 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 980 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
ce3c775b | 981 | plugin_vec) tb="$tb plugin.lo" ;; |
6768c14a | 982 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 983 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 984 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 985 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 986 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 987 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 988 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 989 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 990 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
991 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
992 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 993 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 994 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
995 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
996 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
997 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
998 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
999 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 1000 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 1001 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
1002 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
1003 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
1004 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
1005 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
1006 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
1007 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
1008 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
1009 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 1010 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 1011 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 1012 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 1013 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 1014 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 1015 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 1016 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 1017 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 1018 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 1019 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 1020 | versados_vec) tb="$tb versados.lo" ;; |
95e34ef7 | 1021 | vms_alpha_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; |
4b544b64 | 1022 | vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; |
252b5132 RH |
1023 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; |
1024 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
3c9b82ba | 1025 | z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; |
c0524131 | 1026 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;; |
252b5132 | 1027 | |
341ca622 AM |
1028 | # These appear out of order in targets.c |
1029 | srec_vec) tb="$tb srec.lo" ;; | |
1030 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
1031 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
1032 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
1033 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
1034 | ||
252b5132 RH |
1035 | "") ;; |
1036 | *) AC_MSG_ERROR(*** unknown target vector $vec) ;; | |
1037 | esac | |
69263e90 AM |
1038 | |
1039 | if test ${target_size} = 64; then | |
1040 | target64=true | |
1041 | fi | |
1042 | if test x"${vec}" = x"${defvec}"; then | |
1043 | bfd_default_target_size=${target_size} | |
1044 | fi | |
252b5132 RH |
1045 | done |
1046 | ||
1047 | # Target architecture .o files. | |
1048 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
1049 | # filesystems. | |
d031aafb | 1050 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` |
252b5132 RH |
1051 | |
1052 | # Weed out duplicate .o files. | |
1053 | f="" | |
1054 | for i in $tb ; do | |
1055 | case " $f " in | |
1056 | *" $i "*) ;; | |
1057 | *) f="$f $i" ;; | |
1058 | esac | |
1059 | done | |
1060 | tb="$f" | |
1061 | ||
1062 | f="" | |
1063 | for i in $ta ; do | |
1064 | case " $f " in | |
1065 | *" $i "*) ;; | |
1066 | *) f="$f $i" ;; | |
1067 | esac | |
1068 | done | |
1069 | ta="$f" | |
1070 | ||
1071 | bfd_backends="$tb" | |
1072 | bfd_machines="$ta" | |
1073 | ||
1074 | if test x${all_targets} = xtrue ; then | |
1075 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
1076 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
1077 | selvecs= | |
7256a114 | 1078 | havevecs=-DHAVE_all_vecs |
252b5132 | 1079 | selarchs= |
08f74004 AM |
1080 | test -n "$assocvecs" && |
1081 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
1082 | else # all_targets is true |
1083 | # Only set these if they will be nonempty, for the clever echo. | |
1084 | havevecs= | |
08f74004 | 1085 | assocvecs= |
252b5132 RH |
1086 | test -n "$selvecs" && |
1087 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
1088 | test -n "$selvecs" && | |
1089 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
1090 | test -n "$selarchs" && | |
1091 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
1092 | fi # all_targets is true | |
1093 | ||
1094 | case ${host64}-${target64}-${want64} in | |
1095 | *true*) | |
1096 | wordsize=64 | |
21e40a48 | 1097 | bfd64_libs='$(BFD64_LIBS)' |
252b5132 | 1098 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 1099 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
252b5132 RH |
1100 | AC_MSG_WARN([You have requested a 64 bit BFD configuration, but]) |
1101 | AC_MSG_WARN([your compiler may not have a 64 bit integral type]) | |
1102 | fi | |
966abd70 HPN |
1103 | if test -n "$GCC" ; then |
1104 | bad_64bit_gcc=no; | |
1105 | AC_MSG_CHECKING([for gcc version with buggy 64-bit support]) | |
1106 | # Add more tests for gcc versions with non-working 64-bit support here. | |
1107 | AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:], | |
1108 | bad_64bit_gcc=yes; | |
1109 | AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]), | |
1110 | AC_MSG_RESULT(no)) | |
1111 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 | 1112 | AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration]) |
966abd70 HPN |
1113 | fi |
1114 | fi | |
252b5132 RH |
1115 | ;; |
1116 | false-false-false) | |
1117 | wordsize=32 | |
1118 | all_backends='$(BFD32_BACKENDS)' | |
1119 | ;; | |
1120 | esac | |
1121 | ||
1122 | AC_SUBST(wordsize) | |
21e40a48 | 1123 | AC_SUBST(bfd64_libs) |
252b5132 RH |
1124 | AC_SUBST(all_backends) |
1125 | AC_SUBST(bfd_backends) | |
1126 | AC_SUBST(bfd_machines) | |
69263e90 | 1127 | AC_SUBST(bfd_default_target_size) |
252b5132 | 1128 | |
ce3c775b NC |
1129 | if test "$plugins" = "yes"; then |
1130 | supports_plugins=1 | |
1131 | else | |
1132 | supports_plugins=0 | |
1133 | fi | |
1134 | AC_SUBST(supports_plugins) | |
3cf9e6c4 | 1135 | AC_SUBST(lt_cv_dlopen_libs) |
ce3c775b | 1136 | |
1012372a AC |
1137 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
1138 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
1139 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
1140 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
1141 | # upward compatible. | |
2e6f4fae | 1142 | AC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64) |
1012372a | 1143 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then |
2ba49b59 | 1144 | AC_CHECK_SIZEOF(off_t) |
1012372a | 1145 | fi |
ccba357f AM |
1146 | AC_MSG_CHECKING([file_ptr type]) |
1147 | bfd_file_ptr="long" | |
1148 | bfd_ufile_ptr="unsigned long" | |
1149 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
1150 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
1151 | bfd_file_ptr=BFD_HOST_64_BIT |
1152 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
1153 | fi | |
1154 | AC_MSG_RESULT($bfd_file_ptr) | |
1155 | AC_SUBST(bfd_file_ptr) | |
1156 | AC_SUBST(bfd_ufile_ptr) | |
1157 | ||
1158 | ||
252b5132 RH |
1159 | tdefaults="" |
1160 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
1161 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 1162 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 | 1163 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
252b5132 | 1164 | AC_SUBST(tdefaults) |
7256a114 | 1165 | AC_SUBST(havevecs) |
252b5132 RH |
1166 | |
1167 | dnl AC_CHECK_HEADERS(sys/mman.h) | |
1168 | AC_FUNC_MMAP | |
1169 | AC_CHECK_FUNCS(madvise mprotect) | |
1170 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
1171 | true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;; | |
1172 | esac | |
1173 | ||
1174 | rm -f doc/config.status | |
5464f5a1 | 1175 | AC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in]) |
20e95c23 DJ |
1176 | |
1177 | dnl We need this duplication, even though we use AM_PO_SUBDIRS, because of | |
1178 | dnl our two separate POTFILES. Yuck. | |
1179 | AC_CONFIG_COMMANDS([default], | |
1180 | [[ | |
1181 | case "$srcdir" in | |
1182 | .) srcdirpre= ;; | |
1183 | *) srcdirpre='$(srcdir)/' ;; | |
1184 | esac | |
1185 | POFILES= | |
1186 | GMOFILES= | |
1187 | for lang in dummy $OBSOLETE_ALL_LINGUAS; do | |
1188 | if test $lang != dummy; then | |
1189 | POFILES="$POFILES $srcdirpre$lang.po" | |
1190 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
1191 | fi | |
1192 | done | |
1193 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ | |
1194 | -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ | |
1195 | -e "s,@POFILES@,$POFILES," \ | |
1196 | -e "s,@GMOFILES@,$GMOFILES," \ | |
1197 | po/Makefile.in > po/Makefile]],[[]]) | |
108a6f8e | 1198 | |
31dd3154 | 1199 | dnl Required by html, pdf, install-pdf and install-html |
108a6f8e CD |
1200 | AC_SUBST(datarootdir) |
1201 | AC_SUBST(docdir) | |
1202 | AC_SUBST(htmldir) | |
31dd3154 | 1203 | AC_SUBST(pdfdir) |
108a6f8e | 1204 | |
5464f5a1 | 1205 | AC_OUTPUT |