13d8817e4Smioddnl Process this file with autoconf to produce a configure script. 23d8817e4Smioddnl 33d8817e4Smiod 43d8817e4SmiodAC_PREREQ(2.59) 53d8817e4SmiodAC_INIT 63d8817e4SmiodAC_CONFIG_SRCDIR([libbfd.c]) 73d8817e4Smiod 83d8817e4SmiodAC_CANONICAL_TARGET 93d8817e4SmiodAC_ISC_POSIX 103d8817e4Smiod 113d8817e4SmiodAM_INIT_AUTOMAKE(bfd, 2.17) 123d8817e4Smiod 133d8817e4Smioddnl These must be called before AM_PROG_LIBTOOL, because it may want 143d8817e4Smioddnl to call AC_CHECK_PROG. 153d8817e4SmiodAC_CHECK_TOOL(AR, ar) 163d8817e4SmiodAC_CHECK_TOOL(RANLIB, ranlib, :) 173d8817e4Smiod 183d8817e4Smioddnl Default to a non shared library. This may be overridden by the 193d8817e4Smioddnl configure option --enable-shared. 203d8817e4SmiodAM_DISABLE_SHARED 213d8817e4Smiod 223d8817e4SmiodAM_PROG_LIBTOOL 233d8817e4Smiod 243d8817e4SmiodAC_ARG_ENABLE(64-bit-bfd, 253d8817e4Smiod[ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)], 263d8817e4Smiod[case "${enableval}" in 273d8817e4Smiod yes) want64=true ;; 283d8817e4Smiod no) want64=false ;; 293d8817e4Smiod *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;; 303d8817e4Smiodesac],[want64=false])dnl 313d8817e4SmiodAC_ARG_ENABLE(targets, 323d8817e4Smiod[ --enable-targets alternative target configurations], 333d8817e4Smiod[case "${enableval}" in 343d8817e4Smiod yes | "") AC_MSG_ERROR([enable-targets option must specify target names or 'all']) 353d8817e4Smiod ;; 363d8817e4Smiod no) enable_targets= ;; 373d8817e4Smiod *) enable_targets=$enableval ;; 383d8817e4Smiodesac])dnl 393d8817e4SmiodAC_ARG_ENABLE(commonbfdlib, 403d8817e4Smiod[ --enable-commonbfdlib build shared BFD/opcodes/libiberty library], 413d8817e4Smiod[case "${enableval}" in 423d8817e4Smiod yes) commonbfdlib=true ;; 433d8817e4Smiod no) commonbfdlib=false ;; 443d8817e4Smiod *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;; 453d8817e4Smiodesac])dnl 463d8817e4SmiodAC_ARG_WITH(mmap, 473d8817e4Smiod[ --with-mmap try using mmap for BFD input files if available], 483d8817e4Smiod[case "${withval}" in 493d8817e4Smiod yes) want_mmap=true ;; 503d8817e4Smiod no) want_mmap=false ;; 513d8817e4Smiod *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;; 523d8817e4Smiodesac],[want_mmap=false])dnl 533d8817e4Smiod 543d8817e4SmiodAC_ARG_ENABLE(secureplt, 553d8817e4Smiod[ --enable-secureplt Default to creating read-only plt entries], 563d8817e4Smiod[case "${enableval}" in 573d8817e4Smiod yes) use_secureplt=true ;; 583d8817e4Smiod no) use_secureplt=false ;; 593d8817e4Smiod *) AC_MSG_ERROR(bad value ${enableval} for secureplt option) ;; 60*a2844719Smiodesac],[use_secureplt=true])dnl 613d8817e4Smiodif test $use_secureplt = true; then 623d8817e4Smiod AC_DEFINE(USE_SECUREPLT, 1, 633d8817e4Smiod [Define if we should default to creating read-only plt entries]) 643d8817e4Smiodfi 653d8817e4Smiod 663d8817e4SmiodAM_BINUTILS_WARNINGS 673d8817e4Smiod 683d8817e4SmiodAM_CONFIG_HEADER(config.h:config.in) 693d8817e4Smiod 703d8817e4Smiodif test -z "$target" ; then 713d8817e4Smiod AC_MSG_ERROR(Unrecognized target system type; please check config.sub.) 723d8817e4Smiodfi 733d8817e4Smiod 743d8817e4SmiodAM_MAINTAINER_MODE 753d8817e4SmiodAM_INSTALL_LIBBFD 763d8817e4SmiodAC_EXEEXT 773d8817e4Smiod 783d8817e4Smiodhost64=false 793d8817e4Smiodtarget64=false 803d8817e4Smiodbfd_default_target_size=32 813d8817e4Smiod 823d8817e4Smiod# host stuff: 833d8817e4Smiod 843d8817e4SmiodAC_PROG_CC 853d8817e4SmiodAC_GNU_SOURCE 863d8817e4Smiod 873d8817e4SmiodALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi" 883d8817e4SmiodCY_GNU_GETTEXT 893d8817e4Smiod 903d8817e4Smiod# Permit host specific settings. 913d8817e4Smiod. ${srcdir}/configure.host 923d8817e4Smiod 933d8817e4SmiodAC_SUBST(HDEFINES) 943d8817e4SmiodAC_PROG_INSTALL 953d8817e4Smiod 963d8817e4SmiodBFD_HOST_64BIT_LONG=0 973d8817e4SmiodBFD_HOST_LONG_LONG=0 983d8817e4SmiodBFD_HOST_64_BIT_DEFINED=0 993d8817e4SmiodBFD_HOST_64_BIT= 1003d8817e4SmiodBFD_HOST_U_64_BIT= 1013d8817e4Smiod 1023d8817e4SmiodAC_MSG_CHECKING([for long long]) 1033d8817e4SmiodAC_CACHE_VAL(bfd_cv_has_long_long, 1043d8817e4Smiod[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[]], [[unsigned long long ll = 18446744073709551615ULL;]])],[bfd_cv_has_long_long=yes],[bfd_cv_has_long_long=no])]) 1053d8817e4SmiodAC_MSG_RESULT($bfd_cv_has_long_long) 1063d8817e4Smiodif test $bfd_cv_has_long_long = yes; then 1073d8817e4Smiod BFD_HOST_LONG_LONG=1 1083d8817e4Smiod AC_CHECK_SIZEOF(long long) 1093d8817e4Smiodfi 1103d8817e4Smiod 1113d8817e4SmiodAC_CHECK_SIZEOF(long) 1123d8817e4Smiodif test "x${ac_cv_sizeof_long}" = "x8"; then 1133d8817e4Smiod host64=true 1143d8817e4Smiod BFD_HOST_64BIT_LONG=1 1153d8817e4Smiod test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" 1163d8817e4Smiod test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" 1173d8817e4Smiodelif test "x${ac_cv_sizeof_long_long}" = "x8"; then 1183d8817e4Smiod test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" 1193d8817e4Smiod test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" 1203d8817e4Smiodfi 1213d8817e4Smiod 1223d8817e4Smiodif test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then 1233d8817e4Smiod BFD_HOST_64_BIT_DEFINED=1 1243d8817e4Smiod BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" 1253d8817e4Smiod BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" 1263d8817e4Smiodfi 1273d8817e4Smiod 1283d8817e4SmiodAC_SUBST(BFD_HOST_64BIT_LONG) 1293d8817e4SmiodAC_SUBST(BFD_HOST_LONG_LONG) 1303d8817e4SmiodAC_SUBST(BFD_HOST_64_BIT_DEFINED) 1313d8817e4SmiodAC_SUBST(BFD_HOST_64_BIT) 1323d8817e4SmiodAC_SUBST(BFD_HOST_U_64_BIT) 1333d8817e4Smiod 1343d8817e4SmiodBFD_CC_FOR_BUILD 1353d8817e4Smiod 1363d8817e4SmiodAC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h) 1373d8817e4SmiodAC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h) 1383d8817e4SmiodAC_HEADER_TIME 1393d8817e4SmiodAC_HEADER_DIRENT 1403d8817e4SmiodACX_HEADER_STRING 1413d8817e4SmiodAC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid) 1423d8817e4SmiodAC_CHECK_FUNCS(strtoull) 1433d8817e4Smiod 1443d8817e4SmiodAC_CHECK_DECLS(basename) 1453d8817e4SmiodAC_CHECK_DECLS(ftello) 1463d8817e4SmiodAC_CHECK_DECLS(ftello64) 1473d8817e4SmiodAC_CHECK_DECLS(fseeko) 1483d8817e4SmiodAC_CHECK_DECLS(fseeko64) 1493d8817e4Smiod 1503d8817e4SmiodBFD_BINARY_FOPEN 1513d8817e4Smiod 1523d8817e4SmiodAC_CHECK_DECLS(ffs) 1533d8817e4SmiodAC_CHECK_DECLS(free) 1543d8817e4SmiodAC_CHECK_DECLS(getenv) 1553d8817e4SmiodAC_CHECK_DECLS(malloc) 1563d8817e4SmiodAC_CHECK_DECLS(realloc) 1573d8817e4SmiodAC_CHECK_DECLS(stpcpy) 1583d8817e4SmiodAC_CHECK_DECLS(strstr) 1593d8817e4SmiodAC_CHECK_DECLS(snprintf) 1603d8817e4SmiodAC_CHECK_DECLS(vsnprintf) 1613d8817e4Smiod 1623d8817e4Smiod# If we are configured native, pick a core file support file. 1633d8817e4SmiodCOREFILE= 1643d8817e4SmiodCOREFLAG= 1653d8817e4SmiodTRAD_HEADER= 1663d8817e4Smiodif test "${target}" = "${host}"; then 1673d8817e4Smiod case "${host}" in 1683d8817e4Smiod alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) 1693d8817e4Smiod COREFILE='' 1703d8817e4Smiod ;; 1713d8817e4Smiod alpha*-*-linux-*) 1723d8817e4Smiod COREFILE=trad-core.lo 1733d8817e4Smiod TRAD_HEADER='"hosts/alphalinux.h"' 1743d8817e4Smiod ;; 1753d8817e4Smiod alpha*-*-netbsd* | alpha*-*-openbsd*) 1763d8817e4Smiod COREFILE=netbsd-core.lo 1773d8817e4Smiod ;; 1783d8817e4Smiod alpha*-*-*) COREFILE=osf-core.lo ;; 1793d8817e4Smiod arm-*-freebsd* | arm-*-kfreebsd*-gnu) 1803d8817e4Smiod COREFILE='' ;; 181d2386abeSmiod arm-*-netbsd* | arm-*-openbsd*) 182d2386abeSmiod COREFILE=netbsd-core.lo 183d2386abeSmiod ;; 1843d8817e4Smiod arm-*-riscix) COREFILE=trad-core.lo ;; 1853d8817e4Smiod hppa*-*-hpux*) COREFILE=hpux-core.lo ;; 1863d8817e4Smiod hppa*-*-hiux*) COREFILE=hpux-core.lo ;; 1873d8817e4Smiod hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; 1883d8817e4Smiod hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" 1893d8817e4Smiod COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; 1903d8817e4Smiod hppa*-*-netbsd* | hppa*-*-openbsd*) 1913d8817e4Smiod COREFILE=netbsd-core.lo 1923d8817e4Smiod ;; 1933d8817e4Smiod 1943d8817e4Smiod i370-*-*) 1953d8817e4Smiod COREFILE=trad-core.lo 1963d8817e4Smiod TRAD_HEADER='"hosts/i370linux.h"' 1973d8817e4Smiod ;; 1983d8817e4Smiod 1993d8817e4Smiodchangequote(,)dnl 2003d8817e4Smiod i[3-7]86-sequent-bsd*) 2013d8817e4Smiodchangequote([,])dnl 2023d8817e4Smiod COREFILE=trad-core.lo 2033d8817e4Smiod TRAD_HEADER='"hosts/symmetry.h"' 2043d8817e4Smiod ;; 2053d8817e4Smiodchangequote(,)dnl 2063d8817e4Smiod i[3-7]86-sequent-sysv4*) ;; 2073d8817e4Smiod i[3-7]86-sequent-sysv*) 2083d8817e4Smiodchangequote([,])dnl 2093d8817e4Smiod COREFILE=trad-core.lo 2103d8817e4Smiod TRAD_HEADER='"hosts/symmetry.h"' 2113d8817e4Smiod ;; 2123d8817e4Smiodchangequote(,)dnl 2133d8817e4Smiod i[3-7]86-*-bsdi) 2143d8817e4Smiodchangequote([,])dnl 2153d8817e4Smiod COREFILE= 2163d8817e4Smiod ;; 2173d8817e4Smiodchangequote(,)dnl 2183d8817e4Smiod 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*) 2193d8817e4Smiodchangequote([,])dnl 2203d8817e4Smiod COREFILE=trad-core.lo 2213d8817e4Smiod TRAD_HEADER='"hosts/i386bsd.h"' 2223d8817e4Smiod ;; 2233d8817e4Smiodchangequote(,)dnl 2243d8817e4Smiod i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) 2253d8817e4Smiodchangequote([,])dnl 2263d8817e4Smiod COREFILE='' 2273d8817e4Smiod TRAD_HEADER='"hosts/i386bsd.h"' 2283d8817e4Smiod ;; 2293d8817e4Smiodchangequote(,)dnl 2303d8817e4Smiod i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) 2313d8817e4Smiodchangequote([,])dnl 2323d8817e4Smiod COREFILE=netbsd-core.lo 2333d8817e4Smiod ;; 2343d8817e4Smiodchangequote(,)dnl 2353d8817e4Smiod i[3-7]86-esix-sysv3*) 2363d8817e4Smiodchangequote([,])dnl 2373d8817e4Smiod COREFILE=trad-core.lo 2383d8817e4Smiod TRAD_HEADER='"hosts/esix.h"' 2393d8817e4Smiod ;; 2403d8817e4Smiodchangequote(,)dnl 2413d8817e4Smiod i[3-7]86-*-sco3.2v5*) 2423d8817e4Smiodchangequote([,])dnl 2433d8817e4Smiod COREFILE=sco5-core.lo 2443d8817e4Smiod ;; 2453d8817e4Smiodchangequote(,)dnl 2463d8817e4Smiod i[3-7]86-*-sco* | i[3-7]86-*-isc*) 2473d8817e4Smiodchangequote([,])dnl 2483d8817e4Smiod COREFILE=trad-core.lo 2493d8817e4Smiod TRAD_HEADER='"hosts/i386sco.h"' 2503d8817e4Smiod ;; 2513d8817e4Smiodchangequote(,)dnl 2523d8817e4Smiod i[3-7]86-*-mach3*) 2533d8817e4Smiodchangequote([,])dnl 2543d8817e4Smiod COREFILE=trad-core.lo 2553d8817e4Smiod TRAD_HEADER='"hosts/i386mach3.h"' 2563d8817e4Smiod ;; 2573d8817e4Smiodchangequote(,)dnl 2583d8817e4Smiod i[3-7]86-*-linux-*) 2593d8817e4Smiodchangequote([,])dnl 2603d8817e4Smiod COREFILE=trad-core.lo 2613d8817e4Smiod TRAD_HEADER='"hosts/i386linux.h"' 2623d8817e4Smiod ;; 2633d8817e4Smiodchangequote(,)dnl 2643d8817e4Smiod i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; 2653d8817e4Smiod i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; 2663d8817e4Smiodchangequote([,])dnl 2673d8817e4Smiod i860-*-mach3* | i860-*-osf1*) 2683d8817e4Smiod COREFILE=trad-core.lo 2693d8817e4Smiod TRAD_HEADER='"hosts/i860mach3.h"' 2703d8817e4Smiod ;; 2713d8817e4Smiod mips-*-netbsd* | mips*-*-openbsd*) 2723d8817e4Smiod COREFILE=netbsd-core.lo 2733d8817e4Smiod ;; 2743d8817e4Smiod mips-dec-*) 2753d8817e4Smiod COREFILE=trad-core.lo 2763d8817e4Smiod TRAD_HEADER='"hosts/decstation.h"' 2773d8817e4Smiod ;; 2783d8817e4Smiod mips-sgi-irix4*) COREFILE=irix-core.lo ;; 2793d8817e4Smiod mips-sgi-irix5*) COREFILE=irix-core.lo ;; 2803d8817e4Smiod mips-sgi-irix6*) COREFILE=irix-core.lo ;; 2813d8817e4Smiod mips-*-sysv4*) ;; 2823d8817e4Smiod mips-*-sysv* | mips-*-riscos*) 2833d8817e4Smiod COREFILE=trad-core.lo 2843d8817e4Smiod TRAD_HEADER='"hosts/riscos.h"' 2853d8817e4Smiod ;; 2863d8817e4Smiod mips-sony-bsd*) 2873d8817e4Smiod COREFILE=trad-core.lo 2883d8817e4Smiod TRAD_HEADER='"hosts/news-mips.h"' 2893d8817e4Smiod ;; 2903d8817e4Smiod m68*-bull*-sysv*) 2913d8817e4Smiod COREFILE=trad-core.lo 2923d8817e4Smiod TRAD_HEADER='"hosts/dpx2.h"' 2933d8817e4Smiod ;; 2943d8817e4Smiod m68*-hp-hpux*) COREFILE=hpux-core.lo ;; 2953d8817e4Smiod m68*-hp-bsd*) 2963d8817e4Smiod COREFILE=trad-core.lo 2973d8817e4Smiod TRAD_HEADER='"hosts/hp300bsd.h"' 2983d8817e4Smiod ;; 2993d8817e4Smiod m68*-*-linux-*) 3003d8817e4Smiod COREFILE=trad-core.lo 3013d8817e4Smiod TRAD_HEADER='"hosts/m68klinux.h"' 3023d8817e4Smiod ;; 3033d8817e4Smiod m68*-motorola-sysv*) 3043d8817e4Smiod COREFILE=trad-core.lo 3053d8817e4Smiod TRAD_HEADER='"hosts/delta68.h"' 3063d8817e4Smiod ;; 3073d8817e4Smiod m68*-sony-*) 3083d8817e4Smiod COREFILE=trad-core.lo 3093d8817e4Smiod TRAD_HEADER='"hosts/news.h"' 3103d8817e4Smiod ;; 3113d8817e4Smiod m68*-*-netbsd* | m68*-*-openbsd*) 3123d8817e4Smiod COREFILE=netbsd-core.lo 3133d8817e4Smiod ;; 3143d8817e4Smiod m68*-apple-aux*) 3153d8817e4Smiod COREFILE=trad-core.lo 3163d8817e4Smiod TRAD_HEADER='"hosts/m68kaux.h"' 3173d8817e4Smiod ;; 3183d8817e4Smiod m88*-*-sysv4*) 3193d8817e4Smiod ;; 3203d8817e4Smiod m88*-motorola-sysv*) 3213d8817e4Smiod COREFILE=ptrace-core.lo 3223d8817e4Smiod ;; 3233d8817e4Smiod m88*-*-mach3*) 3243d8817e4Smiod COREFILE=trad-core.lo 3253d8817e4Smiod TRAD_HEADER='"hosts/m88kmach3.h"' 3263d8817e4Smiod ;; 3273d8817e4Smiod m88*-*-openbsd*) 3283d8817e4Smiod COREFILE=netbsd-core.lo 3293d8817e4Smiod ;; 3303d8817e4Smiod ns32k-pc532-mach) 3313d8817e4Smiod COREFILE=trad-core.lo 3323d8817e4Smiod TRAD_HEADER='"hosts/pc532mach.h"' 3333d8817e4Smiod ;; 3343d8817e4Smiod ns32k-*-netbsd* | ns32k-*-openbsd*) 3353d8817e4Smiod COREFILE=netbsd-core.lo 3363d8817e4Smiod ;; 3373d8817e4Smiod rs6000-*-lynx*) 3383d8817e4Smiod COREFILE=lynx-core.lo 3393d8817e4Smiod ;; 3403d8817e4Smiod rs6000-*-aix5.* | powerpc-*-aix5.*) 3413d8817e4Smiod COREFILE=rs6000-core.lo 3423d8817e4Smiod COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" 3433d8817e4Smiod ;; 3443d8817e4Smiodchangequote(,)dnl 3453d8817e4Smiod rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) 3463d8817e4Smiodchangequote([,])dnl 3473d8817e4Smiod COREFILE=rs6000-core.lo 3483d8817e4Smiod COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" 3493d8817e4Smiod # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE 3503d8817e4Smiod # have c_impl as a member of struct core_dumpx 3513d8817e4Smiod AC_MSG_CHECKING([for c_impl in struct core_dumpx]) 3523d8817e4Smiod AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <core.h>]], [[struct core_dumpx c; c.c_impl = 0;]])],[AC_DEFINE(HAVE_ST_C_IMPL, 1, 3533d8817e4Smiod [Define if struct core_dumpx has member c_impl]) 3543d8817e4Smiod AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)]) 3553d8817e4Smiod ;; 3563d8817e4Smiod rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; 3573d8817e4Smiod rs6000-*-*) COREFILE=rs6000-core.lo ;; 3583d8817e4Smiod powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; 3593d8817e4Smiod powerpc-*-aix*) COREFILE=rs6000-core.lo ;; 3603d8817e4Smiod powerpc-*-beos*) ;; 3613d8817e4Smiod powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) 3623d8817e4Smiod COREFILE='' ;; 3633d8817e4Smiod powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; 3643d8817e4Smiod powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; 3653d8817e4Smiod s390*-*-*) COREFILE=trad-core.lo ;; 366d2386abeSmiod sh*-*-netbsd* | sh*-*-openbsd*) 367d2386abeSmiod COREFILE=netbsd-core.lo 368d2386abeSmiod ;; 3693d8817e4Smiod sparc-*-netbsd* | sparc*-*-openbsd*) 3703d8817e4Smiod COREFILE=netbsd-core.lo 3713d8817e4Smiod ;; 3723d8817e4Smiod tahoe-*-*) 3733d8817e4Smiod COREFILE=trad-core.lo 3743d8817e4Smiod TRAD_HEADER='"hosts/tahoe.h"' 3753d8817e4Smiod ;; 3763d8817e4Smiod vax-*-netbsd* | vax-*-openbsd*) 3773d8817e4Smiod COREFILE=netbsd-core.lo 3783d8817e4Smiod ;; 3793d8817e4Smiod vax-*-ultrix2*) 3803d8817e4Smiod COREFILE=trad-core.lo 3813d8817e4Smiod TRAD_HEADER='"hosts/vaxult2.h"' 3823d8817e4Smiod ;; 3833d8817e4Smiod vax-*-ultrix*) 3843d8817e4Smiod COREFILE=trad-core.lo 3853d8817e4Smiod TRAD_HEADER='"hosts/vaxult2.h"' 3863d8817e4Smiod ;; 3873d8817e4Smiod vax-*-linux-*) 3883d8817e4Smiod COREFILE=trad-core.lo 3893d8817e4Smiod TRAD_HEADER='"hosts/vaxlinux.h"' 3903d8817e4Smiod ;; 3913d8817e4Smiod vax-*-*) 3923d8817e4Smiod COREFILE=trad-core.lo 3933d8817e4Smiod TRAD_HEADER='"hosts/vaxbsd.h"' 3943d8817e4Smiod ;; 3953d8817e4Smiod x86_64-*-netbsd* | x86_64-*-openbsd*) 3963d8817e4Smiod COREFILE=netbsd-core.lo 3973d8817e4Smiod ;; 3983d8817e4Smiod esac 3993d8817e4Smiod 4003d8817e4Smiod case "$COREFILE" in 4013d8817e4Smiod aix386-core.lo) COREFLAG=-DAIX386_CORE ;; 4023d8817e4Smiod hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; 4033d8817e4Smiod hpux-core.lo) COREFLAG=-DHPUX_CORE ;; 4043d8817e4Smiod irix-core.lo) COREFLAG=-DIRIX_CORE ;; 4053d8817e4Smiod lynx-core.lo) COREFLAG=-DLYNX_CORE ;; 4063d8817e4Smiod netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; 4073d8817e4Smiod osf-core.lo) COREFLAG=-DOSF_CORE ;; 4083d8817e4Smiod ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; 4093d8817e4Smiod rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; 4103d8817e4Smiod sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; 4113d8817e4Smiod trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; 4123d8817e4Smiod esac 4133d8817e4Smiod 4143d8817e4Smiod # ELF corefile support has several flavors, but all of 4153d8817e4Smiod # them use something called <sys/procfs.h> 4163d8817e4Smiod AC_CHECK_HEADERS(sys/procfs.h) 4173d8817e4Smiod if test "$ac_cv_header_sys_procfs_h" = yes; then 4183d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t) 4193d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t) 4203d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who) 4213d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who) 4223d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t) 4233d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t) 4243d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t) 4253d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t) 4263d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t) 4273d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t) 4283d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t) 4293d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t) 4303d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t) 4313d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context) 4323d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg) 4333d8817e4Smiod BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t) 4343d8817e4Smiod fi 4353d8817e4Smiodfi 4363d8817e4SmiodAC_SUBST(COREFILE) 4373d8817e4SmiodAC_SUBST(COREFLAG) 4383d8817e4Smiodif test -n "$TRAD_HEADER"; then 4393d8817e4Smiod AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER, 4403d8817e4Smiod [Name of host specific header file to include in trad-core.c.]) 4413d8817e4Smiodfi 4423d8817e4Smiod 4433d8817e4Smiod# Horrible hacks to build DLLs on Windows. 4443d8817e4SmiodWIN32LDFLAGS= 4453d8817e4SmiodWIN32LIBADD= 4463d8817e4Smiodcase "${host}" in 4473d8817e4Smiod*-*-cygwin*) 4483d8817e4Smiod if test "$enable_shared" = "yes"; then 4493d8817e4Smiod WIN32LDFLAGS="-no-undefined" 4503d8817e4Smiod WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" 4513d8817e4Smiod fi 4523d8817e4Smiod ;; 4533d8817e4Smiod*-*-linux*) 4543d8817e4Smiod # We borrow WIN32LIBADD so that the shared libbfd won't depend on 4553d8817e4Smiod # libiberty.a. 4563d8817e4Smiod case "${host}" in 4573d8817e4Smiod mips*-*-linux*) 4583d8817e4Smiod # Linux/MIPS uses PIC by default. 4593d8817e4Smiod if test "$enable_shared" = "yes"; then 4603d8817e4Smiod WIN32LIBADD="-L../libiberty -liberty" 4613d8817e4Smiod fi 4623d8817e4Smiod ;; 4633d8817e4Smiod *) 4643d8817e4Smiodchangequote(,)dnl 4653d8817e4Smiod x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` 4663d8817e4Smiodchangequote([,])dnl 4673d8817e4Smiod if test -n "$x"; then 4683d8817e4Smiod WIN32LIBADD="-L../libiberty/pic -liberty" 4693d8817e4Smiod fi 4703d8817e4Smiod ;; 4713d8817e4Smiod esac 4723d8817e4Smiod ;; 4733d8817e4Smiodesac 4743d8817e4SmiodAC_SUBST(WIN32LDFLAGS) 4753d8817e4SmiodAC_SUBST(WIN32LIBADD) 4763d8817e4Smiod 4773d8817e4Smiod# target stuff: 4783d8817e4Smiod 4793d8817e4Smiod# Canonicalize the secondary target names. 4803d8817e4Smiodif test -n "$enable_targets" ; then 4813d8817e4Smiod for targ in `echo $enable_targets | sed 's/,/ /g'` 4823d8817e4Smiod do 4833d8817e4Smiod result=`$ac_config_sub $targ 2>/dev/null` 4843d8817e4Smiod if test -n "$result" ; then 4853d8817e4Smiod canon_targets="$canon_targets $result" 4863d8817e4Smiod else 4873d8817e4Smiod # Allow targets that config.sub doesn't recognize, like "all". 4883d8817e4Smiod canon_targets="$canon_targets $targ" 4893d8817e4Smiod fi 4903d8817e4Smiod done 4913d8817e4Smiodfi 4923d8817e4Smiod 4933d8817e4Smiodall_targets=false 4943d8817e4Smioddefvec= 4953d8817e4Smiodselvecs= 4963d8817e4Smiodassocvecs= 4973d8817e4Smiodselarchs= 4983d8817e4SmiodTDEFINES= 4993d8817e4Smiodfor targ in $target $canon_targets 5003d8817e4Smioddo 5013d8817e4Smiod if test "x$targ" = "xall"; then 5023d8817e4Smiod all_targets=true 5033d8817e4Smiod assocvecs="$assocvecs $targ_defvec $targ_selvecs" 5043d8817e4Smiod else 5053d8817e4Smiod . $srcdir/config.bfd 5063d8817e4Smiod if test "x$targ" = "x$target"; then 5073d8817e4Smiod defvec=$targ_defvec 5083d8817e4Smiod fi 5093d8817e4Smiod selvecs="$selvecs $targ_defvec $targ_selvecs" 5103d8817e4Smiod selarchs="$selarchs $targ_archs" 5113d8817e4Smiod TDEFINES="$TDEFINES $targ_cflags" 5123d8817e4Smiod fi 5133d8817e4Smioddone 5143d8817e4SmiodAC_SUBST(TDEFINES) 5153d8817e4Smiod 5163d8817e4Smiod# This processing still needs to be done if we're to decide properly whether 5173d8817e4Smiod# 64-bit support needs to be compiled in. Currently, it will be included if 5183d8817e4Smiod# the default or any other explicitly requested target requires it; it 5193d8817e4Smiod# will not be included on a 32-bit host if no 64-bit target is requested, and 5203d8817e4Smiod# no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is 5213d8817e4Smiod# used. 5223d8817e4Smiod 5233d8817e4Smiod# uniq the default and selected vectors in all the configured targets. 5243d8817e4Smiodf="" 5253d8817e4Smiodfor i in $selvecs ; do 5263d8817e4Smiod case " $f " in 5273d8817e4Smiod *" $i "*) ;; 5283d8817e4Smiod *) f="$f $i" ;; 5293d8817e4Smiod esac 5303d8817e4Smioddone 5313d8817e4Smiodselvecs="$f" 5323d8817e4Smiod 5333d8817e4Smiod 5343d8817e4Smiod# uniq the associated vectors in all the configured targets. 5353d8817e4Smiodf="" 5363d8817e4Smiodfor i in $assocvecs ; do 5373d8817e4Smiod case " $f " in 5383d8817e4Smiod *" $i "*) ;; 5393d8817e4Smiod *) f="$f $i" ;; 5403d8817e4Smiod esac 5413d8817e4Smioddone 5423d8817e4Smiodassocvecs="$f" 5433d8817e4Smiod 5443d8817e4Smiod 5453d8817e4Smiod# uniq the architectures in all the configured targets. 5463d8817e4Smiodf="" 5473d8817e4Smiodfor i in $selarchs ; do 5483d8817e4Smiod case " $f " in 5493d8817e4Smiod *" $i "*) ;; 5503d8817e4Smiod *) f="$f $i" ;; 5513d8817e4Smiod esac 5523d8817e4Smioddone 5533d8817e4Smiodselarchs="$f" 5543d8817e4Smiod 5553d8817e4Smiod# Target backend .o files. 5563d8817e4Smiodtb= 5573d8817e4Smiod 5583d8817e4Smiodelf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" 5593d8817e4Smiod 5603d8817e4Smiodfor vec in $selvecs 5613d8817e4Smioddo 5623d8817e4Smiod target_size=32 5633d8817e4Smiod case "$vec" in 5643d8817e4Smiod # This list is alphabetized to make it easy to compare 5653d8817e4Smiod # with the two vector lists in targets.c. For the same reason, 5663d8817e4Smiod # use one entry per line, even though this leads to long lines. 5673d8817e4Smiod a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; 5683d8817e4Smiod aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; 5693d8817e4Smiod aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; 5703d8817e4Smiod aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; 5713d8817e4Smiod aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; 5723d8817e4Smiod apollocoff_vec) tb="$tb coff-apollo.lo" ;; 5733d8817e4Smiod arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 5743d8817e4Smiod arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; 5753d8817e4Smiod arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 5763d8817e4Smiod arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; 5773d8817e4Smiod armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 5783d8817e4Smiod armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; 5793d8817e4Smiod armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; 5803d8817e4Smiod armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 5813d8817e4Smiod armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; 5823d8817e4Smiod armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 5833d8817e4Smiod armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; 5843d8817e4Smiod b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; 5853d8817e4Smiod b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; 5863d8817e4Smiod bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; 5873d8817e4Smiod bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; 5883d8817e4Smiod bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; 5893d8817e4Smiod bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; 5903d8817e4Smiod bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 5913d8817e4Smiod bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; 5923d8817e4Smiod bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 5933d8817e4Smiod bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 5943d8817e4Smiod bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 5953d8817e4Smiod bfd_elf32_bigarm_symbian_vec) 5963d8817e4Smiod tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 5973d8817e4Smiod bfd_elf32_bigarm_vxworks_vec) 5983d8817e4Smiod tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 5993d8817e4Smiod bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 6003d8817e4Smiod bfd_elf32_bigmips_vxworks_vec) 6013d8817e4Smiod tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 6023d8817e4Smiod bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; 6033d8817e4Smiod bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 6043d8817e4Smiod bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; 6053d8817e4Smiod bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; 6063d8817e4Smiod bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; 6073d8817e4Smiod bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; 6083d8817e4Smiod bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; 6093d8817e4Smiod bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 6103d8817e4Smiod bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; 6113d8817e4Smiod bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; 6123d8817e4Smiod bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 6133d8817e4Smiod bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 6143d8817e4Smiod bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; 6153d8817e4Smiod bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; 6163d8817e4Smiod bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; 6173d8817e4Smiod bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; 6183d8817e4Smiod bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; 6193d8817e4Smiod bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 6203d8817e4Smiod bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; 6213d8817e4Smiod bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; 6223d8817e4Smiod bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; 6233d8817e4Smiod bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; 6243d8817e4Smiod bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; 6253d8817e4Smiod bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; 6263d8817e4Smiod bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; 6273d8817e4Smiod bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; 6283d8817e4Smiod bfd_elf32_littlearm_symbian_vec) 6293d8817e4Smiod tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 6303d8817e4Smiod bfd_elf32_littlearm_vxworks_vec) 6313d8817e4Smiod tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 6323d8817e4Smiod bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; 6333d8817e4Smiod bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 6343d8817e4Smiod bfd_elf32_littlemips_vxworks_vec) 6353d8817e4Smiod tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 6363d8817e4Smiod bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; 6373d8817e4Smiod bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 6383d8817e4Smiod bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 6393d8817e4Smiod bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 6403d8817e4Smiod bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; 6413d8817e4Smiod bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 6423d8817e4Smiod bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; 6433d8817e4Smiod bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; 6443d8817e4Smiod bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; 6453d8817e4Smiod bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 6463d8817e4Smiod bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; 6473d8817e4Smiod bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; 6483d8817e4Smiod bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; 6493d8817e4Smiod bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; 6503d8817e4Smiod bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; 6513d8817e4Smiod bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 6523d8817e4Smiod bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 6533d8817e4Smiod bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 6543d8817e4Smiod bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 6553d8817e4Smiod bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; 6563d8817e4Smiod bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; 6573d8817e4Smiod bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 6583d8817e4Smiod bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; 6593d8817e4Smiod bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 6603d8817e4Smiod bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 6613d8817e4Smiod bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; 6623d8817e4Smiod bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; 6633d8817e4Smiod # FIXME: We include cofflink.lo not because it's needed for 6643d8817e4Smiod # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec 6653d8817e4Smiod # which needs it but does not list it. Should be fixed in right place. 6663d8817e4Smiod bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; 6673d8817e4Smiod bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; 6683d8817e4Smiod bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; 6693d8817e4Smiod bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; 6703d8817e4Smiod bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; 6713d8817e4Smiod bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; 6723d8817e4Smiod bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 6733d8817e4Smiod bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 6743d8817e4Smiod bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; 6753d8817e4Smiod bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;; 6763d8817e4Smiod bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 6773d8817e4Smiod bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 678d2386abeSmiod bfd_elf32_shlobsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 6793d8817e4Smiod bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 680d2386abeSmiod bfd_elf32_shobsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; 6813d8817e4Smiod bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 6823d8817e4Smiod bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; 6833d8817e4Smiod bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 6843d8817e4Smiod bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; 6853d8817e4Smiod bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; 6863d8817e4Smiod bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; 6873d8817e4Smiod bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; 6883d8817e4Smiod bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; 6893d8817e4Smiod bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; 6903d8817e4Smiod bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 6913d8817e4Smiod bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; 6923d8817e4Smiod bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 6933d8817e4Smiod bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; 6943d8817e4Smiod bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 6953d8817e4Smiod bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 6963d8817e4Smiod bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 6973d8817e4Smiod bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; 6983d8817e4Smiod bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 6993d8817e4Smiod bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 7003d8817e4Smiod bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; 7013d8817e4Smiod bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 7023d8817e4Smiod bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 7033d8817e4Smiod bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; 7043d8817e4Smiod bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; 7053d8817e4Smiod bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; 7063d8817e4Smiod bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; 7073d8817e4Smiod bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 7083d8817e4Smiod bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 7093d8817e4Smiod bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 7103d8817e4Smiod bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 7113d8817e4Smiod bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 7123d8817e4Smiod bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; 7133d8817e4Smiod bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; 7143d8817e4Smiod bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 7153d8817e4Smiod bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; 7163d8817e4Smiod bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; 7173d8817e4Smiod bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; 7183d8817e4Smiod bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 7193d8817e4Smiod bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 7203d8817e4Smiod bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; 7213d8817e4Smiod bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; 7223d8817e4Smiod cris_aout_vec) tb="$tb aout-cris.lo" ;; 7233d8817e4Smiod demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; 7243d8817e4Smiod ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 7253d8817e4Smiod ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 7263d8817e4Smiod ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; 7273d8817e4Smiod ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; 7283d8817e4Smiod go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; 7293d8817e4Smiod go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; 7303d8817e4Smiod h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; 7313d8817e4Smiod h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; 7323d8817e4Smiod host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; 7333d8817e4Smiod hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; 7343d8817e4Smiod hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; 7353d8817e4Smiod i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; 7363d8817e4Smiod i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; 7373d8817e4Smiod i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; 7383d8817e4Smiod i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; 7393d8817e4Smiod i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; 7403d8817e4Smiod i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; 7413d8817e4Smiod i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; 7423d8817e4Smiod i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; 7433d8817e4Smiod i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; 7443d8817e4Smiod i386msdos_vec) tb="$tb i386msdos.lo" ;; 7453d8817e4Smiod i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; 7463d8817e4Smiod i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; 7473d8817e4Smiod i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; 7483d8817e4Smiod i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; 7493d8817e4Smiod i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; 7503d8817e4Smiod icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 7513d8817e4Smiod icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; 7523d8817e4Smiod ieee_vec) tb="$tb ieee.lo" ;; 7533d8817e4Smiod m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; 7543d8817e4Smiod m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; 7553d8817e4Smiod m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; 7563d8817e4Smiod m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; 7573d8817e4Smiod m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; 7583d8817e4Smiod m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; 7593d8817e4Smiod m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; 7603d8817e4Smiod m88kbcs_vec) tb="$tb coff-m88k.lo" ;; 7613d8817e4Smiod m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; 7623d8817e4Smiod m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; 7633d8817e4Smiod maxqcoff_vec) tb="$tb coff-maxq.lo" ;; 7643d8817e4Smiod mach_o_be_vec) tb="$tb mach-o.lo" ;; 7653d8817e4Smiod mach_o_le_vec) tb="$tb mach-o.lo" ;; 7663d8817e4Smiod mach_o_fat_vec) tb="$tb mach-o.lo" ;; 7673d8817e4Smiod mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 7683d8817e4Smiod mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; 7693d8817e4Smiod mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 7703d8817e4Smiod mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; 7713d8817e4Smiod mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; 7723d8817e4Smiod mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; 7733d8817e4Smiod newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; 7743d8817e4Smiod nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; 7753d8817e4Smiod nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; 7763d8817e4Smiod nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; 7773d8817e4Smiod nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; 7783d8817e4Smiod or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; 7793d8817e4Smiod pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; 7803d8817e4Smiod pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; 7813d8817e4Smiod pef_vec) tb="$tb pef.lo" ;; 7823d8817e4Smiod pef_xlib_vec) tb="$tb pef.lo" ;; 7833d8817e4Smiod pdp11_aout_vec) tb="$tb pdp11.lo" ;; 7843d8817e4Smiod pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 7853d8817e4Smiod ppcboot_vec) tb="$tb ppcboot.lo" ;; 7863d8817e4Smiod riscix_vec) tb="$tb aout32.lo riscix.lo" ;; 7873d8817e4Smiod rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; 7883d8817e4Smiod rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; 7893d8817e4Smiod shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 7903d8817e4Smiod shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 7913d8817e4Smiod shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 7923d8817e4Smiod shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; 7933d8817e4Smiod shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; 7943d8817e4Smiod shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; 7953d8817e4Smiod som_vec) tb="$tb som.lo" ;; 7963d8817e4Smiod sparccoff_vec) tb="$tb coff-sparc.lo" ;; 7973d8817e4Smiod sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; 7983d8817e4Smiod sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; 7993d8817e4Smiod sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; 8003d8817e4Smiod sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; 8013d8817e4Smiod sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; 8023d8817e4Smiod sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; 8033d8817e4Smiod sym_vec) tb="$tb xsym.lo" ;; 8043d8817e4Smiod tic30_aout_vec) tb="$tb aout-tic30.lo" ;; 8053d8817e4Smiod tic30_coff_vec) tb="$tb coff-tic30.lo" ;; 8063d8817e4Smiod tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; 8073d8817e4Smiod tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; 8083d8817e4Smiod tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; 8093d8817e4Smiod tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; 8103d8817e4Smiod tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; 8113d8817e4Smiod tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; 8123d8817e4Smiod tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; 8133d8817e4Smiod tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; 8143d8817e4Smiod tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; 8153d8817e4Smiod tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; 8163d8817e4Smiod tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; 8173d8817e4Smiod tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; 8183d8817e4Smiod tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; 8193d8817e4Smiod vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; 8203d8817e4Smiod vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; 8213d8817e4Smiod vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; 8223d8817e4Smiod versados_vec) tb="$tb versados.lo" ;; 8233d8817e4Smiod vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; 8243d8817e4Smiod vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; 8253d8817e4Smiod w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; 8263d8817e4Smiod we32kcoff_vec) tb="$tb coff-we32k.lo" ;; 8273d8817e4Smiod z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; 8283d8817e4Smiod z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;; 8293d8817e4Smiod 8303d8817e4Smiod # These appear out of order in targets.c 8313d8817e4Smiod srec_vec) tb="$tb srec.lo" ;; 8323d8817e4Smiod symbolsrec_vec) tb="$tb srec.lo" ;; 8333d8817e4Smiod tekhex_vec) tb="$tb tekhex.lo" ;; 8343d8817e4Smiod cisco_core_big_vec) tb="$tb cisco-core.lo" ;; 8353d8817e4Smiod cisco_core_little_vec) tb="$tb cisco-core.lo" ;; 8363d8817e4Smiod 8373d8817e4Smiod "") ;; 8383d8817e4Smiod *) AC_MSG_ERROR(*** unknown target vector $vec) ;; 8393d8817e4Smiod esac 8403d8817e4Smiod 8413d8817e4Smiod if test ${target_size} = 64; then 8423d8817e4Smiod target64=true 8433d8817e4Smiod fi 8443d8817e4Smiod if test x"${vec}" = x"${defvec}"; then 8453d8817e4Smiod bfd_default_target_size=${target_size} 8463d8817e4Smiod fi 8473d8817e4Smioddone 8483d8817e4Smiod 8493d8817e4Smiod# Target architecture .o files. 8503d8817e4Smiod# A couple of CPUs use shorter file names to avoid problems on DOS 8513d8817e4Smiod# filesystems. 8523d8817e4Smiodta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` 8533d8817e4Smiod 8543d8817e4Smiod# Weed out duplicate .o files. 8553d8817e4Smiodf="" 8563d8817e4Smiodfor i in $tb ; do 8573d8817e4Smiod case " $f " in 8583d8817e4Smiod *" $i "*) ;; 8593d8817e4Smiod *) f="$f $i" ;; 8603d8817e4Smiod esac 8613d8817e4Smioddone 8623d8817e4Smiodtb="$f" 8633d8817e4Smiod 8643d8817e4Smiodf="" 8653d8817e4Smiodfor i in $ta ; do 8663d8817e4Smiod case " $f " in 8673d8817e4Smiod *" $i "*) ;; 8683d8817e4Smiod *) f="$f $i" ;; 8693d8817e4Smiod esac 8703d8817e4Smioddone 8713d8817e4Smiodta="$f" 8723d8817e4Smiod 8733d8817e4Smiodbfd_backends="$tb" 8743d8817e4Smiodbfd_machines="$ta" 8753d8817e4Smiod 8763d8817e4Smiodif test x${all_targets} = xtrue ; then 8773d8817e4Smiod bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' 8783d8817e4Smiod bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' 8793d8817e4Smiod selvecs= 8803d8817e4Smiod havevecs= 8813d8817e4Smiod selarchs= 8823d8817e4Smiod test -n "$assocvecs" && 8833d8817e4Smiod assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 8843d8817e4Smiodelse # all_targets is true 8853d8817e4Smiod # Only set these if they will be nonempty, for the clever echo. 8863d8817e4Smiod havevecs= 8873d8817e4Smiod assocvecs= 8883d8817e4Smiod test -n "$selvecs" && 8893d8817e4Smiod havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` 8903d8817e4Smiod test -n "$selvecs" && 8913d8817e4Smiod selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 8923d8817e4Smiod test -n "$selarchs" && 8933d8817e4Smiod selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` 8943d8817e4Smiodfi # all_targets is true 8953d8817e4Smiod 8963d8817e4Smiodcase ${host64}-${target64}-${want64} in 8973d8817e4Smiod *true*) 8983d8817e4Smiod wordsize=64 8993d8817e4Smiod bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' 9003d8817e4Smiod all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' 9013d8817e4Smiod if test $BFD_HOST_64_BIT_DEFINED = 0; then 9023d8817e4Smiod AC_MSG_WARN([You have requested a 64 bit BFD configuration, but]) 9033d8817e4Smiod AC_MSG_WARN([your compiler may not have a 64 bit integral type]) 9043d8817e4Smiod fi 9053d8817e4Smiod if test -n "$GCC" ; then 9063d8817e4Smiod bad_64bit_gcc=no; 9073d8817e4Smiod AC_MSG_CHECKING([for gcc version with buggy 64-bit support]) 9083d8817e4Smiod # Add more tests for gcc versions with non-working 64-bit support here. 9093d8817e4Smiod AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:], 9103d8817e4Smiod bad_64bit_gcc=yes; 9113d8817e4Smiod AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]), 9123d8817e4Smiod AC_MSG_RESULT(no)) 9133d8817e4Smiod if test $bad_64bit_gcc = yes ; then 9143d8817e4Smiod AC_MSG_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration]) 9153d8817e4Smiod fi 9163d8817e4Smiod fi 9173d8817e4Smiod ;; 9183d8817e4Smiod false-false-false) 9193d8817e4Smiod wordsize=32 9203d8817e4Smiod bfd_libs='$(BFD32_LIBS)' 9213d8817e4Smiod all_backends='$(BFD32_BACKENDS)' 9223d8817e4Smiod ;; 9233d8817e4Smiodesac 9243d8817e4Smiod 9253d8817e4SmiodAC_SUBST(wordsize) 9263d8817e4SmiodAC_SUBST(bfd_libs) 9273d8817e4SmiodAC_SUBST(all_backends) 9283d8817e4SmiodAC_SUBST(bfd_backends) 9293d8817e4SmiodAC_SUBST(bfd_machines) 9303d8817e4SmiodAC_SUBST(bfd_default_target_size) 9313d8817e4Smiod 9323d8817e4Smiod# Determine the host dependant file_ptr a.k.a. off_t type. In order 9333d8817e4Smiod# prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and 9343d8817e4Smiod# fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. 9353d8817e4Smiod# Hopefully a reasonable assumption since fseeko et.al. should be 9363d8817e4Smiod# upward compatible. 9373d8817e4SmiodAC_CHECK_FUNCS(ftello ftello64 fseeko fseeko64 fopen64) 9383d8817e4Smiodif test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then 9393d8817e4Smiod AC_CHECK_SIZEOF(off_t) 9403d8817e4Smiodfi 9413d8817e4SmiodAC_MSG_CHECKING([file_ptr type]) 9423d8817e4Smiodbfd_file_ptr="long" 9433d8817e4Smiodbfd_ufile_ptr="unsigned long" 9443d8817e4Smiodif test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ 9453d8817e4Smiod -o x"${ac_cv_sizeof_off_t}" = x8; then 9463d8817e4Smiod bfd_file_ptr=BFD_HOST_64_BIT 9473d8817e4Smiod bfd_ufile_ptr=BFD_HOST_U_64_BIT 9483d8817e4Smiodfi 9493d8817e4SmiodAC_MSG_RESULT($bfd_file_ptr) 9503d8817e4SmiodAC_SUBST(bfd_file_ptr) 9513d8817e4SmiodAC_SUBST(bfd_ufile_ptr) 9523d8817e4Smiod 9533d8817e4Smiod 9543d8817e4Smiodtdefaults="" 9553d8817e4Smiodtest -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" 9563d8817e4Smiodtest -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" 9573d8817e4Smiodtest -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" 9583d8817e4Smiodtest -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" 9593d8817e4Smiodtest -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" 9603d8817e4SmiodAC_SUBST(tdefaults) 9613d8817e4Smiod 9623d8817e4Smioddnl AC_CHECK_HEADERS(sys/mman.h) 9633d8817e4SmiodAC_FUNC_MMAP 9643d8817e4SmiodAC_CHECK_FUNCS(madvise mprotect) 9653d8817e4Smiodcase ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in 9663d8817e4Smiod true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;; 9673d8817e4Smiodesac 9683d8817e4Smiod 9693d8817e4Smiodrm -f doc/config.status 9703d8817e4SmiodAC_CONFIG_FILES([Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in]) 9713d8817e4SmiodAC_CONFIG_COMMANDS([default],[[sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile]],[[]]) 9723d8817e4Smiod 9733d8817e4Smioddnl Required by html and install-html 9743d8817e4SmiodAC_SUBST(datarootdir) 9753d8817e4SmiodAC_SUBST(docdir) 9763d8817e4SmiodAC_SUBST(htmldir) 9773d8817e4Smiod 9783d8817e4SmiodAC_OUTPUT 9793d8817e4Smiod 980