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