* nlm/configure.in: Use sed instead of awk to get the value of
[deliverable/binutils-gdb.git] / gdb / nlm / configure.in
1 srcname="Remote GDB server for Netware"
2 srctrigger=gdbserve.c
3
4 # per-host:
5
6 # per-target:
7
8 # Map target cpu into the config cpu subdirectory name.
9 # The default is $target_cpu.
10
11 case "${target_cpu}" in
12
13 alpha) gdb_target_cpu=alpha ;;
14 c[12]) gdb_target_cpu=convex ;;
15 hppa*) gdb_target_cpu=pa ;;
16 i[345]86) gdb_target_cpu=i386 ;;
17 m68*) gdb_target_cpu=m68k ;;
18 np1) gdb_target_cpu=gould ;;
19 pn) gdb_target_cpu=gould ;;
20 pyramid) gdb_target_cpu=pyr ;;
21 sparc*) gdb_target_cpu=sparc ;;
22 *) gdb_target_cpu=$target_cpu ;;
23
24 esac
25
26 target_makefile_frag=${srcdir}/../config/${gdb_target_cpu}/gdbserve.mt
27 if [ ! -f ${target_makefile_frag} ]; then
28 echo '***' "GDBSERVE does not support target ${target}" 1>&2
29 exit 1
30 fi
31
32 cpufile=`sed -n '
33 s/CPU_FILE[ ]*=[ ]*\([^ ]*\)/\1/p
34 ' ${target_makefile_frag}
35
36 # If hostfile (XM_FILE) and/or targetfile (TM_FILE) and/or nativefile
37 # (NAT_FILE) is not set in the ?config/* file, we don't make the
38 # corresponding links. But we have to remove the xm.h files and tm.h
39 # files anyway, e.g. when switching from "configure host" to
40 # "configure none".
41
42 files=
43 links=
44 rm -f cpu.h
45 if [ "${cpufile}" != "" ]; then
46 files="${files} ${cpufile}.h"
47 links="${links} cpu.h"
48 fi
This page took 0.031827 seconds and 5 git commands to generate.