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