* Makefile.am (BFD32_BACKENDS): Remove elfarmqnx-nabi.lo,
[binutils.git] / bfd / configure.in
blobb59089d5e8f86c01755169ff90d6ac7db5420ad2
1 dnl Process this file with autoconf to produce a configure script.
2 dnl
4 AC_PREREQ(2.13)
5 AC_INIT(libbfd.c)
7 AC_CANONICAL_SYSTEM
8 AC_ISC_POSIX
10 AM_INIT_AUTOMAKE(bfd, 2.13.90)
11 # Uncomment the next line to remove the date from the reported bfd version
12 #is_release=y
14 changequote(,)dnl
15 bfd_version=`echo "${VERSION}" | sed -e 's/\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\)\.*\([^\.]*\).*/\1.00\2.00\3.00\4.00\5/' -e 's/\([^\.]*\)\..*\(..\)\..*\(..\)\..*\(..\)\..*\(..\)$/\1\2\3\4\5/'`
16 changequote([,])dnl
18 bfd_version_string="\"${VERSION}\""
19 if test x${is_release} = x; then
20   bfd_version_date=`sed -n -e 's/.*DATE //p' < ${srcdir}/version.h`
21   bfd_version_string="\"${VERSION} ${bfd_version_date}\""
23 AC_SUBST(bfd_version)
24 AC_SUBST(bfd_version_string)
26 dnl These must be called before AM_PROG_LIBTOOL, because it may want
27 dnl to call AC_CHECK_PROG.
28 AC_CHECK_TOOL(AR, ar)
29 AC_CHECK_TOOL(RANLIB, ranlib, :)
31 dnl Default to a non shared library.  This may be overridden by the
32 dnl configure option --enable-shared.
33 AM_DISABLE_SHARED
35 AM_PROG_LIBTOOL
37 AC_ARG_ENABLE(64-bit-bfd,
38 [  --enable-64-bit-bfd     64-bit support (on hosts with narrower word sizes)],
39 [case "${enableval}" in
40   yes)  want64=true  ;;
41   no)   want64=false ;;
42   *)    AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
43 esac],[want64=false])dnl
44 AC_ARG_ENABLE(targets,
45 [  --enable-targets        alternative target configurations],
46 [case "${enableval}" in
47   yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
48             ;;
49   no)       enable_targets= ;;
50   *)        enable_targets=$enableval ;;
51 esac])dnl
52 AC_ARG_ENABLE(commonbfdlib,
53 [  --enable-commonbfdlib   build shared BFD/opcodes/libiberty library],
54 [case "${enableval}" in
55   yes) commonbfdlib=true ;;
56   no)  commonbfdlib=false ;;
57   *)   AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
58 esac])dnl
59 AC_ARG_WITH(mmap,
60 [  --with-mmap             try using mmap for BFD input files if available],
61 [case "${withval}" in
62   yes)  want_mmap=true ;;
63   no)   want_mmap=false ;;
64   *)    AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
65 esac],[want_mmap=false])dnl
67 build_warnings="-W -Wall -Wstrict-prototypes -Wmissing-prototypes"
68 AC_ARG_ENABLE(build-warnings,
69 [  --enable-build-warnings Enable build-time compiler warnings if gcc is used],
70 [case "${enableval}" in
71   yes)  ;;
72   no)   build_warnings="-w";;
73   ,*)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
74         build_warnings="${build_warnings} ${t}";;
75   *,)   t=`echo "${enableval}" | sed -e "s/,/ /g"`
76         build_warnings="${t} ${build_warnings}";;
77   *)    build_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;;
78 esac
79 if test x"$silent" != x"yes" && test x"$build_warnings" != x""; then
80   echo "Setting warning flags = $build_warnings" 6>&1
81 fi])dnl
82 WARN_CFLAGS=""
83 if test "x${build_warnings}" != x -a "x$GCC" = xyes ; then
84     WARN_CFLAGS="${build_warnings}"
86 AC_SUBST(WARN_CFLAGS)
88 AM_CONFIG_HEADER(config.h:config.in)
90 if test -z "$target" ; then
91     AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
94 AM_MAINTAINER_MODE
95 AM_INSTALL_LIBBFD
96 AC_EXEEXT
98 host64=false
99 target64=false
100 bfd_default_target_size=32
102 # host stuff:
104 AC_PROG_CC
106 ALL_LINGUAS="fr tr ja es sv da"
107 CY_GNU_GETTEXT
109 # Permit host specific settings.
110 . ${srcdir}/configure.host
112 AC_SUBST(HDEFINES)
113 AC_PROG_INSTALL
115 BFD_HOST_64BIT_LONG=0
116 BFD_HOST_64_BIT_DEFINED=0
117 BFD_HOST_64_BIT=
118 BFD_HOST_U_64_BIT=
119 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
120   BFD_HOST_64BIT_LONG=1
121 elif test "x${HOST_64BIT_TYPE}" != "x"; then
122   BFD_HOST_64_BIT_DEFINED=1
123   BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
124   BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
126 AC_SUBST(BFD_HOST_64BIT_LONG)
127 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
128 AC_SUBST(BFD_HOST_64_BIT)
129 AC_SUBST(BFD_HOST_U_64_BIT)
131 BFD_CC_FOR_BUILD
133 AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
134 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
135 AC_HEADER_TIME
136 AC_HEADER_DIRENT
137 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
139 BFD_BINARY_FOPEN
141 BFD_NEED_DECLARATION(strstr)
142 BFD_NEED_DECLARATION(malloc)
143 BFD_NEED_DECLARATION(realloc)
144 BFD_NEED_DECLARATION(free)
145 BFD_NEED_DECLARATION(getenv)
147 # If we are configured native, pick a core file support file.
148 COREFILE=
149 COREFLAG=
150 TRAD_HEADER=
151 if test "${target}" = "${host}"; then
152   case "${host}" in
153   alpha*-*-freebsd*)
154         COREFILE=''
155         ;;
156   alpha*-*-linux-gnu*)
157         COREFILE=trad-core.lo
158         TRAD_HEADER='"hosts/alphalinux.h"'
159         ;;
160   alpha*-*-netbsd* | alpha*-*-openbsd*)
161         COREFILE=netbsd-core.lo
162         ;;
163   alpha*-*-*)           COREFILE=osf-core.lo ;;
164   arm-*-freebsd*)       COREFILE='' ;;
165   arm-*-netbsd*)        COREFILE=netbsd-core.lo ;;
166   arm-*-riscix)         COREFILE=trad-core.lo ;;
167   hppa*-*-hpux*)        COREFILE=hpux-core.lo ;;
168   hppa*-*-hiux*)        COREFILE=hpux-core.lo ;;
169   hppa*-*-mpeix*)       COREFILE=hpux-core.lo ;;
170   hppa*-*-bsd*)         COREFILE="hpux-core.lo hppabsd-core.lo"
171                         COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
172   i370-*-*)
173         COREFILE=trad-core.lo
174         TRAD_HEADER='"hosts/i370linux.h"'
175         ;;
177 changequote(,)dnl
178   i[3456]86-sequent-bsd*)
179 changequote([,])dnl
180         COREFILE=trad-core.lo
181         TRAD_HEADER='"hosts/symmetry.h"'
182         ;;
183 changequote(,)dnl
184   i[3456]86-sequent-sysv4*) ;;
185   i[3456]86-sequent-sysv*)
186 changequote([,])dnl
187         COREFILE=trad-core.lo
188         TRAD_HEADER='"hosts/symmetry.h"'
189         ;;
190 changequote(,)dnl
191   i[3456]86-*-bsdi)
192 changequote([,])dnl
193         COREFILE=
194         ;;
195 changequote(,)dnl
196   i[3456]86-*-bsd* | i[34567]86-*-freebsd[123] | i[34567]86-*-freebsd[123]\.* | i[34567]86-*-freebsd4\.[01234]* | i[34567]86-*-freebsd*aout*)
197 changequote([,])dnl
198         COREFILE=trad-core.lo
199         TRAD_HEADER='"hosts/i386bsd.h"'
200         ;;
201 changequote(,)dnl
202   i[3456]86-*-freebsd*)
203 changequote([,])dnl
204         COREFILE=''
205         TRAD_HEADER='"hosts/i386bsd.h"'
206         ;;
207 changequote(,)dnl
208   i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
209 changequote([,])dnl
210         COREFILE=netbsd-core.lo
211         ;;
212 changequote(,)dnl
213   i[3456]86-esix-sysv3*)
214 changequote([,])dnl
215         COREFILE=trad-core.lo
216         TRAD_HEADER='"hosts/esix.h"'
217         ;;
218 changequote(,)dnl
219   i[3456]86-*-sco3.2v5*)
220 changequote([,])dnl
221         COREFILE=sco5-core.lo
222         ;;
223 changequote(,)dnl
224   i[3456]86-*-sco* | i[3456]86-*-isc*)
225 changequote([,])dnl
226         COREFILE=trad-core.lo
227         TRAD_HEADER='"hosts/i386sco.h"'
228         ;;
229 changequote(,)dnl
230   i[3456]86-*-mach3*)
231 changequote([,])dnl
232         COREFILE=trad-core.lo
233         TRAD_HEADER='"hosts/i386mach3.h"'
234         ;;
235 changequote(,)dnl
236   i[3456]86-*-linux-gnu*)
237 changequote([,])dnl
238         COREFILE=trad-core.lo
239         TRAD_HEADER='"hosts/i386linux.h"'
240         ;;
241 changequote(,)dnl
242   i[3456]86-*-isc*)     COREFILE=trad-core.lo ;;
243   i[3456]86-*-aix*)     COREFILE=aix386-core.lo ;;
244 changequote([,])dnl
245   i860-*-mach3* | i860-*-osf1*)
246         COREFILE=trad-core.lo
247         TRAD_HEADER='"hosts/i860mach3.h"'
248         ;;
249   mips-dec-bsd*)
250         COREFILE=trad-core.lo
251         TRAD_HEADER='"hosts/mipsbsd.h"'
252         ;;
253   mips-dec-mach3*)
254         COREFILE=trad-core.lo
255         TRAD_HEADER='"hosts/mipsmach3.h"'
256         ;;
257   mips-*-netbsd* | mips*-*-openbsd*)
258         COREFILE=netbsd-core.lo
259         ;;
260   mips-dec-*)
261         COREFILE=trad-core.lo
262         TRAD_HEADER='"hosts/decstation.h"'
263         ;;
264   mips-sgi-irix4*)      COREFILE=irix-core.lo ;;
265   mips-sgi-irix5*)      COREFILE=irix-core.lo ;;
266   mips-sgi-irix6*)      COREFILE=irix-core.lo ;;
267   mips-*-mach3*)
268         COREFILE=trad-core.lo
269         TRAD_HEADER='"hosts/mipsmach3.h"'
270         ;;
271   mips-*-sysv4*)        ;;
272   mips-*-sysv* | mips-*-riscos*)
273         COREFILE=trad-core.lo
274         TRAD_HEADER='"hosts/riscos.h"'
275         ;;
276   mips-sony-bsd*)
277         COREFILE=trad-core.lo
278         TRAD_HEADER='"hosts/news-mips.h"'
279         ;;
280   m68*-bull*-sysv*)
281         COREFILE=trad-core.lo
282         TRAD_HEADER='"hosts/dpx2.h"'
283         ;;
284   m68*-hp-hpux*)        COREFILE=hpux-core.lo ;;
285   m68*-hp-bsd*)
286         COREFILE=trad-core.lo
287         TRAD_HEADER='"hosts/hp300bsd.h"'
288         ;;
289   m68*-*-linux-gnu*)
290         COREFILE=trad-core.lo
291         TRAD_HEADER='"hosts/m68klinux.h"'
292         ;;
293   m68*-motorola-sysv*)
294         COREFILE=trad-core.lo
295         TRAD_HEADER='"hosts/delta68.h"'
296         ;;
297   m68*-sony-*)
298         COREFILE=trad-core.lo
299         TRAD_HEADER='"hosts/news.h"'
300         ;;
301   m68*-*-netbsd* | m68*-*-openbsd*)
302         COREFILE=netbsd-core.lo
303         ;;
304   m68*-apple-aux*)
305         COREFILE=trad-core.lo
306         TRAD_HEADER='"hosts/m68kaux.h"'
307         ;;
308   m88*-*-sysv4*)
309         ;;
310   m88*-motorola-sysv*)
311         COREFILE=ptrace-core.lo
312         ;;
313   m88*-*-mach3*)
314         COREFILE=trad-core.lo
315         TRAD_HEADER='"hosts/m88kmach3.h"'
316         ;;
317   ns32k-pc532-mach)
318         COREFILE=trad-core.lo
319         TRAD_HEADER='"hosts/pc532mach.h"'
320         ;;
321   ns32k-*-netbsd* | ns32k-*-openbsd*)
322         COREFILE=netbsd-core.lo
323         ;;
324   rs6000-*-lynx*)
325         COREFILE=lynx-core.lo
326         ;;
327   rs6000-*-aix5.* | powerpc-*-aix5.*)
328         COREFILE=rs6000-core.lo
329         COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE"
330         ;;
331 changequote(,)dnl
332   rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*)
333 changequote([,])dnl
334         COREFILE=rs6000-core.lo
335         COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE"
336         # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE
337         # have c_impl as a member of struct core_dumpx
338         AC_MSG_CHECKING([for c_impl in struct core_dumpx])
339         AC_TRY_COMPILE([#include <core.h>],
340           [struct core_dumpx c; c.c_impl = 0;],
341           [AC_DEFINE(HAVE_ST_C_IMPL, 1,
342             [Define if struct core_dumpx has member c_impl])
343           AC_MSG_RESULT(yes)],[AC_MSG_RESULT(no)])
344         ;;
345   rs6000-*-aix4*)       COREFILE=rs6000-core.lo ;;
346   rs6000-*-*)           COREFILE=rs6000-core.lo ;;
347   powerpc-*-aix4*)      COREFILE=rs6000-core.lo ;;
348   powerpc-*-aix*)       COREFILE=rs6000-core.lo ;;
349   powerpc-*-beos*)      ;;
350   powerpc-*-freebsd*)   COREFILE='' ;;
351   powerpc-*-netbsd*)    COREFILE=netbsd-core.lo ;;
352   powerpc-*-*bsd*)      COREFILE=netbsd-core.lo ;;
353   s390*-*-*)            COREFILE=trad-core.lo ;;
354   sh*-*-netbsd*)        COREFILE=netbsd-core.lo ;;
355   sparc-*-netbsd* | sparc*-*-openbsd*)
356         COREFILE=netbsd-core.lo
357         ;;
358   tahoe-*-*)
359         COREFILE=trad-core.lo
360         TRAD_HEADER='"hosts/tahoe.h"'
361         ;;
362   vax-*-netbsd*)        COREFILE=netbsd-core.lo ;;
363   vax-*-ultrix2*)
364         COREFILE=trad-core.lo
365         TRAD_HEADER='"hosts/vaxult2.h"'
366         ;;
367   vax-*-ultrix*)
368         COREFILE=trad-core.lo
369         TRAD_HEADER='"hosts/vaxult2.h"'
370         ;;
371   vax-*-*)
372         COREFILE=trad-core.lo
373         TRAD_HEADER='"hosts/vaxbsd.h"'
374         ;;
375   x86_64-*-netbsd*)     COREFILE=netbsd-core.lo ;;
376   esac
378   case "$COREFILE" in
379   aix386-core.lo)       COREFLAG=-DAIX386_CORE ;;
380   hppabsd-core.lo)      COREFLAG=-DHPPABSD_CORE ;;
381   hpux-core.lo)         COREFLAG=-DHPUX_CORE ;;
382   irix-core.lo)         COREFLAG=-DIRIX_CORE ;;
383   lynx-core.lo)         COREFLAG=-DLYNX_CORE ;;
384   netbsd-core.lo)       COREFLAG=-DNETBSD_CORE ;;
385   osf-core.lo)          COREFLAG=-DOSF_CORE ;;
386   ptrace-core.lo)       COREFLAG=-DPTRACE_CORE ;;
387   rs6000-core.lo)       COREFLAG="$COREFLAG -DAIX_CORE" ;;
388   sco5-core.lo)         COREFLAG="$COREFLAG -DSCO5_CORE" ;;
389   trad-core.lo)         COREFLAG="$COREFLAG -DTRAD_CORE" ;;
390   esac
392   # ELF corefile support has several flavors, but all of
393   # them use something called <sys/procfs.h>
394   AC_CHECK_HEADERS(sys/procfs.h)
395   if test "$ac_cv_header_sys_procfs_h" = yes; then
396     BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
397     BFD_HAVE_SYS_PROCFS_TYPE(prstatus32_t)
398     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
399     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus32_t, pr_who)
400     BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
401     BFD_HAVE_SYS_PROCFS_TYPE(pxstatus_t)
402     BFD_HAVE_SYS_PROCFS_TYPE(pstatus32_t)
403     BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
404     BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo32_t)
405     BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
406     BFD_HAVE_SYS_PROCFS_TYPE(psinfo32_t)
407     BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
408     BFD_HAVE_SYS_PROCFS_TYPE(lwpxstatus_t)
409     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
410     BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
411     BFD_HAVE_SYS_PROCFS_TYPE(win32_pstatus_t)
412   fi
414 AC_SUBST(COREFILE)
415 AC_SUBST(COREFLAG)
416 if test -n "$TRAD_HEADER"; then
417   AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
418     [Name of host specific header file to include in trad-core.c.])
421 # Horrible hacks to build DLLs on Windows.
422 WIN32LDFLAGS=
423 WIN32LIBADD=
424 case "${host}" in
425 *-*-cygwin*)
426   if test "$enable_shared" = "yes"; then
427     WIN32LDFLAGS="-no-undefined"
428     WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
429   fi
430   ;;
431 *-*-linux*)
432   # We borrow WIN32LIBADD so that the shared libbfd won't depend on
433   # libiberty.a.
434   case "${host}" in
435   mips*-*-linux*)
436     # Linux/MIPS uses PIC by default.
437     if test "$enable_shared" = "yes"; then
438       WIN32LIBADD="-L../libiberty -liberty"
439     fi
440     ;;
441   *)
442 changequote(,)dnl
443     x=`sed -n -e 's/^[  ]*PICFLAG[      ]*=[    ]*//p' < ../libiberty/Makefile | tail -1`
444 changequote([,])dnl
445     if test -n "$x"; then
446       WIN32LIBADD="-L../libiberty/pic -liberty"
447     fi
448   ;;
449   esac
450   ;;
451 esac
452 AC_SUBST(WIN32LDFLAGS)
453 AC_SUBST(WIN32LIBADD)
455 # target stuff:
457 # Canonicalize the secondary target names.
458 if test -n "$enable_targets" ; then
459     for targ in `echo $enable_targets | sed 's/,/ /g'`
460     do
461         result=`$ac_config_sub $targ 2>/dev/null`
462         if test -n "$result" ; then
463             canon_targets="$canon_targets $result"
464         else
465             # Allow targets that config.sub doesn't recognize, like "all".
466             canon_targets="$canon_targets $targ"
467         fi
468     done
471 all_targets=false
472 defvec=
473 selvecs=
474 selarchs=
475 TDEFINES=
476 for targ in $target $canon_targets
478     if test "x$targ" = "xall"; then
479         all_targets=true
480     else
481         . $srcdir/config.bfd
482         if test "x$targ" = "x$target"; then
483             defvec=$targ_defvec
484         fi
485         selvecs="$selvecs $targ_defvec $targ_selvecs"
486         selarchs="$selarchs $targ_archs"
487         TDEFINES="$TDEFINES $targ_cflags"
488     fi
489 done
490 AC_SUBST(TDEFINES)
492 # This processing still needs to be done if we're to decide properly whether
493 # 64-bit support needs to be compiled in.  Currently, it will be included if
494 # the default or any other explicitly requested target requires it; it
495 # will not be included on a 32-bit host if no 64-bit target is requested, and
496 # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is
497 # used.
499 # uniq the default and selected vectors in all the configured targets.
500 f=""
501 for i in $selvecs ; do
502     case " $f " in
503     *" $i "*) ;;
504     *) f="$f $i" ;;
505     esac
506 done
507 selvecs="$f"
510 # uniq the architectures in all the configured targets.
511 f=""
512 for i in $selarchs ; do
513     case " $f " in
514     *" $i "*) ;;
515     *) f="$f $i" ;;
516     esac
517 done
518 selarchs="$f"
520 # Target backend .o files.
523 elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo"
525 for vec in $selvecs
527     target_size=32
528     case "$vec" in
529     # This list is alphabetized to make it easy to compare
530     # with the two vector lists in targets.c.  For the same reason,
531     # use one entry per line, even though this leads to long lines.
532     a29kcoff_big_vec)           tb="$tb coff-a29k.lo cofflink.lo" ;;
533     a_out_adobe_vec)            tb="$tb aout-adobe.lo aout32.lo" ;;
534     aix5coff64_vec)             tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
535     aout0_big_vec)              tb="$tb aout0.lo aout32.lo" ;;
536     aout_arm_big_vec)           tb="$tb aout-arm.lo aout32.lo" ;;
537     aout_arm_little_vec)        tb="$tb aout-arm.lo aout32.lo" ;;
538     aout_mips_big_vec)          tb="$tb mipsbsd.lo aout32.lo" ;;
539     aout_mips_little_vec)       tb="$tb mipsbsd.lo aout32.lo" ;;
540     apollocoff_vec)             tb="$tb coff-apollo.lo" ;;
541     arm_epoc_pe_big_vec)        tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
542     arm_epoc_pe_little_vec)     tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;;
543     arm_epoc_pei_big_vec)       tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
544     arm_epoc_pei_little_vec)    tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;;
545     armcoff_big_vec)            tb="$tb coff-arm.lo cofflink.lo " ;;
546     armcoff_little_vec)         tb="$tb coff-arm.lo cofflink.lo " ;;
547     armnetbsd_vec)              tb="$tb armnetbsd.lo aout32.lo" ;;
548     armpe_big_vec)              tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
549     armpe_little_vec)           tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;;
550     armpei_big_vec)             tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
551     armpei_little_vec)          tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;;
552     b_out_vec_big_host)         tb="$tb bout.lo aout32.lo" ;;
553     b_out_vec_little_host)      tb="$tb bout.lo aout32.lo" ;;
554     bfd_efi_app_ia32_vec)       tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;;
555     bfd_efi_app_ia64_vec)       tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;;
556     bfd_elf32_avr_vec)          tb="$tb elf32-avr.lo elf32.lo $elf" ;;
557     bfd_elf32_big_generic_vec)  tb="$tb elf32-gen.lo elf32.lo $elf" ;;
558     bfd_elf32_bigarc_vec)       tb="$tb elf32-arc.lo elf32.lo $elf" ;;
559     bfd_elf32_bigarm_oabi_vec)  tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
560     bfd_elf32_bigarm_vec)       tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
561     bfd_elf32_bigarmqnx_vec)    tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
562     bfd_elf32_bigmips_vec)      tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
563     bfd_elf32_cris_vec)         tb="$tb elf32-cris.lo elf32.lo $elf" ;;
564     bfd_elf32_d10v_vec)         tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
565     bfd_elf32_d30v_vec)         tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
566     bfd_elf32_dlx_big_vec)      tb="$tb elf32-dlx.lo elf32.lo $elf" ;;
567     bfd_elf32_fr30_vec)         tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
568     bfd_elf32_frv_vec)          tb="$tb elf32-frv.lo elf32.lo $elf" ;;
569     bfd_elf32_h8300_vec)        tb="$tb elf32-h8300.lo elf32.lo $elf" ;;
570     bfd_elf32_hppa_linux_vec)   tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
571     bfd_elf32_hppa_vec)         tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
572     bfd_elf32_i370_vec)         tb="$tb elf32-i370.lo elf32.lo $elf" ;;
573     bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
574     bfd_elf32_i386_vec)         tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
575     bfd_elf32_i386qnx_vec)      tb="$tb elf32-i386.lo elf32-qnx.lo elf32.lo $elf" ;;
576     bfd_elf32_i860_little_vec)  tb="$tb elf32-i860.lo elf32.lo $elf" ;;
577     bfd_elf32_i860_vec)         tb="$tb elf32-i860.lo elf32.lo $elf" ;;
578     bfd_elf32_i960_vec)         tb="$tb elf32-i960.lo elf32.lo $elf" ;;
579     bfd_elf32_ia64_big_vec)     tb="$tb elf32-ia64.lo elf32.lo $elf" ;;
580     bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";;
581     bfd_elf32_ip2k_vec)         tb="$tb elf32-ip2k.lo elf32.lo $elf" ;;
582     bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
583     bfd_elf32_littlearc_vec)    tb="$tb elf32-arc.lo elf32.lo $elf" ;;
584     bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
585     bfd_elf32_littlearm_vec)    tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
586     bfd_elf32_littlearmqnx_vec) tb="$tb elfarm-nabi.lo elf32-qnx.lo elf32.lo $elf" ;;
587     bfd_elf32_littlemips_vec)   tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
588     bfd_elf32_m32r_vec)         tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
589     bfd_elf32_m68hc11_vec)      tb="$tb elf32-m68hc11.lo elf32.lo $elf" ;;
590     bfd_elf32_m68hc12_vec)      tb="$tb elf32-m68hc12.lo elf32.lo $elf" ;;
591     bfd_elf32_m68k_vec)         tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
592     bfd_elf32_m88k_vec)         tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
593     bfd_elf32_mcore_big_vec)    tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
594     bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
595     bfd_elf32_mn10200_vec)      tb="$tb elf-m10200.lo elf32.lo $elf" ;;
596     bfd_elf32_mn10300_vec)      tb="$tb elf-m10300.lo elf32.lo $elf" ;;
597     bfd_elf32_nbigmips_vec)     tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
598     bfd_elf32_nlittlemips_vec)  tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
599     bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
600     bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
601     bfd_elf32_openrisc_vec)     tb="$tb elf32-openrisc.lo elf32.lo $elf" ;;
602     bfd_elf32_or32_big_vec)     tb="$tb elf32-or32.lo elf32.lo $elf" ;;
603     bfd_elf32_pj_vec)           tb="$tb elf32-pj.lo elf32.lo $elf";;
604     bfd_elf32_pjl_vec)          tb="$tb elf32-pj.lo elf32.lo $elf";;
605     bfd_elf32_powerpc_vec)      tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
606     bfd_elf32_powerpcle_vec)    tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
607     bfd_elf32_powerpcleqnx_vec) tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
608     bfd_elf32_powerpcqnx_vec)   tb="$tb elf32-ppc.lo elf32-qnx.lo elf32.lo $elf" ;;
609     bfd_elf32_s390_vec)         tb="$tb elf32-s390.lo elf32.lo $elf" ;;
610     # FIXME: We include cofflink.lo not because it's needed for
611     # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec
612     # which needs it but does not list it.  Should be fixed in right place.
613     bfd_elf32_sh64_vec)         tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
614     bfd_elf32_sh64l_vec)        tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
615     bfd_elf32_sh64lin_vec)      tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
616     bfd_elf32_sh64blin_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;;
617     bfd_elf32_sh64lnbsd_vec)    tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
618     bfd_elf32_sh64nbsd_vec)     tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;;
619     bfd_elf32_sh_vec)           tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
620     bfd_elf32_shblin_vec)       tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
621     bfd_elf32_shl_vec)          tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo elf32-qnx.lo $elf coff-sh.lo" ;;
622     bfd_elf32_shlin_vec)        tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
623     bfd_elf32_shlnbsd_vec)      tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
624     bfd_elf32_shlqnx_vec)       tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
625     bfd_elf32_shnbsd_vec)       tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;;
626     bfd_elf32_shqnx_vec)        tb="$tb elf32-sh.lo elf32-qnx.lo elf32.lo $elf coff-sh.lo" ;;
627     bfd_elf32_sparc_vec)        tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
628     bfd_elf32_tradbigmips_vec)  tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
629     bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;;
630     bfd_elf32_us_cris_vec)      tb="$tb elf32-cris.lo elf32.lo $elf" ;;
631     bfd_elf32_v850_vec)         tb="$tb elf32-v850.lo elf32.lo $elf" ;;
632     bfd_elf32_vax_vec)          tb="$tb elf32-vax.lo elf32.lo $elf" ;;
633     bfd_elf32_xstormy16_vec)    tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;;
634     bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
635     bfd_elf64_alpha_vec)        tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;;
636     bfd_elf64_big_generic_vec)  tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
637     bfd_elf64_bigmips_vec)      tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
638     bfd_elf64_hppa_linux_vec)   tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
639     bfd_elf64_hppa_vec)         tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;;
640     bfd_elf64_ia64_aix_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
641     bfd_elf64_ia64_aix_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
642     bfd_elf64_ia64_big_vec)     tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
643     bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
644     bfd_elf64_ia64_little_vec)  tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;;
645     bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
646     bfd_elf64_littlemips_vec)   tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
647     bfd_elf64_mmix_vec)         tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;;
648     bfd_elf64_powerpc_vec)      tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;;
649     bfd_elf64_powerpcle_vec)    tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;;
650     bfd_elf64_s390_vec)         tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;;
651     bfd_elf64_sh64_vec)         tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
652     bfd_elf64_sh64l_vec)        tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
653     bfd_elf64_sh64lin_vec)      tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
654     bfd_elf64_sh64blin_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
655     bfd_elf64_sh64lnbsd_vec)    tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
656     bfd_elf64_sh64nbsd_vec)     tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;;
657     bfd_elf64_sparc_vec)        tb="$tb elf64-sparc.lo elf64.lo $elf"; target_size=64 ;;
658     bfd_elf64_tradbigmips_vec)  tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
659     bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;;
660     bfd_elf64_x86_64_vec)       tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;;
661     bfd_mmo_vec)                tb="$tb mmo.lo" target_size=64 ;;
662     bfd_powerpc_pe_vec)         tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
663     bfd_powerpc_pei_vec)        tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
664     bfd_powerpcle_pe_vec)       tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;;
665     bfd_powerpcle_pei_vec)      tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;;
666     cris_aout_vec)              tb="$tb aout-cris.lo" ;;
667     demo_64_vec)                tb="$tb demo64.lo aout64.lo"; target_size=64 ;;
668     ecoff_big_vec)              tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
669     ecoff_biglittle_vec)        tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
670     ecoff_little_vec)           tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
671     ecoffalpha_little_vec)      tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;;
672     go32coff_vec)               tb="$tb coff-go32.lo cofflink.lo" ;;
673     go32stubbedcoff_vec)        tb="$tb coff-stgo32.lo cofflink.lo" ;;
674     h8300coff_vec)              tb="$tb coff-h8300.lo reloc16.lo" ;;
675     h8500coff_vec)              tb="$tb coff-h8500.lo reloc16.lo" ;;
676     host_aout_vec)              tb="$tb host-aout.lo aout32.lo" ;;
677     hp300bsd_vec)               tb="$tb hp300bsd.lo aout32.lo" ;;
678     hp300hpux_vec)              tb="$tb hp300hpux.lo aout32.lo" ;;
679     i386aout_vec)               tb="$tb i386aout.lo aout32.lo" ;;
680     i386bsd_vec)                tb="$tb i386bsd.lo aout32.lo" ;;
681     i386coff_vec)               tb="$tb coff-i386.lo cofflink.lo" ;;
682     i386dynix_vec)              tb="$tb i386dynix.lo aout32.lo" ;;
683     i386freebsd_vec)            tb="$tb i386freebsd.lo aout32.lo" ;;
684     i386linux_vec)              tb="$tb i386linux.lo aout32.lo" ;;
685     i386lynx_aout_vec)          tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
686     i386lynx_coff_vec)          tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
687     i386mach3_vec)              tb="$tb i386mach3.lo aout32.lo" ;;
688     i386msdos_vec)              tb="$tb i386msdos.lo" ;;
689     i386netbsd_vec)             tb="$tb i386netbsd.lo aout32.lo" ;;
690     i386os9k_vec)               tb="$tb i386os9k.lo aout32.lo" ;;
691     i386pe_vec)                 tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;;
692     i386pei_vec)                tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;;
693     i860coff_vec)               tb="$tb coff-i860.lo cofflink.lo" ;;
694     icoff_big_vec)              tb="$tb coff-i960.lo cofflink.lo" ;;
695     icoff_little_vec)           tb="$tb coff-i960.lo cofflink.lo" ;;
696     ieee_vec)                   tb="$tb ieee.lo" ;;
697     m68k4knetbsd_vec)           tb="$tb m68k4knetbsd.lo aout32.lo" ;;
698     m68kaux_coff_vec)           tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
699     m68kcoff_vec)               tb="$tb coff-m68k.lo cofflink.lo" ;;
700     m68kcoffun_vec)             tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
701     m68klinux_vec)              tb="$tb m68klinux.lo aout32.lo" ;;
702     m68klynx_aout_vec)          tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
703     m68klynx_coff_vec)          tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
704     m68knetbsd_vec)             tb="$tb m68knetbsd.lo aout32.lo" ;;
705     m68ksysvcoff_vec)           tb="$tb coff-svm68k.lo cofflink.lo" ;;
706     m88kbcs_vec)                tb="$tb coff-m88k.lo" ;;
707     m88kmach3_vec)              tb="$tb m88kmach3.lo aout32.lo" ;;
708     mcore_pe_big_vec)           tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
709     mcore_pe_little_vec)        tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;;
710     mcore_pei_big_vec)          tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
711     mcore_pei_little_vec)       tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;;
712     mipslpe_vec)                tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;;
713     mipslpei_vec)               tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;;
714     newsos3_vec)                tb="$tb newsos3.lo aout32.lo" ;;
715     nlm32_alpha_vec)            tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;;
716     nlm32_i386_vec)             tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
717     nlm32_powerpc_vec)          tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
718     nlm32_sparc_vec)            tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
719     or32coff_big_vec)           tb="$tb coff-or32.lo cofflink.lo" ;;
720     pc532machaout_vec)          tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
721     pc532netbsd_vec)            tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
722     pdp11_aout_vec)             tb="$tb pdp11.lo" ;;
723     pmac_xcoff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
724     ppcboot_vec)                tb="$tb ppcboot.lo" ;;
725     riscix_vec)                 tb="$tb aout32.lo riscix.lo" ;;
726     rs6000coff64_vec)           tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;;
727     rs6000coff_vec)             tb="$tb coff-rs6000.lo xcofflink.lo" ;;
728     shcoff_small_vec)           tb="$tb coff-sh.lo cofflink.lo" ;;
729     shcoff_vec)                 tb="$tb coff-sh.lo cofflink.lo" ;;
730     shlcoff_small_vec)          tb="$tb coff-sh.lo cofflink.lo" ;;
731     shlcoff_vec)                tb="$tb coff-sh.lo cofflink.lo" ;;
732     shlpe_vec)                  tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
733     shlpei_vec)                 tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;;
734     som_vec)                    tb="$tb som.lo" ;;
735     sparccoff_vec)              tb="$tb coff-sparc.lo" ;;
736     sparcle_aout_vec)           tb="$tb aout-sparcle.lo aout32.lo" ;;
737     sparclinux_vec)             tb="$tb sparclinux.lo aout32.lo" ;;
738     sparclynx_aout_vec)         tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
739     sparclynx_coff_vec)         tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
740     sparcnetbsd_vec)            tb="$tb sparcnetbsd.lo aout32.lo" ;;
741     sunos_big_vec)              tb="$tb sunos.lo aout32.lo" ;;
742     tic30_aout_vec)             tb="$tb aout-tic30.lo" ;;
743     tic30_coff_vec)             tb="$tb coff-tic30.lo" ;;
744     tic4x_coff0_vec)            tb="$tb coff-tic4x.lo" ;;
745     tic4x_coff0_beh_vec)        tb="$tb coff-tic4x.lo" ;;
746     tic4x_coff1_vec)            tb="$tb coff-tic4x.lo" ;;
747     tic4x_coff1_beh_vec)        tb="$tb coff-tic4x.lo" ;;
748     tic4x_coff2_vec)            tb="$tb coff-tic4x.lo" ;;
749     tic4x_coff2_beh_vec)        tb="$tb coff-tic4x.lo" ;;
750     tic54x_coff0_beh_vec)       tb="$tb coff-tic54x.lo" ;;
751     tic54x_coff0_vec)           tb="$tb coff-tic54x.lo" ;;
752     tic54x_coff1_beh_vec)       tb="$tb coff-tic54x.lo" ;;
753     tic54x_coff1_vec)           tb="$tb coff-tic54x.lo" ;;
754     tic54x_coff2_beh_vec)       tb="$tb coff-tic54x.lo" ;;
755     tic54x_coff2_vec)           tb="$tb coff-tic54x.lo" ;;
756     tic80coff_vec)              tb="$tb coff-tic80.lo cofflink.lo" ;;
757     vaxnetbsd_vec)              tb="$tb vaxnetbsd.lo aout32.lo" ;;
758     vax1knetbsd_vec)            tb="$tb vax1knetbsd.lo aout32.lo" ;;
759     vaxbsd_vec)                 tb="$tb vaxbsd.lo aout32.lo" ;;
760     versados_vec)               tb="$tb versados.lo" ;;
761     vms_alpha_vec)              tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;;
762     vms_vax_vec)                tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
763     w65_vec)                    tb="$tb coff-w65.lo reloc16.lo" ;;
764     we32kcoff_vec)              tb="$tb coff-we32k.lo" ;;
765     z8kcoff_vec)                tb="$tb coff-z8k.lo reloc16.lo" ;;
767     # These appear out of order in targets.c
768     srec_vec)                   tb="$tb srec.lo" ;;
769     symbolsrec_vec)             tb="$tb srec.lo" ;;
770     tekhex_vec)                 tb="$tb tekhex.lo" ;;
771     cisco_core_big_vec)         tb="$tb cisco-core.lo" ;;
772     cisco_core_little_vec)      tb="$tb cisco-core.lo" ;;
774     "")                 ;;
775     *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
776     esac
778     if test ${target_size} = 64; then
779         target64=true
780     fi
781     if test x"${vec}" = x"${defvec}"; then
782         bfd_default_target_size=${target_size}
783     fi
784 done
786 # Target architecture .o files.
787 # A couple of CPUs use shorter file names to avoid problems on DOS
788 # filesystems.
789 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
791 # Weed out duplicate .o files.
792 f=""
793 for i in $tb ; do
794     case " $f " in
795     *" $i "*) ;;
796     *) f="$f $i" ;;
797     esac
798 done
799 tb="$f"
801 f=""
802 for i in $ta ; do
803     case " $f " in
804     *" $i "*) ;;
805     *) f="$f $i" ;;
806     esac
807 done
808 ta="$f"
810 bfd_backends="$tb"
811 bfd_machines="$ta"
813 if test x${all_targets} = xtrue ; then
814   bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
815   bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
816   selvecs=
817   havevecs=
818   selarchs=
819 else    # all_targets is true
820   # Only set these if they will be nonempty, for the clever echo.
821   havevecs=
822   test -n "$selvecs" &&
823     havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
824   test -n "$selvecs" &&
825     selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
826   test -n "$selarchs" &&
827     selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
828 fi      # all_targets is true
830 case ${host64}-${target64}-${want64} in
831   *true*)
832     wordsize=64
833     bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)'
834     all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
835     if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
836       AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
837       AC_MSG_WARN([your compiler may not have a 64 bit integral type])
838     fi
839     if test -n "$GCC" ; then
840        bad_64bit_gcc=no;
841        AC_MSG_CHECKING([for gcc version with buggy 64-bit support])
842        # Add more tests for gcc versions with non-working 64-bit support here.
843        AC_EGREP_CPP([: 2 : 91 : 1 :],[:__GNUC__:__GNUC_MINOR__:__i386__:],
844                     bad_64bit_gcc=yes;
845                     AC_MSG_RESULT([yes: egcs-1.1.2 on ix86 spotted]),
846                     AC_MSG_RESULT(no))
847        if test $bad_64bit_gcc = yes ; then
848          AC_ERROR([A newer version of gcc is needed for the requested 64-bit BFD configuration])
849        fi
850     fi
851     ;;
852   false-false-false)
853     wordsize=32
854     bfd_libs='$(BFD32_LIBS)'
855     all_backends='$(BFD32_BACKENDS)'
856     ;;
857 esac
859 AC_SUBST(wordsize)
860 AC_SUBST(bfd_libs)
861 AC_SUBST(all_backends)
862 AC_SUBST(bfd_backends)
863 AC_SUBST(bfd_machines)
864 AC_SUBST(bfd_default_target_size)
866 tdefaults=""
867 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
868 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
869 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
870 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
871 AC_SUBST(tdefaults)
873 dnl AC_CHECK_HEADERS(sys/mman.h)
874 AC_FUNC_MMAP
875 AC_CHECK_FUNCS(madvise mprotect)
876 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
877   true+yes )  AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
878 esac
880 rm -f doc/config.status
881 AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h bfdver.h:version.h po/Makefile.in:po/Make-in,
882 [sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile])