diff options
author | Stu Grossman <grossman@cygnus> | 1996-05-14 07:02:56 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1996-05-14 07:02:56 +0000 |
commit | 47ef0da56a772d7dca43c54523303afa2d0c73eb (patch) | |
tree | 20339009549e7beda4424a43a1a046013938c80d /gdb/configure.in | |
parent | 572977a5525c76cd50ef6e7383134f7313467d5d (diff) | |
download | gdb-47ef0da56a772d7dca43c54523303afa2d0c73eb.zip gdb-47ef0da56a772d7dca43c54523303afa2d0c73eb.tar.gz gdb-47ef0da56a772d7dca43c54523303afa2d0c73eb.tar.bz2 |
* Makefile.in config.in configure configure.in
config/sparc/nm-sun4sol2.h config/sparc/sun4sol2.mh
config/sparc/tm-sun4sol2.h: Use autoconf to config Solaris thread
and pthread support, since pre-2.5 systems don't come with
libthread_db.so.1.
* procfs.c (info_proc): Use int instead of id_t. Old versions of
Irix don't see to define this.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index 3c38d8c..5023140 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -96,6 +96,21 @@ AC_MSG_RESULT($gdb_cv_printf_has_long_double) AC_FUNC_MMAP +dnl See if thread_db is around for Solaris thread debugging. Note that we must +dnl explicitly test for version 1 of the library because version 0 (present on +dnl Solaris 2.4 or earlier) doesn't have the same API. + +AC_MSG_CHECKING(for Solaris thread debugging library) +if test -f /usr/lib/libthread_db.so.1 ; then + AC_MSG_RESULT(yes) + LIBS="$LIBS /usr/lib/libthread_db.so.1" + THREAD_DB_OBS=sol-thread.o + AC_DEFINE(HAVE_THREAD_DB_LIB) +else + AC_MSG_RESULT(no) +fi +AC_SUBST(THREAD_DB_OBS) + dnl Handle optional features that can be enabled. ENABLE_CFLAGS= ENABLE_CLIBS= |