* configure.in: X_INCDIR and X_LIBDIR added.
[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
321 i960-*-bout*) gdb_target=vxworks960 ;;
322 i960-*-coff*) gdb_target=nindy960 ;;
323 i960-*-elf*) gdb_target=nindy960 ;;
324
325 i960-*-nindy*) gdb_target=nindy960 ;;
326 i960-*-vxworks*) gdb_target=vxworks960 ;;
327
328 m68000-*-sunos3*) gdb_target=sun2os3 ;;
329 m68000-*-sunos4*) gdb_target=sun2os4 ;;
330
331 m68*-apollo*-bsd*) gdb_target=apollo68b ;;
332 m68*-bull-sysv*) gdb_target=dpx2 ;;
333 m68*-hp-bsd*) gdb_target=hp300bsd ;;
334 m68*-hp-hpux*) gdb_target=hp300hpux ;;
335 m68*-altos-*) gdb_target=altos ;;
336 m68*-att-*) gdb_target=3b1 ;;
337 m68*-cisco*-*) gdb_target=cisco ;;
338 m68*-ericsson-*) gdb_target=es1800 ;;
339 m68*-isi-*) gdb_target=isi ;;
340 m68*-motorola-*) gdb_target=delta68 ;;
341 m68*-netx-*) gdb_target=vxworks68 ;;
342 m68*-sony-*) gdb_target=news ;;
343 m68*-tandem-*) gdb_target=st2000 ;;
344 m68*-rom68k-*) gdb_target=monitor ;;
345 m68*-*bug-*) gdb_target=monitor ;;
346 m68*-monitor-*) gdb_target=monitor ;;
347 m68*-est-*) gdb_target=monitor ;;
348 m68*-*-aout*) gdb_target=monitor ;;
349 m68*-*-coff*) gdb_target=monitor ;;
350 m68*-*-elf*) gdb_target=monitor ;;
351 m68*-*-lynxos*) gdb_target=m68klynx
352 configdirs="${configdirs} gdbserver" ;;
353 m68*-*-os68k*) gdb_target=os68k ;;
354 m68*-*-sunos3*) gdb_target=sun3os3 ;;
355 m68*-*-sunos4*) gdb_target=sun3os4 ;;
356 m68*-*-sysv4*) gdb_target=m68kv4 ;;
357 m68*-*-vxworks*) gdb_target=vxworks68 ;;
358
359 m88*-harris-cxux*) gdb_target=cxux ;;
360 m88*-motorola-sysv4*) gdb_target=delta88v4 ;;
361 m88*-*-mach3*) gdb_target=mach3 ;;
362 m88*-motorola-*) gdb_target=delta88 ;;
363 m88*-*-*) gdb_target=m88k ;;
364
365 mips64*-big-*) gdb_target=bigmips64 ;;
366 mips*-big-*) gdb_target=bigmips ;;
367 mips*-dec-mach3*) gdb_target=mach3 ;;
368 mips*-dec-*) gdb_target=decstation ;;
369 mips64*el-*-ecoff*) gdb_target=idtl64 ;;
370 mips64*-idt-ecoff*) gdb_target=idt64 ;;
371 mips64*el-*-elf*) gdb_target=idtl64 ;;
372 mips64*-*-elf*) gdb_target=idt64 ;;
373 mips*el-*-ecoff*) gdb_target=idtl ;;
374 mips*-*-ecoff*) gdb_target=idt ;;
375 mips*el-*-elf*) gdb_target=idtl ;;
376 mips*-*-elf*) gdb_target=idt ;;
377 mips*-little-*) gdb_target=littlemips ;;
378 mips*-sgi-irix5*) gdb_target=irix5 ;;
379 mips*-sgi-*) gdb_target=irix3 ;;
380 mips*-sony-*) gdb_target=bigmips ;;
381 mips*-*-mach3*) gdb_target=mach3 ;;
382 mips*-*-sysv4*) gdb_target=mipsv4 ;;
383 mips*-*-sysv*) gdb_target=bigmips ;;
384 mips*-*-riscos*) gdb_target=bigmips ;;
385
386 none-*-*) gdb_target=none ;;
387
388 np1-*-*) gdb_target=np1 ;;
389
390 ns32k-*-mach3*) gdb_target=mach3 ;;
391 ns32k-*-netbsd*) gdb_target=nbsd ;;
392 ns32k-utek-sysv*) gdb_target=merlin ;;
393 ns32k-utek-*) gdb_target=umax ;;
394
395 pn-*-*) gdb_target=pn ;;
396 powerpc-*-netware*) gdb_target=ppc-nw
397 configdirs="${configdirs} nlm" ;;
398
399 powerpc-*-aix4*) gdb_target=aix4 ;;
400 powerpc-*-aix*) gdb_target=aix ;;
401 powerpc-*-eabisim*) gdb_target=ppc-sim ;;
402 powerpc-*-eabi*) gdb_target=ppc-eabi ;;
403 powerpcle-*-eabisim*) gdb_target=ppcle-sim ;;
404 powerpcle-*-eabi*) gdb_target=ppcle-eabi ;;
405
406 pyramid-*-*) gdb_target=pyramid ;;
407
408 rs6000-*-lynxos*) gdb_target=rs6000lynx ;;
409 rs6000-*-aix4*) gdb_target=aix4 ;;
410 rs6000-*-*) gdb_target=rs6000 ;;
411
412 sparc-*-aout*) gdb_target=sparc-em ;;
413 sparc-*-coff*) gdb_target=sparc-em ;;
414 sparc-*-elf*) gdb_target=sparc-em ;;
415 sparc-*-lynxos*) gdb_target=sparclynx
416 configdirs="${configdirs} gdbserver" ;;
417 sparc-*-netbsd*) gdb_target=nbsd ;;
418 sparc-*-solaris2*) gdb_target=sun4sol2 ;;
419 sparc-*-sunos4*) gdb_target=sun4os4 ;;
420 sparc-*-sunos5*) gdb_target=sun4sol2 ;;
421 sparc-*-vxworks*) gdb_target=vxsparc ;;
422 sparc-*-*) gdb_target=sun4os4 ;;
423 sparclite*-*-*) gdb_target=sparclite ;;
424 sparc64-*-*) gdb_target=sp64 ;;
425
426 tahoe-*-*) gdb_target=tahoe ;;
427
428 vax-*-*) gdb_target=vax ;;
429
430 w65-*-*) gdb_target=w65 ;;
431
432 z8k-*-coff*) gdb_target=z8k ;;
433
434 esac
435
436 dnl
437 changequote([,])dnl
438
439 frags=
440 host_makefile_frag=${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh
441 if test ! -f ${host_makefile_frag}; then
442 AC_MSG_ERROR("*** Gdb does not support host ${host}")
443 fi
444 frags="$frags $host_makefile_frag"
445
446 target_makefile_frag=${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt
447 if test ! -f ${target_makefile_frag}; then
448 AC_MSG_ERROR("*** Gdb does not support target ${target}")
449 fi
450 frags="$frags $target_makefile_frag"
451
452 AC_SUBST_FILE(host_makefile_frag)
453 AC_SUBST_FILE(target_makefile_frag)
454 AC_SUBST(frags)
455
456 changequote(,)dnl
457 hostfile=`sed -n '
458 s/XM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
459 ' ${host_makefile_frag}`
460
461 targetfile=`sed -n '
462 s/TM_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
463 ' ${target_makefile_frag}`
464
465 # these really aren't orthogonal true/false values of the same condition,
466 # but shells are slow enough that I like to reuse the test conditions
467 # whenever possible
468 if test "${target}" = "${host}"; then
469 nativefile=`sed -n '
470 s/NAT_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
471 ' ${host_makefile_frag}`
472 else
473 # GDBserver is only useful in a "native" enviroment
474 configdirs=`echo $configdirs | sed 's/gdbserver//'`
475 fi
476 changequote([,])
477
478 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
479 # (NAT_FILE) is not set in config/*/*.m[ht] files, we don't make the
480 # corresponding links. But we have to remove the xm.h files and tm.h
481 # files anyway, e.g. when switching from "configure host" to
482 # "configure none".
483
484 files=
485 links=
486 rm -f xm.h
487 if test "${hostfile}" != ""; then
488 files="${files} config/${gdb_host_cpu}/${hostfile}"
489 links="${links} xm.h"
490 fi
491 rm -f tm.h
492 if test "${targetfile}" != ""; then
493 files="${files} config/${gdb_target_cpu}/${targetfile}"
494 links="${links} tm.h"
495 fi
496 rm -f nm.h
497 if test "${nativefile}" != ""; then
498 files="${files} config/${gdb_host_cpu}/${nativefile}"
499 links="${links} nm.h"
500 else
501 # A cross-only configuration.
502 files="${files} config/nm-empty.h"
503 links="${links} nm.h"
504 fi
505 # start-sanitize-gdbtk
506
507 # Make it possible to use the GUI without doing a full install
508 if test "${enable_gdbtk}" = "yes" -a ! -f gdbtk.tcl ; then
509 files="${files} gdbtk.tcl"
510 links="${links} gdbtk.tcl"
511 fi
512 # end-sanitize-gdbtk
513
514 AC_LINK_FILES($files, $links)
515
516 AC_CONFIG_SUBDIRS($configdirs)
517 AC_OUTPUT(Makefile,
518 [
519 dnl Autoconf doesn't provide a mechanism for modifying definitions
520 dnl provided by makefile fragments.
521 dnl
522 if test "${nativefile}" = ""; then
523 sed -e '/^NATDEPFILES= /s//# NATDEPFILES= /' \
524 < Makefile > Makefile.tem
525 mv -f Makefile.tem Makefile
526 fi
527
528 changequote(,)dnl
529 sed -e '/^TM_FILE[ ]*=/s,^TM_FILE[ ]*=[ ]*,&config/'"${gdb_target_cpu}"'/,
530 /^XM_FILE[ ]*=/s,^XM_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,
531 /^NAT_FILE[ ]*=/s,^NAT_FILE[ ]*=[ ]*,&config/'"${gdb_host_cpu}"'/,' <Makefile >Makefile.tmp
532 mv -f Makefile.tmp Makefile
533 changequote([,])dnl
534
535 case ${srcdir} in
536 .)
537 ;;
538 *)
539 grep "source ${srcdir}/.gdbinit" .gdbinit >/dev/null 2>/dev/null || \
540 echo "source ${srcdir}/.gdbinit" >> .gdbinit
541 esac
542 ],
543 [
544 gdb_host_cpu=$gdb_host_cpu
545 gdb_target_cpu=$gdb_target_cpu
546 nativefile=$nativefile
547 ])
548
549 exit 0
This page took 0.040688 seconds and 5 git commands to generate.