Thu Oct 5 13:27:30 1995 steve chamberlain <sac@slash.cygnus.com>
[deliverable/binutils-gdb.git] / gdb / configure.in
1 dnl Process this file with autoconf to produce a configure script.
2 AC_PREREQ(2.3)dnl
3 AC_INIT(main.c)
4
5 CC=${CC-cc}
6 AC_PROG_CC
7 AC_AIX
8 AC_MINIX
9 AC_ISC_POSIX
10
11 AC_PROG_INSTALL
12 AC_PROG_RANLIB
13
14 AC_CONFIG_AUX_DIR(`cd $srcdir;pwd`/..)
15 AC_CANONICAL_SYSTEM
16 AC_ARG_PROGRAM
17
18 AC_HEADER_STDC
19 AC_CHECK_HEADERS(memory.h string.h strings.h unistd.h termios.h termio.h sgtty.h)
20 AC_HEADER_STAT
21
22 AC_FUNC_MMAP
23
24 dnl Handle optional features that can be enabled.
25 ENABLE_CFLAGS=
26 ENABLE_CLIBS=
27 ENABLE_OBS=
28
29 AC_ARG_ENABLE(netrom,
30 [ --enable-netrom ],
31 [case "${enableval}" in
32 yes) enable_netrom=yes ;;
33 no) enable_netrom=no ;;
34 *) AC_MSG_ERROR(bad value ${enableval} given for netrom option) ;;
35 esac])
36
37 if test "${enable_netrom}" = "yes"; then
38 ENABLE_OBS="${ENABLE_OBS} remote-nrom.o"
39 fi
40
41 # start-sanitize-gdbtk
42 ENABLE_GDBTK=
43
44 AC_ARG_ENABLE(gdbtk,
45 [ --enable-gdbtk ],
46 [case "${enableval}" in
47 yes) enable_gdbtk=yes ;;
48 no) enable_gdbtk=no ;;
49 *) AC_MSG_ERROR(bad value ${enableval} given for gdbtk option) ;;
50 esac])
51
52 if test "${enable_gdbtk}" = "yes"; then
53 AC_PATH_X
54 AC_PATH_XTRA
55
56 CYGNUS_PATH_TK
57 CYGNUS_PATH_TCL
58
59 ENABLE_GDBTK=1
60
61 if test "x$x_includes" != "x" ;
62 then
63 X_INCDIR="-I$x_includes"
64 else
65 X_INCDIR=""
66 fi
67
68 if test "x$x_libraries" != "x" ;
69 then
70 X_LIBDIR="-L$x_libraries"
71 else
72 X_LIBDIR=""
73 fi
74
75 TCL_LIBS='$(TCL) $(TK) $(X11)'
76 ENABLE_CLIBS="${ENABLE_CLIBS} ${TCL_LIBS} -lm"
77 ENABLE_OBS="${ENABLE_OBS} gdbtk.o"
78 fi
79 AC_SUBST(ENABLE_GDBTK)
80 AC_SUBST(X_INCDIR)
81 AC_SUBST(X_LIBDIR)
82 # end-sanitize-gdbtk
83
84 AC_SUBST(ENABLE_CFLAGS)
85 AC_SUBST(ENABLE_CLIBS)
86 AC_SUBST(ENABLE_OBS)
87
88
89 configdirs="doc testsuite"
90
91 dnl
92 changequote(,)dnl
93
94 # Map host cpu into the config cpu subdirectory name.
95 # The default is $host_cpu.
96
97 case "${host_cpu}" in
98
99 c[12]) gdb_host_cpu=convex ;;
100 hppa*) gdb_host_cpu=pa ;;
101 i[345]86) gdb_host_cpu=i386 ;;
102 m68*) gdb_host_cpu=m68k ;;
103 m88*) gdb_host_cpu=m88k ;;
104 np1) gdb_host_cpu=gould ;;
105 pyramid) gdb_host_cpu=pyr ;;
106 powerpc*) gdb_host_cpu=powerpc ;;
107 *) gdb_host_cpu=$host_cpu ;;
108
109 esac
110
111 # map host info into gdb names.
112
113 case "${host}" in
114
115 a29k-*-*) gdb_host=ultra3 ;;
116
117 alpha-*-osf1*) gdb_host=alpha-osf1 ;;
118 alpha-*-osf2*) gdb_host=alpha-osf2 ;;
119 alpha-*-osf[3456789]*) gdb_host=alpha-osf3 ;;
120
121 arm-*-*) gdb_host=arm ;;
122
123 c[12]-*-*) gdb_host=convex ;;
124
125 hppa*-*-bsd*) gdb_host=hppabsd ;;
126 hppa*-*-hiux*) gdb_host=hppahpux ;;
127 hppa*-*-hpux*) gdb_host=hppahpux ;;
128 hppa*-*-osf*) gdb_host=hppaosf ;;
129
130 i[345]86-ncr-*) gdb_host=ncr3000 ;;
131 i[345]86-sequent-bsd*) gdb_host=symmetry ;; # dynix
132 i[345]86-sequent-sysv4*) gdb_host=ptx4 ;;
133 i[345]86-sequent-sysv*) gdb_host=ptx ;;
134 i[345]86-*-aix*) gdb_host=i386aix ;;
135 i[345]86-*-bsd*) gdb_host=i386bsd ;;
136 i[345]86-*-freebsd*) gdb_host=fbsd ;;
137 i[345]86-*-netbsd*) gdb_host=nbsd ;;
138 i[345]86-*-go32*) gdb_host=go32 ;;
139 i[345]86-*-linux*) gdb_host=linux ;;
140 i[345]86-*-lynxos*) gdb_host=i386lynx ;;
141 i[345]86-*-mach3*) gdb_host=i386m3 ;;
142 i[345]86-*-mach*) gdb_host=i386mach ;;
143 i[345]86-*-osf1mk*) gdb_host=osf1mk ;;
144 i[345]86-*-sco3.2v4*) gdb_host=i386sco4 ;;
145 i[345]86-*-sco*) gdb_host=i386sco ;;
146 i[345]86-*-solaris*) gdb_host=i386sol2 ;;
147 i[345]86-*-sunos*) gdb_host=sun386 ;;
148 i[345]86-*-sysv3.2*) gdb_host=i386v32 ;;
149 i[345]86-*-sysv32*) gdb_host=i386v32 ;;
150 i[345]86-*-sysv4*) gdb_host=i386v4 ;;
151 i[345]86-*-unixware) gdb_host=i386v4 ;;
152 i[345]86-*-sysv*) gdb_host=i386v ;;
153 i[345]86-*-isc*) gdb_host=i386v32 ;;
154 i[345]86-*-os9k) gdb_host=i386os9k ;;
155 i[345]86-*-win32*) gdb_host=i386win32 ;;
156 m680[01]0-sun-sunos3*) gdb_host=sun2os3 ;;
157 m680[01]0-sun-sunos4*) gdb_host=sun2os4 ;;
158 m68030-sony-*) gdb_host=news1000 ;;
159
160 m68*-altos-*) gdb_host=altos ;;
161 m68*-apollo*-sysv*) gdb_host=apollo68v ;;
162 m68*-apollo*-bsd*) gdb_host=apollo68b ;;
163 m68*-att-*) gdb_host=3b1 ;;
164 m68*-bull*-sysv*) gdb_host=dpx2 ;;
165 m68*-hp-bsd*) gdb_host=hp300bsd ;;
166 m68*-hp-hpux*) gdb_host=hp300hpux ;;
167 m68*-isi-*) gdb_host=isi ;;
168 m68*-*-lynxos*) gdb_host=m68klynx ;;
169 m68*-*-sysv4*) gdb_host=m68kv4 ;;
170 m68*-motorola-*) gdb_host=delta68 ;;
171 m68*-sony-*) gdb_host=news ;;
172 m68*-sun-sunos3*) gdb_host=sun3os3 ;;
173 m68*-sun-sunos4*) gdb_host=sun3os4 ;;
174 m68*-sun-*) gdb_host=sun3os4 ;;
175
176 m88*-harris-cxux*) gdb_host=cxux ;;
177 m88*-motorola-sysv4*) gdb_host=delta88v4 ;;
178 m88*-motorola-sysv*) gdb_host=delta88 ;;
179 m88*-*-mach3*) gdb_host=mach3 ;;
180 m88*-*-*) gdb_host=m88k ;;
181
182 mips-dec-mach3*) gdb_host=mach3 ;;
183 mips-dec-*) gdb_host=decstation ;;
184 mips-little-*) gdb_host=littlemips ;;
185 mips-sgi-irix3*) gdb_host=irix3 ;;
186 mips-sgi-irix4*) gdb_host=irix4 ;;
187 mips-sgi-irix5*) gdb_host=irix5 ;;
188 mips-sony-*) gdb_host=news-mips ;;
189 mips-*-mach3*) gdb_host=mach3 ;;
190 mips-*-sysv4*) gdb_host=mipsv4 ;;
191 mips-*-sysv*) gdb_host=riscos ;;
192 mips-*-riscos*) gdb_host=riscos ;;
193
194 none-*-*) gdb_host=none ;;
195
196 np1-*-*) gdb_host=np1 ;;
197
198 ns32k-*-mach3*) gdb_host=mach3 ;;
199 ns32k-*-netbsd*) gdb_host=nbsd ;;
200 ns32k-umax-*) gdb_host=umax ;;
201 ns32k-utek-sysv*) gdb_host=merlin ;;
202
203 powerpc-*-aix*) gdb_host=aix ;;
204
205 pn-*-*) gdb_host=pn ;;
206
207 pyramid-*-*) gdb_host=pyramid ;;
208
209 romp-*-*) gdb_host=rtbsd ;;
210
211 rs6000-*-lynxos*) gdb_host=rs6000lynx ;;
212 rs6000-*-*) gdb_host=rs6000 ;;
213
214 sparc-*-lynxos*) gdb_host=sparclynx ;;
215 sparc-*-netbsd*) gdb_host=nbsd ;;
216 sparc-*-solaris2*) gdb_host=sun4sol2 ;;
217 sparc-*-sunos4*) gdb_host=sun4os4 ;;
218 sparc-*-sunos5*) gdb_host=sun4sol2 ;;
219 sparc-*-*) gdb_host=sun4os4 ;;
220
221 tahoe-*-*) gdb_host=tahoe ;;
222
223 vax-*-bsd*) gdb_host=vaxbsd ;;
224 vax-*-ultrix2*) gdb_host=vaxult2 ;;
225 vax-*-ultrix*) gdb_host=vaxult ;;
226
227 w65-*-*) gdb_host=w65 ;;
228
229 esac
230
231
232 # Map target cpu into the config cpu subdirectory name.
233 # The default is $target_cpu.
234
235 case "${target_cpu}" in
236
237 alpha) gdb_target_cpu=alpha ;;
238 c[12]) gdb_target_cpu=convex ;;
239 hppa*) gdb_target_cpu=pa ;;
240 i[345]86) gdb_target_cpu=i386 ;;
241 m68*) gdb_target_cpu=m68k ;;
242 m88*) gdb_target_cpu=m88k ;;
243 mips*) gdb_target_cpu=mips ;;
244 np1) gdb_target_cpu=gould ;;
245 powerpc*) gdb_target_cpu=powerpc ;;
246 pn) gdb_target_cpu=gould ;;
247 pyramid) gdb_target_cpu=pyr ;;
248 sparc*) gdb_target_cpu=sparc ;;
249 *) gdb_target_cpu=$target_cpu ;;
250
251 esac
252
253 # map target info into gdb names.
254
255 case "${target}" in
256
257 a29k-*-aout*) gdb_target=a29k ;;
258 a29k-*-coff*) gdb_target=a29k ;;
259 a29k-*-elf*) gdb_target=a29k ;;
260 a29k-*-ebmon*) gdb_target=a29k ;;
261 a29k-*-kern*) gdb_target=a29k-kern ;;
262 a29k-*-none*) gdb_target=a29k ;;
263 a29k-*-sym1*) gdb_target=ultra3 ;;
264 a29k-*-udi*) gdb_target=a29k-udi ;;
265 a29k-*-vxworks*) gdb_target=vx29k ;;
266
267 alpha-*-osf*) gdb_target=alpha-osf1 ;;
268
269 # start-sanitize-arc
270 arc-*-*) gdb_target=arc ;;
271 # end-sanitize-arc
272
273 arm-*-*) gdb_target=arm ;;
274
275 c1-*-*) gdb_target=convex ;;
276 c2-*-*) gdb_target=convex ;;
277
278 h8300-*-*) gdb_target=h8300 ;;
279 h8500-*-*) gdb_target=h8500 ;;
280
281 sh-*-*) gdb_target=sh ;;
282
283 # start-sanitize-r16
284 r16-*-*) gdb_target=r16 ;;
285 # end-sanitize-r16
286
287 hppa*-*-bsd*) gdb_target=hppabsd ;;
288 hppa*-*-pro*) gdb_target=hppapro ;;
289 hppa*-*-hpux*) gdb_target=hppahpux ;;
290 hppa*-*-hiux*) gdb_target=hppahpux ;;
291 hppa*-*-osf*) gdb_target=hppaosf ;;
292
293 i[345]86-sequent-bsd*) gdb_target=symmetry ;;
294 i[345]86-sequent-sysv4*) gdb_target=ptx4 ;;
295 i[345]86-sequent-sysv*) gdb_target=ptx ;;
296 i[345]86-ncr-*) gdb_target=ncr3000 ;;
297 i[345]86-*-aout*) gdb_target=i386aout ;;
298 i[345]86-*-coff*) gdb_target=i386v ;;
299 i[345]86-*-elf*) gdb_target=i386v ;;
300 i[345]86-*-aix*) gdb_target=i386aix ;;
301 i[345]86-*-bsd*) gdb_target=i386bsd ;;
302 i[345]86-*-freebsd*) gdb_target=fbsd ;;
303 i[345]86-*-netbsd*) gdb_target=nbsd ;;
304 i[345]86-*-os9k) gdb_target=i386os9k ;;
305 i[345]86-*-go32*) gdb_target=i386aout ;;
306 i[345]86-*-lynxos*) gdb_target=i386lynx
307 configdirs="${configdirs} gdbserver" ;;
308 i[345]86-*-solaris*) gdb_target=i386sol2 ;;
309 i[345]86-*-sunos*) gdb_target=sun386 ;;
310 i[345]86-*-sysv4*) gdb_target=i386v4 ;;
311 i[345]86-*-sco*) gdb_target=i386v ;;
312 i[345]86-*-sysv*) gdb_target=i386v ;;
313 i[345]86-*-linux*) gdb_target=linux ;;
314 i[345]86-*-isc*) gdb_target=i386v ;;
315 i[345]86-*-mach3*) gdb_target=i386m3 ;;
316 i[345]86-*-mach*) gdb_target=i386mach ;;
317 i[345]86-*-netware*) gdb_target=i386nw
318 configdirs="${configdirs} nlm" ;;
319 i[345]86-*-osf1mk*) gdb_target=i386mk ;;
320 i[345]86-*-win32) gdb_target=i386win32 ;;
321
322 i960-*-bout*) gdb_target=vxworks960 ;;
323 i960-*-coff*) gdb_target=nindy960 ;;
324 i960-*-elf*) gdb_target=nindy960 ;;
325
326 i960-*-nindy*) gdb_target=nindy960 ;;
327 i960-*-vxworks*) gdb_target=vxworks960 ;;
328
329 m68000-*-sunos3*) gdb_target=sun2os3 ;;
330 m68000-*-sunos4*) gdb_target=sun2os4 ;;
331
332 m68*-apollo*-bsd*) gdb_target=apollo68b ;;
333 m68*-bull-sysv*) gdb_target=dpx2 ;;
334 m68*-hp-bsd*) gdb_target=hp300bsd ;;
335 m68*-hp-hpux*) gdb_target=hp300hpux ;;
336 m68*-altos-*) gdb_target=altos ;;
337 m68*-att-*) gdb_target=3b1 ;;
338 m68*-cisco*-*) gdb_target=cisco ;;
339 m68*-ericsson-*) gdb_target=es1800 ;;
340 m68*-isi-*) gdb_target=isi ;;
341 m68*-motorola-*) gdb_target=delta68 ;;
342 m68*-netx-*) gdb_target=vxworks68 ;;
343 m68*-sony-*) gdb_target=news ;;
344 m68*-tandem-*) gdb_target=st2000 ;;
345 m68*-rom68k-*) gdb_target=monitor ;;
346 m68*-*bug-*) gdb_target=monitor ;;
347 m68*-monitor-*) gdb_target=monitor ;;
348 m68*-est-*) gdb_target=monitor ;;
349 m68*-*-aout*) gdb_target=monitor ;;
350 m68*-*-coff*) gdb_target=monitor ;;
351 m68*-*-elf*) gdb_target=monitor ;;
352 m68*-*-lynxos*) gdb_target=m68klynx
353 configdirs="${configdirs} gdbserver" ;;
354 m68*-*-os68k*) gdb_target=os68k ;;
355 m68*-*-sunos3*) gdb_target=sun3os3 ;;
356 m68*-*-sunos4*) gdb_target=sun3os4 ;;
357 m68*-*-sysv4*) gdb_target=m68kv4 ;;
358 m68*-*-vxworks*) gdb_target=vxworks68 ;;
359
360 m88*-harris-cxux*) gdb_target=cxux ;;
361 m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
362 m88*-*-mach3*) gdb_target=mach3 ;;
363 m88*-motorola-*) gdb_target=delta88 ;;
364 m88*-*-*) gdb_target=m88k ;;
365
366 mips64*-big-*) gdb_target=bigmips64 ;;
367 mips*-big-*) gdb_target=bigmips ;;
368 mips*-dec-mach3*) gdb_target=mach3 ;;
369 mips*-dec-*) gdb_target=decstation ;;
370 mips64*el-*-ecoff*) gdb_target=idtl64 ;;
371 mips64*-idt-ecoff*) gdb_target=idt64 ;;
372 mips64*el-*-elf*) gdb_target=idtl64 ;;
373 mips64*-*-elf*) gdb_target=idt64 ;;
374 mips*el-*-ecoff*) gdb_target=idtl ;;
375 mips*-*-ecoff*) gdb_target=idt ;;
376 mips*el-*-elf*) gdb_target=idtl ;;
377 mips*-*-elf*) gdb_target=idt ;;
378 mips*-little-*) gdb_target=littlemips ;;
379 mips*-sgi-irix5*) gdb_target=irix5 ;;
380 mips*-sgi-*) gdb_target=irix3 ;;
381 mips*-sony-*) gdb_target=bigmips ;;
382 mips*-*-mach3*) gdb_target=mach3 ;;
383 mips*-*-sysv4*) gdb_target=mipsv4 ;;
384 mips*-*-sysv*) gdb_target=bigmips ;;
385 mips*-*-riscos*) gdb_target=bigmips ;;
386
387 none-*-*) gdb_target=none ;;
388
389 np1-*-*) gdb_target=np1 ;;
390
391 ns32k-*-mach3*) gdb_target=mach3 ;;
392 ns32k-*-netbsd*) gdb_target=nbsd ;;
393 ns32k-utek-sysv*) gdb_target=merlin ;;
394 ns32k-utek-*) gdb_target=umax ;;
395
396 pn-*-*) gdb_target=pn ;;
397 powerpc-*-netware*) gdb_target=ppc-nw
398 configdirs="${configdirs} nlm" ;;
399
400 powerpc-*-aix4*) gdb_target=aix4 ;;
401 powerpc-*-aix*) gdb_target=aix ;;
402 powerpc-*-eabisim*) gdb_target=ppc-sim ;;
403 powerpc-*-eabi*) gdb_target=ppc-eabi ;;
404 powerpcle-*-eabisim*) gdb_target=ppcle-sim ;;
405 powerpcle-*-eabi*) gdb_target=ppcle-eabi ;;
406
407 pyramid-*-*) gdb_target=pyramid ;;
408
409 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
410 rs6000-*-aix4*) gdb_target=aix4 ;;
411 rs6000-*-*) gdb_target=rs6000 ;;
412
413 sparc-*-aout*) gdb_target=sparc-em ;;
414 sparc-*-coff*) gdb_target=sparc-em ;;
415 sparc-*-elf*) gdb_target=sparc-em ;;
416 sparc-*-lynxos*) gdb_target=sparclynx
417 configdirs="${configdirs} gdbserver" ;;
418 sparc-*-netbsd*) gdb_target=nbsd ;;
419 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
420 sparc-*-sunos4*) gdb_target=sun4os4 ;;
421 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
422 sparc-*-vxworks*) gdb_target=vxsparc ;;
423 sparc-*-*) gdb_target=sun4os4 ;;
424 sparclite*-*-*) gdb_target=sparclite ;;
425 sparc64-*-*) gdb_target=sp64 ;;
426
427 tahoe-*-*) gdb_target=tahoe ;;
428
429 vax-*-*) gdb_target=vax ;;
430
431 w65-*-*) gdb_target=w65 ;;
432
433 z8k-*-coff*) gdb_target=z8k ;;
434
435 esac
436
437 dnl
438 changequote([,])dnl
439
440 frags=
441 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
442 if test ! -f ${host_makefile_frag}; then
443 AC_MSG_ERROR("*** Gdb does not support host ${host}")
444 fi
445 frags="$frags $host_makefile_frag"
446
447 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
448 if test ! -f ${target_makefile_frag}; then
449 AC_MSG_ERROR("*** Gdb does not support target ${target}")
450 fi
451 frags="$frags $target_makefile_frag"
452
453 AC_SUBST_FILE(host_makefile_frag)
454 AC_SUBST_FILE(target_makefile_frag)
455 AC_SUBST(frags)
456
457 changequote(,)dnl
458 hostfile=`sed -n '
459 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
460 ' ${host_makefile_frag}`
461
462 targetfile=`sed -n '
463 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
464 ' ${target_makefile_frag}`
465
466 # these really aren't orthogonal true/false values of the same condition,
467 # but shells are slow enough that I like to reuse the test conditions
468 # whenever possible
469 if test "${target}" = "${host}"; then
470 nativefile=`sed -n '
471 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
472 ' ${host_makefile_frag}`
473 else
474 # GDBserver is only useful in a "native" enviroment
475 configdirs=`echo $configdirs | sed 's/gdbserver//'`
476 fi
477 changequote([,])
478
479 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
480 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
481 # corresponding links. But we have to remove the xm.h files and tm.h
482 # files anyway, e.g. when switching from "configure host" to
483 # "configure none".
484
485 files=
486 links=
487 rm -f xm.h
488 if test "${hostfile}" != ""; then
489 files="${files} config/${gdb_host_cpu}/${hostfile}"
490 links="${links} xm.h"
491 fi
492 rm -f tm.h
493 if test "${targetfile}" != ""; then
494 files="${files} config/${gdb_target_cpu}/${targetfile}"
495 links="${links} tm.h"
496 fi
497 rm -f nm.h
498 if test "${nativefile}" != ""; then
499 files="${files} config/${gdb_host_cpu}/${nativefile}"
500 links="${links} nm.h"
501 else
502 # A cross-only configuration.
503 files="${files} config/nm-empty.h"
504 links="${links} nm.h"
505 fi
506 # start-sanitize-gdbtk
507
508 # Make it possible to use the GUI without doing a full install
509 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
510 files="${files} gdbtk.tcl"
511 links="${links} gdbtk.tcl"
512 fi
513 # end-sanitize-gdbtk
514
515 AC_LINK_FILES($files, $links)
516
517 AC_CONFIG_SUBDIRS($configdirs)
518 AC_OUTPUT(Makefile,
519 [
520 dnl Autoconf doesn't provide a mechanism for modifying definitions
521 dnl provided by makefile fragments.
522 dnl
523 if test "${nativefile}" = ""; then
524 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
525 < Makefile > Makefile.tem
526 mv -f Makefile.tem Makefile
527 fi
528
529 changequote(,)dnl
530 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
531 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
532 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
533 mv -f Makefile.tmp Makefile
534 changequote([,])dnl
535
536 case ${srcdir} in
537 .)
538 ;;
539 *)
540 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
541 echo "source ${srcdir}/.gdbinit" >> .gdbinit
542 esac
543 ],
544 [
545 gdb_host_cpu=$gdb_host_cpu
546 gdb_target_cpu=$gdb_target_cpu
547 nativefile=$nativefile
548 ])
549
550 exit 0
This page took 0.041773 seconds and 5 git commands to generate.