* ldmain.c (main): Don't add scriptdir to the lib search path.
[deliverable/binutils-gdb.git] / ld / configure.in
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
6 srctrigger=ldmain.c
7 srcname="linker"
8 target_dependent=true
9
10 # per-host:
11
12 . ${srcdir}/../bfd/configure.host
13
14 host_makefile_frag=
15
16 if [ -f ${srcdir}/config/${my_host}.mh ] ; then
17 host_makefile_frag=config/${my_host}.mh
18 fi
19
20 # per-target:
21
22 case "${target}" in
23
24 sparc-sun-sunos4*) my_target=sun4
25 ;;
26 m68k-sun-sunos[34]*) my_target=sun3
27 ;;
28 sparclite*-fujitsu-*) my_target=sun4
29 ;;
30 sparc*-*-aout) my_target=sun4
31 ;;
32 # start-sanitize-v9
33 sparc64*) my_target=sun4
34 ;;
35 # end-sanitize-v9
36 i960-wrs-vxworks*) my_target=i960
37 ;;
38 i960-intel-nindy) my_target=i960
39 ;;
40 m68k-wrs-vxworks*) my_target=vxworks68
41 ;;
42 m680[01234]0-wrs-vxworks*) my_target=vxworks68
43 ;;
44 m683?2-wrs-vxworks*) my_target=vxworks68
45 ;;
46 sparc*-wrs-vxworks*) my_target=sun4
47 ;;
48 m68k-ericsson-ose) my_target=ose68
49 ;;
50 m680[01234]0-ericsson-ose) my_target=ose68
51 ;;
52 m683?2-ericsson-ose) my_target=ose68
53 ;;
54 *-tandem-none) my_target=st2000 # FIXME needs better name
55 ;;
56 i[34]86-*-go32) my_target=go32
57 ;;
58 i[34]86-*-aix*) my_target=i386-coff
59 ;;
60 i[34]86-*-sco*) my_target=i386-coff
61 ;;
62 i[34]86-*-coff) my_target=i386-coff
63 ;;
64 i[34]86-*-bsd) my_target=i386-bsd
65 ;;
66 i[34]86-*-aout) my_target=i386-aout
67 ;;
68 i[34]86-*-sysv*) my_target=i386-coff
69 ;;
70 m88k-*-*) my_target=m88k-bcs
71 ;;
72 a29k-*-udi) my_target=sa29200
73 ;;
74 a29k-*-ebmon) my_target=ebmon29k
75 ;;
76 a29k-*-*) my_target=coff-a29k
77 ;;
78 h8300-*-hms) my_target=coff-h8300
79 ;;
80 h8500-*-hms) my_target=coff-h8500
81 ;;
82 sh-*-*) my_target=coff-sh
83 ;;
84 m68k-sony-*) my_target=news
85 ;;
86 m68k-hp-bsd*) my_target=hp300bsd
87 ;;
88 m68*-*-aout) my_target=m68k
89 ;;
90 m68*-*-coff) my_target=m68k-coff
91 ;;
92 m68*-*-hpux) my_target=hp300hpux
93 ;;
94 m68*-*-*) echo '***' "Unknown m68k target vendor for ld:" ${target_vendor} 1>&2
95 exit 1
96 ;;
97 hppa*-hp-osf) my_target=hppaosf
98 ;;
99 vax-dec-ultrix* | vax-dec-bsd*) my_target=vax
100 ;;
101 mips-dec-ultrix*) my_target=mips-lit
102 ;;
103 mips-sgi-irix*) my_target=mips-big
104 ;;
105 mips-idt-ecoffl*) my_target=mips-idtl
106 ;;
107 mips-idt-ecoff*) my_target=mips-idt
108 ;;
109 mips-dec-bsd*) my_target=mipsbsd
110 ;;
111 z8k-*sim) my_target=z8ksim
112 ;;
113 *-*-aout) my_target=${target_cpu}-${target_vendor}
114 ;;
115 *-*-coff) my_target=${target_cpu}-${target_vendor}
116 ;;
117 esac
118
119 target_makefile_frag=config/${my_target}.mt
120
121 if [ ! -r ${srcdir}/${target_makefile_frag} ]; then
122 echo '***' GNU LD does not support target ${target} 1>&2
123 exit 1
124 fi
125
126 mkdir ldscripts 2>/dev/null
This page took 0.033768 seconds and 5 git commands to generate.