1 dnl Process this file with autoconf to produce a configure script.
10 AM_INIT_AUTOMAKE(bfd, 2.9.4)
12 dnl These must be called before AM_PROG_LIBTOOL, because it may want
13 dnl to call AC_CHECK_PROG.
15 AC_CHECK_TOOL(RANLIB, ranlib, :)
17 dnl Default to a non shared library. This may be overridden by the
18 dnl configure option --enable-shared.
23 AC_ARG_ENABLE(64-bit-bfd,
24 [ --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes)],
25 [case "${enableval}" in
28 *) AC_MSG_ERROR(bad value ${enableval} for 64-bit-bfd option) ;;
29 esac],[want64=false])dnl
30 AC_ARG_ENABLE(targets,
31 [ --enable-targets alternative target configurations],
32 [case "${enableval}" in
33 yes | "") AC_ERROR(enable-targets option must specify target names or 'all')
35 no) enable_targets= ;;
36 *) enable_targets=$enableval ;;
38 AC_ARG_ENABLE(commonbfdlib,
39 [ --enable-commonbfdlib build shared BFD/opcodes/libiberty library],
40 [case "${enableval}" in
41 yes) commonbfdlib=true ;;
42 no) commonbfdlib=false ;;
43 *) AC_MSG_ERROR([bad value ${enableval} for BFD commonbfdlib option]) ;;
46 [ --with-mmap try using mmap for BFD input files if available],
48 yes) want_mmap=true ;;
49 no) want_mmap=false ;;
50 *) AC_MSG_ERROR(bad value ${withval} for BFD with-mmap option) ;;
51 esac],[want_mmap=false])dnl
53 AM_CONFIG_HEADER(config.h:config.in)
55 if test -z "$target" ; then
56 AC_MSG_ERROR(Unrecognized target system type; please check config.sub.)
73 # Permit host specific settings.
74 . ${srcdir}/configure.host
80 BFD_HOST_64_BIT_DEFINED=0
83 if test "x${HOST_64BIT_TYPE}" = "xlong"; then
85 elif test "x${HOST_64BIT_TYPE}" != "x"; then
86 BFD_HOST_64_BIT_DEFINED=1
87 BFD_HOST_64_BIT=${HOST_64BIT_TYPE}
88 BFD_HOST_U_64_BIT=${HOST_U_64BIT_TYPE}
90 AC_SUBST(BFD_HOST_64BIT_LONG)
91 AC_SUBST(BFD_HOST_64_BIT_DEFINED)
92 AC_SUBST(BFD_HOST_64_BIT)
93 AC_SUBST(BFD_HOST_U_64_BIT)
97 AC_CHECK_HEADERS(stddef.h string.h strings.h stdlib.h time.h unistd.h)
98 AC_CHECK_HEADERS(fcntl.h sys/file.h sys/time.h)
101 AC_CHECK_FUNCS(fcntl getpagesize setitimer sysconf fdopen getuid getgid)
105 BFD_NEED_DECLARATION(strstr)
106 BFD_NEED_DECLARATION(malloc)
107 BFD_NEED_DECLARATION(realloc)
108 BFD_NEED_DECLARATION(free)
109 BFD_NEED_DECLARATION(getenv)
111 # If we are configured native, pick a core file support file.
115 if test "${target}" = "${host}"; then
118 COREFILE=trad-core.lo
119 TRAD_HEADER='"hosts/alphalinux.h"'
121 alpha*-*-netbsd*) COREFILE=netbsd-core.lo ;;
122 alpha*-*-*) COREFILE=osf-core.lo ;;
123 arm-*-riscix) COREFILE=trad-core.lo ;;
124 hppa*-*-hpux*) COREFILE=hpux-core.lo ;;
125 hppa*-*-hiux*) COREFILE=hpux-core.lo ;;
126 hppa*-*-mpeix*) COREFILE=hpux-core.lo ;;
127 hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo"
128 COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;;
130 i[3456]86-sequent-bsd*)
132 COREFILE=trad-core.lo;
133 TRAD_HEADER='"hosts/symmetry.h"'
136 i[3456]86-sequent-sysv4*) ;;
137 i[3456]86-sequent-sysv*)
139 COREFILE=trad-core.lo
140 TRAD_HEADER='"hosts/symmetry.h"'
143 i[3456]86-*-bsd* | i[3456]86-*-freebsd*)
145 COREFILE=trad-core.lo
146 TRAD_HEADER='"hosts/i386bsd.h"'
149 i[3456]86-*-netbsd* | i[3456]86-*-openbsd*)
151 COREFILE=netbsd-core.lo
154 i[3456]86-esix-sysv3*)
156 COREFILE=trad-core.lo
157 TRAD_HEADER='"hosts/esix.h"'
160 i[3456]86-*-sco3.2v5*)
162 COREFILE=sco5-core.lo
165 i[3456]86-*-sco* | i[3456]86-*-isc*)
167 COREFILE=trad-core.lo
168 TRAD_HEADER='"hosts/i386sco.h"'
173 COREFILE=trad-core.lo
174 TRAD_HEADER='"hosts/i386mach3.h"'
177 i[3456]86-*-linux-gnu*)
179 COREFILE=trad-core.lo
180 TRAD_HEADER='"hosts/i386linux.h"'
183 i[3456]86-*-isc*) COREFILE=trad-core.lo ;;
184 i[3456]86-*-aix*) COREFILE=aix386-core.lo ;;
186 i860-*-mach3* | i860-*-osf1*)
187 COREFILE=trad-core.lo
188 TRAD_HEADER='"hosts/i860mach3.h"'
191 COREFILE=trad-core.lo
192 TRAD_HEADER='"hosts/mipsbsd.h"'
195 COREFILE=trad-core.lo
196 TRAD_HEADER='"hosts/mipsmach3.h"'
198 mips-*-netbsd* | mips*-*-openbsd*)
199 COREFILE=netbsd-core.lo
202 COREFILE=trad-core.lo
203 TRAD_HEADER='"hosts/decstation.h"'
205 mips-sgi-irix4*) COREFILE=irix-core.lo ;;
206 mips-sgi-irix5*) COREFILE=irix-core.lo ;;
207 mips-sgi-irix6*) COREFILE=irix-core.lo ;;
209 COREFILE=trad-core.lo
210 TRAD_HEADER='"hosts/mipsmach3.h"'
213 mips-*-sysv* | mips-*-riscos*)
214 COREFILE=trad-core.lo
215 TRAD_HEADER='"hosts/riscos.h"'
218 COREFILE=trad-core.lo
219 TRAD_HEADER='"hosts/news-mips.h"'
222 COREFILE=trad-core.lo
223 TRAD_HEADER='"hosts/dpx2.h"'
225 m68*-hp-hpux*) COREFILE=hpux-core.lo ;;
227 COREFILE=trad-core.lo
228 TRAD_HEADER='"hosts/hp300bsd.h"'
231 COREFILE=trad-core.lo
232 TRAD_HEADER='"hosts/m68klinux.h"'
235 COREFILE=trad-core.lo
236 TRAD_HEADER='"hosts/delta68.h"'
239 COREFILE=trad-core.lo
240 TRAD_HEADER='"hosts/news.h"'
242 m68*-*-netbsd* | m68*-*-openbsd*)
243 COREFILE=netbsd-core.lo
246 COREFILE=trad-core.lo
247 TRAD_HEADER='"hosts/m68kaux.h"'
250 m88*-motorola-sysv*) COREFILE=ptrace-core.lo ;;
252 COREFILE=trad-core.lo
253 TRAD_HEADER='"hosts/m88kmach3.h"'
256 COREFILE=trad-core.lo
257 TRAD_HEADER='"hosts/pc532mach.h"'
259 ns32k-*-netbsd* | ns32k-*-openbsd*)
260 COREFILE=netbsd-core.lo
262 rs6000-*-lynx*) COREFILE=lynx-core.lo ;;
263 rs6000-*-aix4*) COREFILE=rs6000-core.lo ;;
264 rs6000-*-*) COREFILE=rs6000-core.lo ;;
265 powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;;
266 powerpc-*-aix4*) COREFILE=rs6000-core.lo ;;
267 powerpc-*-aix*) COREFILE=rs6000-core.lo ;;
269 powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;;
270 sparc-*-netbsd* | sparc-*-openbsd*)
271 COREFILE=netbsd-core.lo
274 COREFILE=trad-core.lo
275 TRAD_HEADER='"hosts/tahoe.h"'
278 COREFILE=trad-core.lo
279 TRAD_HEADER='"hosts/vaxult2.h"'
282 COREFILE=trad-core.lo
283 TRAD_HEADER='"hosts/vaxult2.h"'
286 COREFILE=trad-core.lo
287 TRAD_HEADER='"hosts/vaxbsd.h"'
292 aix386-core.lo) COREFLAG=-DAIX386_CORE ;;
293 hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;;
294 hpux-core.lo) COREFLAG=-DHPUX_CORE ;;
295 irix-core.lo) COREFLAG=-DIRIX_CORE ;;
296 lynx-core.lo) COREFLAG=-DLYNX_CORE ;;
297 netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;;
298 osf-core.lo) COREFLAG=-DOSF_CORE ;;
299 ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;;
300 rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;;
301 sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;;
302 trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;;
305 # ELF corefile support has several flavors, but all of
306 # them use something called <sys/procfs.h>
307 AC_CHECK_HEADERS(sys/procfs.h)
308 if test "$ac_cv_header_sys_procfs_h" = yes; then
309 BFD_HAVE_SYS_PROCFS_TYPE(prstatus_t)
310 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(prstatus_t, pr_who)
311 BFD_HAVE_SYS_PROCFS_TYPE(pstatus_t)
312 BFD_HAVE_SYS_PROCFS_TYPE(prpsinfo_t)
313 BFD_HAVE_SYS_PROCFS_TYPE(psinfo_t)
314 BFD_HAVE_SYS_PROCFS_TYPE(lwpstatus_t)
315 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_context)
316 BFD_HAVE_SYS_PROCFS_TYPE_MEMBER(lwpstatus_t, pr_reg)
321 AC_DEFINE_UNQUOTED(TRAD_HEADER, $TRAD_HEADER,
322 [Name of host specific header file to include in trad-core.c.])
324 # Horrible hacks to build DLLs on Windows.
329 if test "$enable_shared" = "yes"; then
330 WIN32LDFLAGS="-no-undefined"
331 WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32"
335 AC_SUBST(WIN32LDFLAGS)
336 AC_SUBST(WIN32LIBADD)
340 # Canonicalize the secondary target names.
341 if test -n "$enable_targets" ; then
342 for targ in `echo $enable_targets | sed 's/,/ /g'`
344 result=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $targ 2>/dev/null`
345 if test -n "$result" ; then
346 canon_targets="$canon_targets $result"
348 # Allow targets that config.sub doesn't recognize, like "all".
349 canon_targets="$canon_targets $targ"
359 for targ in $target $canon_targets
361 if test "x$targ" = "xall"; then
365 if test "x$targ" = "x$target"; then
368 selvecs="$selvecs $targ_defvec $targ_selvecs"
369 selarchs="$selarchs $targ_archs"
370 TDEFINES="$TDEFINES $targ_cflags"
375 # This processing still needs to be done if we're to decide properly whether
376 # 64-bit support needs to be compiled in. Currently, it will be included if
377 # the default or any other explicitly requested target requires it; it
378 # will not be included on a 32-bit host if no 64-bit target is requested, and
379 # no "--with-64-bit-bfd" option is given, even if "--with-targets=all" is
382 # uniq the default and selected vectors in all the configured targets.
384 for i in $selvecs ; do
393 # uniq the architectures in all the configured targets.
395 for i in $selarchs ; do
403 # Target backend .o files.
406 elf="elf.lo elflink.lo dwarf2.lo dwarf1.lo"
411 # This list is alphabetized to make it easy to compare
412 # with the two vector lists in targets.c.
413 a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;;
414 a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;;
415 armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
416 armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;;
417 armpe_little_vec) tb="$tb pe-arm.lo cofflink.lo " ;;
418 armpe_big_vec) tb="$tb pe-arm.lo cofflink.lo " ;;
419 armpei_little_vec) tb="$tb pei-arm.lo cofflink.lo " ;;
420 armpei_big_vec) tb="$tb pei-arm.lo cofflink.lo " ;;
421 arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo cofflink.lo " ;;
422 arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo cofflink.lo " ;;
423 arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo cofflink.lo " ;;
424 arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo cofflink.lo " ;;
425 aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;;
426 aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;;
427 aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;;
428 aout_mips_big_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
429 aout_mips_little_vec) tb="$tb mipsbsd.lo aout32.lo" ;;
430 apollocoff_vec) tb="$tb coff-apollo.lo" ;;
431 b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;;
432 b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;;
433 bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"
435 bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
436 bfd_elf32_littlearm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
437 bfd_elf32_littlearm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
438 bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;;
439 bfd_elf32_bigarm_vec) tb="$tb elfarm-nabi.lo elf32.lo $elf" ;;
440 bfd_elf32_bigarm_oabi_vec) tb="$tb elfarm-oabi.lo elf32.lo $elf" ;;
441 bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
442 bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
443 bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
445 bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;;
446 bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;;
447 bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;;
448 bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;;
449 bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf32.lo $elf" ;;
450 bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;;
451 bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;;
452 bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;;
453 bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elf32.lo $elf ecofflink.lo" ;;
454 bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elf32-mips.lo elf32.lo $elf ecofflink.lo"
456 bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;;
457 bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;;
458 bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;;
459 bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
460 bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;;
461 bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;;
462 bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;;
463 bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
464 bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;;
465 bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
466 bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;;
467 bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elf32.lo $elf" ;;
468 bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;;
469 bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
471 bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"
473 bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elf64.lo $elf"
475 cisco_core_vec) tb="$tb cisco-core.lo" ;;
476 demo_64_vec) tb="$tb demo64.lo aout64.lo"
478 ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
479 ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
480 ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;;
481 ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"
483 go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;;
484 go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;;
485 h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;;
486 h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;;
487 host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;;
488 hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;;
489 hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;;
490 i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;;
491 i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;;
492 i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;;
493 i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;;
494 i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;;
495 i386msdos_vec) tb="$tb i386msdos.lo" ;;
496 i386pe_vec) tb="$tb pe-i386.lo cofflink.lo " ;;
497 i386pei_vec) tb="$tb pei-i386.lo cofflink.lo" ;;
498 i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;;
499 i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;;
500 i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;;
501 i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;;
502 i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;;
503 i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;;
504 i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;;
505 icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
506 icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;;
507 ieee_vec) tb="$tb ieee.lo" ;;
508 m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;;
509 m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;;
510 m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;;
511 m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;;
512 m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;;
513 m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;;
514 m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;;
515 m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;;
516 m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;;
517 m88kbcs_vec) tb="$tb coff-m88k.lo" ;;
518 mcore_pe_big_vec) tb="$tb pe-mcore.lo cofflink.lo" ;;
519 mcore_pe_little_vec) tb="$tb pe-mcore.lo cofflink.lo" ;;
520 mcore_pei_big_vec) tb="$tb pei-mcore.lo cofflink.lo" ;;
521 mcore_pei_little_vec) tb="$tb pei-mcore.lo cofflink.lo" ;;
522 newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;;
523 nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;;
524 nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;;
525 nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"
527 riscix_vec) tb="$tb aout32.lo riscix.lo" ;;
528 nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;;
529 pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;;
530 pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;;
531 pmac_xcoff_vec) tb="$tb coff-pmac.lo xcofflink.lo" ;;
532 rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;;
533 bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;;
534 bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo cofflink.lo" ;;
535 bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;;
536 bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo cofflink.lo" ;;
537 ppcboot_vec) tb="$tb ppcboot.lo" ;;
538 shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
539 shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
540 shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
541 shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;;
542 som_vec) tb="$tb som.lo" ;;
543 sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;;
544 sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;;
545 sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;;
546 sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;;
547 sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;;
548 sparccoff_vec) tb="$tb coff-sparc.lo" ;;
549 srec_vec) tb="$tb srec.lo" ;;
550 sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;;
551 symbolsrec_vec) tb="$tb srec.lo" ;;
552 tekhex_vec) tb="$tb tekhex.lo" ;;
553 tic30_aout_vec) tb="$tb aout-tic30.lo" ;;
554 tic30_coff_vec) tb="$tb coff-tic30.lo" ;;
555 tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;;
556 versados_vec) tb="$tb versados.lo" ;;
557 vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"
559 vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;;
560 w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;;
561 we32kcoff_vec) tb="$tb coff-we32k.lo" ;;
562 z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;;
565 *) AC_MSG_ERROR(*** unknown target vector $vec) ;;
569 # Target architecture .o files.
570 # A couple of CPUs use shorter file names to avoid problems on DOS
572 ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/`
574 # Weed out duplicate .o files.
596 if test x${all_targets} = xtrue ; then
597 bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)'
598 bfd_machines="${bfd_machines}"' $(ALL_MACHINES)'
602 else # all_targets is true
603 # Only set these if they will be nonempty, for the clever echo.
605 test -n "$selvecs" &&
606 havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'`
607 test -n "$selvecs" &&
608 selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
609 test -n "$selarchs" &&
610 selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'`
611 fi # all_targets is true
613 case ${host64}-${target64}-${want64} in
616 all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)'
617 if test -z "$GCC" && test "$BFD_HOST_64BIT_LONG" = "0" && test "$BFD_HOST_64_BIT_DEFINED" = "0"; then
618 AC_MSG_WARN([You have requested a 64 bit BFD configuration, but])
619 AC_MSG_WARN([your compiler may not have a 64 bit integral type])
624 all_backends='$(BFD32_BACKENDS)'
629 AC_SUBST(all_backends)
630 AC_SUBST(bfd_backends)
631 AC_SUBST(bfd_machines)
634 test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}"
635 test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'"
636 test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'"
637 test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}"
640 dnl AC_CHECK_HEADERS(sys/mman.h)
642 AC_CHECK_FUNCS(madvise mprotect)
643 case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in
644 true+yes ) AC_DEFINE(USE_MMAP, 1, [Use mmap if it's available?]) ;;
647 rm -f doc/config.status
648 AC_OUTPUT(Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in,
649 [sed -e '/POTFILES =/r po/POTFILES' po/Makefile.in > po/Makefile])