aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorDavid D. Zuhn <zoo@cygnus>1993-10-13 01:08:40 +0000
committerDavid D. Zuhn <zoo@cygnus>1993-10-13 01:08:40 +0000
commit79f68f0f83f34c256862636b3472f2343cd0be11 (patch)
tree65fa4706a8d74eb6c2bdcc63843029b5ab6c7673 /gdb/configure.in
parent99d1da6a3ca38a8548ced9af36d029e3620a620e (diff)
downloadgdb-79f68f0f83f34c256862636b3472f2343cd0be11.zip
gdb-79f68f0f83f34c256862636b3472f2343cd0be11.tar.gz
gdb-79f68f0f83f34c256862636b3472f2343cd0be11.tar.bz2
only configure gdbserver for native environments
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index f2d0241..d9dc3be 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -189,7 +189,7 @@ i[34]86-*-bsd*) gdb_target=i386bsd ;;
i[34]86-*-netbsd*) gdb_target=i386bsd ;;
i[34]86-*-go32) gdb_target=i386aout ;;
i[34]86-*-lynx*) gdb_target=i386lynx
- configdirs="${configdirs} gdbserver"
+ configdirs="${configdirs} gdbserver"
;;
i[34]86-*-solaris*) gdb_target=i386sol2 ;;
i[34]86-*-sunos*) gdb_target=sun386 ;;
@@ -294,8 +294,16 @@ fi
# We really shouldn't depend on there being a space after TM_FILE= ...
targetfile=`awk '$1 == "TM_FILE=" { print $2 }' <${srcdir}/config/${gdb_target_cpu}/${gdb_target}.mt`
+
+# these really aren't orthogonal true/false values of the same condition,
+# but shells are slow enough that I like to reuse the test conditions
+# whenever possible
+#
if [ "${target}" = "${host}" ] ; then
nativefile=`awk '$1 == "NAT_FILE=" { print $2 }' <${srcdir}/config/${gdb_host_cpu}/${gdb_host}.mh`
+else
+ # GDBserver is only useful in a "native" enviroment
+ configdirs=`echo $configdirs | sed 's/gdbserver//'`
fi
host_makefile_frag=config/${gdb_host_cpu}/${gdb_host}.mh