aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>1998-03-25 16:48:04 +0000
committerFrank Ch. Eigler <fche@redhat.com>1998-03-25 16:48:04 +0000
commitbd5eafcd7c35f523ddbd734c5465d97e15702694 (patch)
tree5c8c0989a9f17c8ceef3f5de989125259e9f01ea /gdb/configure.in
parent9216fffaef73337c3386b17e4a3eeb13a137529c (diff)
downloadgdb-bd5eafcd7c35f523ddbd734c5465d97e15702694.zip
gdb-bd5eafcd7c35f523ddbd734c5465d97e15702694.tar.gz
gdb-bd5eafcd7c35f523ddbd734c5465d97e15702694.tar.bz2
* As suggested by crash, made --with-sim-gpu2 option active only on -sky- target.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in16
1 files changed, 10 insertions, 6 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 128758f..49fd0d3 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -436,12 +436,16 @@ AC_PATH_X
# Enable GPU2 library for MIPS simulator
AC_ARG_WITH(sim-gpu2,
[ --with-sim-gpu2=path Use GPU2 library under given directory],
-[if test -d "${withval}"
-then
- LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11"
-else
- AC_MSG_ERROR("Directory ${withval} does not exist.");
-fi])dnl
+[case "${target}" in
+ mips*-sky-*)
+ if test -d "${withval}"
+ then
+ LIBS="${LIBS} -L${withval}/lib -lgpu2 -L${x_libraries} -lX11"
+ else
+ AC_MSG_WARN([Directory ${withval} does not exist.])
+ fi ;;
+ *) AC_MSG_WARN([--with-sim-gpu2 option invalid for target ${target}])
+esac])dnl
# end-sanitize-sky
AC_SUBST(ENABLE_CFLAGS)