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