binutils-gdb/bfd/configure.in

271 lines
4.7 KiB
Plaintext
Raw Normal View History

# This file is a shell script that supplies the information necessary
# to tailor a template configure script into the configure script
# appropriate for this directory. For more information, check any
# existing configure script.
configdirs="doc"
srctrigger=libbfd.c
srcname="BFD"
target_dependent=true
# per-host:
case "${host_cpu}" in
rs6000) my_host=rs6000
;;
mips)
case "${host_vendor}" in
dec) my_host=decstation ;;
sgi)
case "${host_os}" in
irix3) my_host=irix3 ;;
irix4) my_host=irix4 ;;
esac
;;
esac
;;
m88k)
case "${host_vendor}" in
motorola)
my_host=delta88 ;;
harris)
my_host=harris ;;
*)
case "${host_os}" in
dgux) my_host=dgux ;;
1991-08-22 16:15:49 +09:00
esac
;;
esac
;;
m68k|m680[01234]0)
case "${host_vendor}" in
cbm)
case ${host_os} in
amigados) my_host=amigados ;;
sysv4*) my_host=amix ;;
1991-08-22 16:15:49 +09:00
esac
;;
hp)
case "${host_os}" in
hpux) my_host=hp9000 ;;
bsd) my_host=hp300bsd ;;
1991-08-22 16:15:49 +09:00
esac
;;
sony) my_host=news ;;
sun) my_host=sun3 ;;
1992-03-12 14:08:56 +08:00
apollo*)
case "${host_os}" in
sysv*) my_host=apollov68 ;;
bsd*) my_host=apollo68 ;;
1992-03-12 14:08:56 +08:00
esac
;;
esac
;;
1991-08-22 16:15:49 +09:00
i860) my_host=stratus
;;
i386)
case "${host_vendor}" in
ncr*)
case "${host_os}" in
sysv4*) my_host=ncr3000 ;;
esac
;;
*)
case "${host_os}" in
1992-04-24 22:37:32 +08:00
go32) my_host=go32 ;;
sysv4*) my_host=i386v4 ;;
1992-01-31 08:32:38 +08:00
sysv* | scosysv*) my_host=i386v ;;
mach*) my_host=i386mach ;;
msdos*) my_host=dose ;;
1991-08-22 16:15:49 +09:00
esac
;;
esac
;;
1991-08-22 16:15:49 +09:00
sparc)
case "${host_os}" in
1991-10-16 09:45:32 +08:00
sunos64) my_host=sparc-ll ;;
sysv4|solaris2) my_host=sysv4 ;;
sysv64) my_host=sysv4-ll ;;
*) my_host=sparc ;;
esac
;;
1991-08-22 16:15:49 +09:00
romp) my_host=rtbsd
;;
a29k) my_host=ultra3
;;
tahoe)
my_host=tahoe
;;
vax)
case "${host_os}" in
1992-03-12 14:08:56 +08:00
ultrix*) my_host=vaxult ;;
*) my_host=vaxbsd ;;
1991-08-22 16:15:49 +09:00
esac
;;
esac
1991-08-22 16:15:49 +09:00
# Set up to make a link between the host's include file and "sysdep.h".
files="hosts/${my_host}.h"
links="sysdep.h"
if [ ! -f ${srcdir}/${files} ] ; then
if [ -n "${my_host}" ] ; then
echo '***' No file ${srcdir}/${files}
fi
echo '***' ${srcname} does not support host ${host}
exit 1
fi
host_makefile_frag=
if [ -f ${srcdir}/config/${my_host}.mh ] ; then
host_makefile_frag=config/${my_host}.mh
fi
1991-08-22 16:15:49 +09:00
# per-target:
1991-08-23 12:31:44 +09:00
case "${target_vendor}" in
aout | coff | bout | elf) bfd_target=${target_cpu}-${target_vendor} ;;
1991-12-07 01:56:02 +08:00
sony) bfd_target=news ;;
intel) bfd_target=${target_cpu}-coff ;;
stratus | cbm | ncr) bfd_target=${target_cpu}-elf ;;
unknown)
case "${target_os}" in
aout|bsd) bfd_target=${target_cpu}-aout ;;
sysv4*) bfd_target=${target_cpu}-elf ;;
1992-04-24 22:37:32 +08:00
go32) bfd_target=i386-aout ;;
1992-01-31 08:32:38 +08:00
sysv* | scosysv*) bfd_target=${target_cpu}-coff ;;
none) case "${target_cpu}" in
tahoe | vax) bfd_target=${target_cpu} ;;
esac
esac
;;
Mon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com) * cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c, cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These files will eventually contain processor specific bits for bfd, like strange relocation information and dis/assembly. So far only the H8 has been even partially done. This work also ties in with the change in handling architectures. * aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to discover the architecture of the bfd. (sunos4_callback) calls the function bfd_set_arch_mach rather than stuffing stuff directly into the bfd. (sunos4_write_object_contents), changed names of accessor functions. * aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to setup the environment. * archive.c: (bfd_slurp_coff_armap) coff archives always have the headers in big endian format, regardless of the endianess of the host or target. * archures.c: totally changed. Now an architecture is represented with a pointer to an info structure rather than an enumerated type and a long. The old info is available as two elements in the structure. Future enhancements to architecure support will involve pointers to methods being placed into the info structure. * bfd.c: changed the definition of the bfd structure for the new architecture stuff. * bout.c: (b_out_set_arch_mach) changed to use the new architecture mechanism. * coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use the new architecture mechanism. * configure.in: added h8 stuff. * ieee.c: too many changes to note. Now ieee files written with bfd gas and ld can be read by gld and ieee only linkers and simulators. * libbfd.c, libbfd.h: changed prototype of bfd_write. * newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather than fixing the structure directly. * oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * opncls.c: (new_bfd) makes sure that bfd_init has been called before opening a bfd. * srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * targets.c: (target_vector) now by defining SELECT_VECS (perhaps in the t/hmake file) a user can select which backends they want linked with bfd without changing the source. * init.c: new, looks after initializing modules. * howto.c: for future use, will allow an application to work out what cookie to use as a handle on a relcoatio howto.
1991-10-01 11:43:43 +08:00
ibm) my_host=rs6000
case "${target_cpu}" in
rs6000) bfd_target=rs6000 ;;
esac
;;
1991-10-16 09:10:42 +08:00
amd)
case "${target_os}" in
ebmon) bfd_target=a29k-coff ;;
1992-04-24 22:37:32 +08:00
udi) bfd_target=a29k-coff ;;
1991-10-16 09:10:42 +08:00
*) bfd_target=a29k-aout ;;
esac
;;
Mon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com) * cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c, cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These files will eventually contain processor specific bits for bfd, like strange relocation information and dis/assembly. So far only the H8 has been even partially done. This work also ties in with the change in handling architectures. * aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to discover the architecture of the bfd. (sunos4_callback) calls the function bfd_set_arch_mach rather than stuffing stuff directly into the bfd. (sunos4_write_object_contents), changed names of accessor functions. * aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to setup the environment. * archive.c: (bfd_slurp_coff_armap) coff archives always have the headers in big endian format, regardless of the endianess of the host or target. * archures.c: totally changed. Now an architecture is represented with a pointer to an info structure rather than an enumerated type and a long. The old info is available as two elements in the structure. Future enhancements to architecure support will involve pointers to methods being placed into the info structure. * bfd.c: changed the definition of the bfd structure for the new architecture stuff. * bout.c: (b_out_set_arch_mach) changed to use the new architecture mechanism. * coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use the new architecture mechanism. * configure.in: added h8 stuff. * ieee.c: too many changes to note. Now ieee files written with bfd gas and ld can be read by gld and ieee only linkers and simulators. * libbfd.c, libbfd.h: changed prototype of bfd_write. * newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather than fixing the structure directly. * oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * opncls.c: (new_bfd) makes sure that bfd_init has been called before opening a bfd. * srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * targets.c: (target_vector) now by defining SELECT_VECS (perhaps in the t/hmake file) a user can select which backends they want linked with bfd without changing the source. * init.c: new, looks after initializing modules. * howto.c: for future use, will allow an application to work out what cookie to use as a handle on a relcoatio howto.
1991-10-01 11:43:43 +08:00
hitachi)
case "${target_cpu}" in
h8300) bfd_target=h8300-coff ;;
Mon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com) * cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c, cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These files will eventually contain processor specific bits for bfd, like strange relocation information and dis/assembly. So far only the H8 has been even partially done. This work also ties in with the change in handling architectures. * aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to discover the architecture of the bfd. (sunos4_callback) calls the function bfd_set_arch_mach rather than stuffing stuff directly into the bfd. (sunos4_write_object_contents), changed names of accessor functions. * aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to setup the environment. * archive.c: (bfd_slurp_coff_armap) coff archives always have the headers in big endian format, regardless of the endianess of the host or target. * archures.c: totally changed. Now an architecture is represented with a pointer to an info structure rather than an enumerated type and a long. The old info is available as two elements in the structure. Future enhancements to architecure support will involve pointers to methods being placed into the info structure. * bfd.c: changed the definition of the bfd structure for the new architecture stuff. * bout.c: (b_out_set_arch_mach) changed to use the new architecture mechanism. * coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use the new architecture mechanism. * configure.in: added h8 stuff. * ieee.c: too many changes to note. Now ieee files written with bfd gas and ld can be read by gld and ieee only linkers and simulators. * libbfd.c, libbfd.h: changed prototype of bfd_write. * newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather than fixing the structure directly. * oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * opncls.c: (new_bfd) makes sure that bfd_init has been called before opening a bfd. * srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * targets.c: (target_vector) now by defining SELECT_VECS (perhaps in the t/hmake file) a user can select which backends they want linked with bfd without changing the source. * init.c: new, looks after initializing modules. * howto.c: for future use, will allow an application to work out what cookie to use as a handle on a relcoatio howto.
1991-10-01 11:43:43 +08:00
*) echo "bad hitachi cpu" ;;
esac
;;
1991-08-23 12:31:44 +09:00
wrs)
1991-08-22 16:15:49 +09:00
case "${target_cpu}" in
1991-08-23 12:31:44 +09:00
i960) bfd_target=i960-bout ;;
m68k|m680[01234]0) bfd_target=m68k-aout ;;
1991-08-22 16:15:49 +09:00
esac
;;
1991-08-23 12:31:44 +09:00
sun)
1991-08-22 16:15:49 +09:00
case "${target_cpu}" in
m68k|m680[01234]0) bfd_target=m68k-aout ;;
sparc) case "${target_os}" in
sysv4|solaris2) bfd_target=sparc-elf ;;
*) bfd_target=sparc-aout ;;
esac
;;
1991-08-23 12:31:44 +09:00
esac
;;
dec)
case "${target_cpu}" in
1991-10-16 09:10:42 +08:00
mips) bfd_target=decstation ;;
vax) bfd_target=vax ;;
1991-08-23 12:31:44 +09:00
esac
;;
hp)
case "${target_cpu}" in
m68k|m680[01234]0)
1991-08-23 12:31:44 +09:00
case "${target_os}" in
hpux) bfd_target=hp9000 ;;
bsd) bfd_target=hp300bsd ;;
1991-08-22 16:15:49 +09:00
esac
;;
esac
;;
Mon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com) * cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c, cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These files will eventually contain processor specific bits for bfd, like strange relocation information and dis/assembly. So far only the H8 has been even partially done. This work also ties in with the change in handling architectures. * aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to discover the architecture of the bfd. (sunos4_callback) calls the function bfd_set_arch_mach rather than stuffing stuff directly into the bfd. (sunos4_write_object_contents), changed names of accessor functions. * aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to setup the environment. * archive.c: (bfd_slurp_coff_armap) coff archives always have the headers in big endian format, regardless of the endianess of the host or target. * archures.c: totally changed. Now an architecture is represented with a pointer to an info structure rather than an enumerated type and a long. The old info is available as two elements in the structure. Future enhancements to architecure support will involve pointers to methods being placed into the info structure. * bfd.c: changed the definition of the bfd structure for the new architecture stuff. * bout.c: (b_out_set_arch_mach) changed to use the new architecture mechanism. * coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use the new architecture mechanism. * configure.in: added h8 stuff. * ieee.c: too many changes to note. Now ieee files written with bfd gas and ld can be read by gld and ieee only linkers and simulators. * libbfd.c, libbfd.h: changed prototype of bfd_write. * newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather than fixing the structure directly. * oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * opncls.c: (new_bfd) makes sure that bfd_init has been called before opening a bfd. * srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * targets.c: (target_vector) now by defining SELECT_VECS (perhaps in the t/hmake file) a user can select which backends they want linked with bfd without changing the source. * init.c: new, looks after initializing modules. * howto.c: for future use, will allow an application to work out what cookie to use as a handle on a relcoatio howto.
1991-10-01 11:43:43 +08:00
sgi)
case "${target_cpu}" in
mips)
bfd_target=irix3 ;;
esac
;;
1992-03-12 14:08:56 +08:00
big)
case "${target_cpu}" in
mips)
bfd_target=irix3 ;;
esac
;;
tandem)
bfd_target=st2000
1992-03-12 14:08:56 +08:00
;;
none|nyu|sco)
1991-08-23 13:50:56 +09:00
case "${target_cpu}" in
m68k|m680[01234]0) case "${target_os}" in
1992-03-12 14:08:56 +08:00
os68k) bfd_target=m68k-aout ;;
esac
;;
i386) bfd_target=i386-coff ;;
1991-09-13 15:16:32 +09:00
a29k) case "${target_os}" in
aout) bfd_target=a29k-aout ;;
coff) bfd_target=a29k-coff ;;
sym1) bfd_target=a29k-coff ;;
esac
;;
Mon Sep 30 15:13:46 1991 Steve Chamberlain (steve at cygnus.com) * cpu-a29k.c, cpu-i386.c, cpu-m68k.c, cpu-mips.c, cpu-vax.c, cpu-h8300.c, cpu-i960.c, cpu-m88k.c, cpu-sparc.c: added. These files will eventually contain processor specific bits for bfd, like strange relocation information and dis/assembly. So far only the H8 has been even partially done. This work also ties in with the change in handling architectures. * aout-f1.h: (choose_reloc_size) now calls bfd_get_arch to discover the architecture of the bfd. (sunos4_callback) calls the function bfd_set_arch_mach rather than stuffing stuff directly into the bfd. (sunos4_write_object_contents), changed names of accessor functions. * aoutx.h: (set_arch_mach) now calls bfd_default_set_arch_mach to setup the environment. * archive.c: (bfd_slurp_coff_armap) coff archives always have the headers in big endian format, regardless of the endianess of the host or target. * archures.c: totally changed. Now an architecture is represented with a pointer to an info structure rather than an enumerated type and a long. The old info is available as two elements in the structure. Future enhancements to architecure support will involve pointers to methods being placed into the info structure. * bfd.c: changed the definition of the bfd structure for the new architecture stuff. * bout.c: (b_out_set_arch_mach) changed to use the new architecture mechanism. * coffcode.h: (coff_set_arch_mach, coff_set_flags) changed to use the new architecture mechanism. * configure.in: added h8 stuff. * ieee.c: too many changes to note. Now ieee files written with bfd gas and ld can be read by gld and ieee only linkers and simulators. * libbfd.c, libbfd.h: changed prototype of bfd_write. * newsos3.c: (newos3_callback) now calls bfd_set_arch_mach rather than fixing the structure directly. * oasys.c: (oasys_object_p) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * opncls.c: (new_bfd) makes sure that bfd_init has been called before opening a bfd. * srec.c: (srec_set_arch_mach) now calls bfd_default_set_arch_mach rather than fixing the structure directly. * targets.c: (target_vector) now by defining SELECT_VECS (perhaps in the t/hmake file) a user can select which backends they want linked with bfd without changing the source. * init.c: new, looks after initializing modules. * howto.c: for future use, will allow an application to work out what cookie to use as a handle on a relcoatio howto.
1991-10-01 11:43:43 +08:00
tahoe | vax) bfd_target=${target_cpu} ;;
1991-08-23 13:50:56 +09:00
esac
;;
harris)
case "${target_cpu}" in
1991-12-07 01:56:02 +08:00
m88k) bfd_target=m88k-coff ;;
esac
;;
motorola)
case "${target_cpu}" in
1991-12-07 01:56:02 +08:00
m88k) bfd_target=m88k-coff ;;
esac
;;
1991-08-23 12:31:44 +09:00
*)
case "${target_cpu}" in
tahoe | vax) bfd_target=${target_cpu} ;;
esac
;;
1991-08-22 16:15:49 +09:00
esac
if [ ! -f ${srcdir}/config/${bfd_target}.mt ] ; then
if [ -n "${bfd_target}" ] ; then
echo '***' No file ${srcdir}/config/${bfd_target}.mt
fi
echo '***' BFD does not support target ${target}
1991-12-07 01:56:02 +08:00
echo '***' Look in bfd/configure.in for supported targets
exit 1
fi
target_makefile_frag=config/${bfd_target}.mt
1991-08-22 16:15:49 +09:00
# We don't do any links based on the target system, just very minor makefile
# config.