Added option to print the version number.
[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
3ad0ef37 6configdirs="autoconf libgcc mmalloc libiberty texinfo 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 7srctrigger=cfg-paper.texi
eb02fd64 8srcname="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
14case "${host_os}" in
b4e2a59b 15aix*) host_makefile_frag=config/mh-aix ;;
99823b66 16m88kbcs) host_makefile_frag=config/mh-delta88;;
5f32984e 17sysv4*) host_makefile_frag=config/mh-sysv4 ;;
bbc7590a 18solaris*) host_makefile_frag=config/mh-solaris ;;
407a8389 19sysv* | irix3) host_makefile_frag=config/mh-sysv ;;
27c28d61 20sco*) host_makefile_frag=config/mh-sco ;;
407a8389 21irix4) host_makefile_frag=config/mh-irix4 ;;
4da05fa0 22linux) host_makefile_frag=config/mh-linux ;;
0ddd7b50 23hpux) host_makefile_frag=config/mh-hpux ;;
3b2cf8e8
JG
24ultrix*)
25 case "${host_cpu}" in
26 mips) host_makefile_frag=config/mh-decstation ;;
27 esac
0e302572
SG
28esac
29
f4bda0ff 30case "${host_vendor}" in
dd16baba
SEF
31apollo*) case "${host_cpu}" in
32 m68k*)
68cd7865
SEF
33 case "${host_os}" in
34 sysv*) host_makefile_frag=config/mh-apollo68 ;;
35 bsd*) host_makefile_frag=config/mh-a68bsd ;;
36 esac;;
dd16baba 37 esac ;;
c4fb14b7
FF
38ncr*) case "${host_os}" in
39 sysv4*) host_makefile_frag=config/mh-ncr3000 ;;
40 esac ;;
41
f4bda0ff
SEF
42esac
43
0df06ca0 44# per-target:
bc58b41d 45
e99a90a7
RP
46bfd_target=
47
44e4e473
SC
48case "${target_vendor}" in
49amd)
50 case "${target_os}" in
43557c0a
DZ
51 ebmon) bfd_target="ebmon29k"
52 ;;
53 udi) bfd_target="udi29k"
54 ;;
55 *) echo "bad target_os for amd" 1>&2
56 ;;
44e4e473
SC
57 esac
58 ;;
59*)
e99a90a7 60 bfd_target=${target_alias}
44e4e473
SC
61 ;;
62esac
63
dfa891fc
DZ
64# remove various programs from consideration, if this is a cross-compiler
65# (host != target) build, AND if the host is one that has a
66# "native" environment that we support
43557c0a
DZ
67
68if [ x"${host}" = x"${target}" ] ; then
dfa891fc 69 configdirs=`echo ${configdirs} | sed -e 's/newlib//'`
43557c0a
DZ
70else
71 true
72fi
73
dfa891fc
DZ
74# remove various programs from consideration, based on the host or
75# target this usually means that a port of the program doesn't
76# exist yet.
77
78case "${host}" in
79hppa*-*-*)
80 configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
81 ;;
82*-*-solaris2)
83 configdirs=`echo ${configdirs} | sed -e 's/emacs//'`
84 ;;
85esac
86
43557c0a
DZ
87case "${target}" in
88mips-*-*)
89 configdirs=`echo ${configdirs} | sed -e 's/ld//;s/binutils//;s/gas//'`
90 ;;
91rs6000-*-*)
dfa891fc 92 configdirs=`echo ${configdirs} | sed -e 's/gas//;s/binutils//;s/ld//;s/libgcc//'`
43557c0a
DZ
93 ;;
94hppa*-*-*)
dfa891fc 95 configdirs=`echo ${configdirs} | sed -e 's/gas//;s/bfd//;s/gdb//;s/binutils//;s/gdbtest//;s/ld//;s/libg++//'`
43557c0a
DZ
96 ;;
97*-*-solaris2)
98 configdirs=`echo ${configdirs} | sed -e 's/gas//'`
05cd8d98
HS
99 ;;
100esac
101
43557c0a 102
bcdbe02f 103target_makefile_frag=config/mt-${bfd_target}
0e302572 104
bc58b41d
RP
105#
106# Local Variables:
107# fill-column: 131
108# End:
109#
9d3f69fb 110
This page took 0.052779 seconds and 4 git commands to generate.