Commit | Line | Data |
---|---|---|
eb02fd64 RP |
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 | ||
868ebe79 | 6 | configdirs="autoconf libgcc mmalloc libiberty texinfo opcodes bfd binutils byacc bison flex gcc readline glob ld gas gdb emacs ispell make grep diff rcs cvs patch send_pr libg++ newlib gprof gdbtest libm tgas " |
079399f6 | 7 | srctrigger=cfg-paper.texi |
eb02fd64 | 8 | srcname="gnu development package" |
0df06ca0 RP |
9 | |
10 | # per-host: | |
11 | ||
0c6087dd | 12 | # XXX - FIXME there needs to be a case for mh_dgux |
0e302572 SG |
13 | |
14 | case "${host_os}" in | |
b4e2a59b | 15 | aix*) host_makefile_frag=config/mh-aix ;; |
99823b66 | 16 | m88kbcs) host_makefile_frag=config/mh-delta88;; |
5f32984e | 17 | sysv4*) host_makefile_frag=config/mh-sysv4 ;; |
bbc7590a | 18 | solaris*) host_makefile_frag=config/mh-solaris ;; |
407a8389 | 19 | sysv* | irix3) host_makefile_frag=config/mh-sysv ;; |
f68be6f0 | 20 | scout) ;; |
27c28d61 | 21 | sco*) host_makefile_frag=config/mh-sco ;; |
407a8389 | 22 | irix4) host_makefile_frag=config/mh-irix4 ;; |
4da05fa0 | 23 | linux) host_makefile_frag=config/mh-linux ;; |
0ddd7b50 | 24 | hpux) host_makefile_frag=config/mh-hpux ;; |
3b2cf8e8 JG |
25 | ultrix*) |
26 | case "${host_cpu}" in | |
27 | mips) host_makefile_frag=config/mh-decstation ;; | |
28 | esac | |
0e302572 SG |
29 | esac |
30 | ||
f4bda0ff | 31 | case "${host_vendor}" in |
dd16baba SEF |
32 | apollo*) case "${host_cpu}" in |
33 | m68k*) | |
68cd7865 SEF |
34 | case "${host_os}" in |
35 | sysv*) host_makefile_frag=config/mh-apollo68 ;; | |
36 | bsd*) host_makefile_frag=config/mh-a68bsd ;; | |
37 | esac;; | |
dd16baba | 38 | esac ;; |
c4fb14b7 FF |
39 | ncr*) case "${host_os}" in |
40 | sysv4*) host_makefile_frag=config/mh-ncr3000 ;; | |
41 | esac ;; | |
42 | ||
f4bda0ff SEF |
43 | esac |
44 | ||
0df06ca0 | 45 | # per-target: |
bc58b41d | 46 | |
e99a90a7 RP |
47 | bfd_target= |
48 | ||
44e4e473 SC |
49 | case "${target_vendor}" in |
50 | amd) | |
51 | case "${target_os}" in | |
43557c0a DZ |
52 | ebmon) bfd_target="ebmon29k" |
53 | ;; | |
54 | udi) bfd_target="udi29k" | |
55 | ;; | |
56 | *) echo "bad target_os for amd" 1>&2 | |
57 | ;; | |
44e4e473 SC |
58 | esac |
59 | ;; | |
afba2b22 ILT |
60 | ericsson) |
61 | case "${target_alias}" in | |
62 | OSE68000 | ose68000) | |
63 | bfd_target="ose68000" | |
64 | ;; | |
65 | OSE68k | ose68k) | |
66 | bfd_target="ose68k" | |
67 | ;; | |
68 | *) | |
69 | bfd_target=${target-alias} | |
70 | ;; | |
71 | esac | |
72 | ;; | |
44e4e473 | 73 | *) |
e99a90a7 | 74 | bfd_target=${target_alias} |
44e4e473 SC |
75 | ;; |
76 | esac | |
77 | ||
dfa891fc DZ |
78 | # remove various programs from consideration, if this is a cross-compiler |
79 | # (host != target) build, AND if the host is one that has a | |
80 | # "native" environment that we support | |
43557c0a DZ |
81 | |
82 | if [ x"${host}" = x"${target}" ] ; then | |
dfa891fc | 83 | configdirs=`echo ${configdirs} | sed -e 's/newlib//'` |
43557c0a DZ |
84 | else |
85 | true | |
86 | fi | |
87 | ||
dfa891fc DZ |
88 | # remove various programs from consideration, based on the host or |
89 | # target this usually means that a port of the program doesn't | |
90 | # exist yet. | |
91 | ||
92 | case "${host}" in | |
93 | hppa*-*-*) | |
94 | configdirs=`echo ${configdirs} | sed -e 's/emacs//'` | |
95 | ;; | |
96 | *-*-solaris2) | |
97 | configdirs=`echo ${configdirs} | sed -e 's/emacs//'` | |
98 | ;; | |
99 | esac | |
100 | ||
43557c0a DZ |
101 | case "${target}" in |
102 | mips-*-*) | |
103 | configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'` | |
104 | ;; | |
105 | rs6000-*-*) | |
dfa891fc | 106 | configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//;s/libgcc//'` |
43557c0a DZ |
107 | ;; |
108 | hppa*-*-*) | |
dfa891fc | 109 | configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/libg++//'` |
43557c0a DZ |
110 | ;; |
111 | *-*-solaris2) | |
112 | configdirs=`echo ${configdirs} | sed -e 's/gas//'` | |
05cd8d98 HS |
113 | ;; |
114 | esac | |
115 | ||
43557c0a | 116 | |
bcdbe02f | 117 | target_makefile_frag=config/mt-${bfd_target} |
0e302572 | 118 | |
bc58b41d RP |
119 | # |
120 | # Local Variables: | |
121 | # fill-column: 131 | |
122 | # End: | |
123 | # | |
9d3f69fb | 124 |