BSD 4_4_Lite2 development
[unix-history] / usr / src / contrib / gdb-4.7.LBL / configure.in
CommitLineData
b7b68db1
C
1# This file is a shell script fragment that supplies the information
2# necessary to tailor a template configure script into the configure
3# script appropriate for this directory. For more information, check
4# any existing configure script.
5
6configdirs="autoconf libgcc mmalloc libiberty flex byacc bison opcodes bfd binutils gcc readline glob ld gas gdb emacs ispell make grep diff rcs cvs patch send_pr libg++ newlib gprof gdbtest libm tgas "
7srctrigger=cfg-paper.texi
8srcname="gnu development package"
9
10# per-host:
11
12case "${host}" in
13 m68k-apollo-sysv*) host_makefile_frag=config/mh-apollo68 ;;
14 m68k-apollo-bsd*) host_makefile_frag=config/mh-a68bsd ;;
15 m88k-motorola-m88kbcs) host_makefile_frag=config/mh-delta88;;
16 m88k-dg-dgux*) host_makefile_frag=config/mh-dgux ;;
17 mips-dec-ultrix*) host_makefile_frag=config/mh-decstation ;;
18 mips-sgi-irix4) host_makefile_frag=config/mh-irix4 ;;
19 mips-sgi-irix3) host_makefile_frag=config/mh-sysv ;;
20 i[34]86-ncr-sysv4*) host_makefile_frag=config/mh-ncr3000 ;;
21 i[34]86-*-sco*) host_makefile_frag=config/mh-sco ;;
22 i[34]86-*-linux) host_makefile_frag=config/mh-linux ;;
23 *-ibm-aix*) host_makefile_frag=config/mh-aix ;;
24 *-sun-solaris*) host_makefile_frag=config/mh-solaris ;;
25 *-hp-hpux) host_makefile_frag=config/mh-hpux ;;
26 *-*sysv4*) host_makefile_frag=config/mh-sysv4 ;;
27 *-*sysv*) host_makefile_frag=config/mh-sysv ;;
28esac
29
30# per-target:
31
32bfd_target=
33
34case "${target}" in
35 a29k-amd-ebmon) bfd_target="ebmon29k" ;;
36 a29k-amd-udi) bfd_target="udi29k" ;;
37 a29k-amd-*) echo "bad target_os for amd" 1>&2
38 exit 1
39 ;;
40esac
41
42# remove various programs from consideration, if this is a cross-compiler
43# (host != target) build, AND if the host is one that has a
44# "native" environment that we support
45
46if [ x"${host}" = x"${target}" ] ; then
47 configdirs=`echo ${configdirs} | sed -e 's/newlib//'`
48else
49 true
50fi
51
52# remove various programs from consideration, based on the host or
53# target this usually means that a port of the program doesn't
54# exist yet.
55
56case "${host}" in
57 hppa*-*-*)
58 configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
59 ;;
60 *-*-solaris2)
61 configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
62 ;;
63esac
64
65case "${target}" in
66 mips-*-*)
67 configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
68 ;;
69 rs6000-*-*)
70 configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//;s/libgcc//'`
71 ;;
72 hppa*-*-*)
73 configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/libg++//'`
74 ;;
75 *-*-solaris2)
76 configdirs=`echo ${configdirs} | sed -e 's/gas//'`
77 ;;
78esac
79
80
81target_makefile_frag=config/mt-${bfd_target}
82
83#
84# Local Variables:
85# fill-column: 131
86# End:
87#
88