* configure.in: handle some programs as cross-only, and others as
[deliverable/binutils-gdb.git] / configure.in
CommitLineData
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
ba4513e7
DZ
6
7configdirs="mmalloc libiberty texinfo flex byacc bison opcodes bfd binutils gcc readline glob ld gas gdb make patch send_pr libg++ gprof gdbtest libm tgas etc tcl expect tk deja-gnu z8ksim"
8
9cross_only_tools="xiberty newlib"
10
11native_only_tools="m4 autoconf ispell grep diff rcs cvs sed fileutils shellutils textutils wdiff find emacs"
12
378fd382 13srctrigger=move-if-change
eb02fd64 14srcname="gnu development package"
0df06ca0
RP
15
16# per-host:
17
cec673a2
DZ
18case "${host}" in
19 m68k-apollo-sysv*) host_makefile_frag=config/mh-apollo68 ;;
20 m68k-apollo-bsd*) host_makefile_frag=config/mh-a68bsd ;;
21 m88k-motorola-m88kbcs) host_makefile_frag=config/mh-delta88;;
22 m88k-dg-dgux*) host_makefile_frag=config/mh-dgux ;;
23 mips-dec-ultrix*) host_makefile_frag=config/mh-decstation ;;
24 mips-sgi-irix4) host_makefile_frag=config/mh-irix4 ;;
25 mips-sgi-irix3) host_makefile_frag=config/mh-sysv ;;
26 i[34]86-ncr-sysv4*) host_makefile_frag=config/mh-ncr3000 ;;
27 i[34]86-*-sco*) host_makefile_frag=config/mh-sco ;;
28 i[34]86-*-linux) host_makefile_frag=config/mh-linux ;;
6845e2da 29 i[34]86-*-solaris2*) host_makefile_frag=config/mh-sysv4 ;;
cec673a2
DZ
30 *-ibm-aix*) host_makefile_frag=config/mh-aix ;;
31 *-sun-solaris*) host_makefile_frag=config/mh-solaris ;;
d10f77c1 32 *-sun-*) host_makefile_frag=config/mh-sun ;;
cec673a2
DZ
33 *-hp-hpux) host_makefile_frag=config/mh-hpux ;;
34 *-*sysv4*) host_makefile_frag=config/mh-sysv4 ;;
35 *-*sysv*) host_makefile_frag=config/mh-sysv ;;
f4bda0ff
SEF
36esac
37
0df06ca0 38# per-target:
bc58b41d 39
e99a90a7
RP
40bfd_target=
41
cec673a2
DZ
42case "${target}" in
43 a29k-amd-ebmon) bfd_target="ebmon29k" ;;
44 a29k-amd-udi) bfd_target="udi29k" ;;
45 a29k-amd-*) echo "bad target_os for amd" 1>&2
46 exit 1
47 ;;
44e4e473
SC
48esac
49
c014d597 50
ba4513e7
DZ
51# some tools are only suitable for building in a "native" situation.
52# Those are added when we have a host==target configuration. For cross
53# toolchains, we add some directories that should only be useful in a
54# cross-compiler.
43557c0a
DZ
55
56if [ x"${host}" = x"${target}" ] ; then
ba4513e7 57 configdirs="${configdirs} ${native_only_tools}"
43557c0a 58else
ba4513e7 59 configdirs="${configdirs} ${cross_only_tools}"
43557c0a
DZ
60fi
61
c014d597 62# remove more programs from consideration, based on the host or
dfa891fc
DZ
63# target this usually means that a port of the program doesn't
64# exist yet.
65
378fd382
DZ
66#case "${host}" in
67# hppa*-*-*)
68# configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
69# ;;
70#esac
dfa891fc 71
43557c0a 72case "${target}" in
15ae586e
DZ
73 mips-*-*)
74 configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
75 ;;
76 rs6000-*-*)
ba4513e7 77 configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//;s/tk//'`
15ae586e
DZ
78 ;;
79 hppa*-*-*)
4d1e5a4e 80 configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//;s/bfd//;s/gdb//'`
15ae586e
DZ
81 ;;
82 *-*-solaris2)
ba4513e7 83 configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
15ae586e 84 ;;
05cd8d98
HS
85esac
86
43557c0a 87
bcdbe02f 88target_makefile_frag=config/mt-${bfd_target}
0e302572 89
bc58b41d
RP
90#
91# Local Variables:
92# fill-column: 131
93# End:
94#
9d3f69fb 95
This page took 0.057157 seconds and 4 git commands to generate.