aboutsummaryrefslogtreecommitdiff
path: root/gdb/configure.in
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/configure.in')
-rw-r--r--gdb/configure.in5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/configure.in b/gdb/configure.in
index 05be6ca..a9a4f56 100644
--- a/gdb/configure.in
+++ b/gdb/configure.in
@@ -100,7 +100,8 @@ dnl See if thread_db library is around for Solaris thread debugging. Note that
dnl we must explicitly test for version 1 of the library because version 0
dnl (present on Solaris 2.4 or earlier) doesn't have the same API.
-if test ${host} = ${target} ; then
+case ${build}:${host}:${target} in
+*-*-solaris2*:*-*-solaris2*:*-*-solaris2*)
AC_MSG_CHECKING(for Solaris thread debugging library)
if test -f /usr/lib/libthread_db.so.1 ; then
AC_MSG_RESULT(yes)
@@ -112,7 +113,7 @@ if test ${host} = ${target} ; then
fi
AC_SUBST(THREAD_DB_OBS)
AC_SUBST(CONFIG_LDFLAGS)
-fi
+esac
dnl Handle optional features that can be enabled.
ENABLE_CFLAGS=