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