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