diff options
author | Joel Brobecker <brobecker@gnat.com> | 2002-11-29 00:30:06 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2002-11-29 00:30:06 +0000 |
commit | d92419e5e96545b7021e28c14db0576ad0b1790b (patch) | |
tree | 2251017942131a539e89ad55fa89b55636a24ebc /gdb/configure.in | |
parent | 8c69fc49d578e8e608cc3bfb4d3a58ddd9f19c32 (diff) | |
download | gdb-d92419e5e96545b7021e28c14db0576ad0b1790b.zip gdb-d92419e5e96545b7021e28c14db0576ad0b1790b.tar.gz gdb-d92419e5e96545b7021e28c14db0576ad0b1790b.tar.bz2 |
* configure.in: Check that the pthdebug library is recent enough
before enabling thread support on native AiX.
* configure: Regenerate.
* config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
from the list of object files as it is now appended by configure
if thread support is enabled.
(NAT_CLIBS): Removed as -lpthdebug is also appended by configure
if thread support is enabled.
Diffstat (limited to 'gdb/configure.in')
-rw-r--r-- | gdb/configure.in | 30 |
1 files changed, 25 insertions, 5 deletions
diff --git a/gdb/configure.in b/gdb/configure.in index d47ebd1..f91503a 100644 --- a/gdb/configure.in +++ b/gdb/configure.in @@ -532,12 +532,12 @@ aix*) ;; esac -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. -dnl Note that we only want this if we are both native (host == target), and -dnl not doing a canadian cross build (build == host). +dnl For certain native configurations, we need to check whether thread +dnl support can be built in or not. +dnl +dnl Note that we only want this if we are both native (host == target), +dnl and not doing a canadian cross build (build == host). if test ${build} = ${host} -a ${host} = ${target} ; then case ${host_os} in @@ -557,6 +557,10 @@ if test ${build} = ${host} -a ${host} = ${target} ; then fi ;; solaris*) + # See if thread_db library is around for Solaris thread debugging. + # Note that we must explicitly test for version 1 of the library + # because version 0 (present on 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) @@ -596,6 +600,22 @@ if test ${build} = ${host} -a ${host} = ${target} ; then AC_MSG_RESULT(no) fi ;; + aix*) + AC_MSG_CHECKING(for AiX thread debugging library) + AC_CACHE_VAL(gdb_cv_have_aix_thread_debug, + [AC_TRY_COMPILE([#include <sys/pthdebug.h>], + [#ifndef PTHDB_VERSION_3 + #error + #endif], + gdb_cv_have_aix_thread_debug=yes, + gdb_cv_have_aix_thread_debug=no)]) + AC_MSG_RESULT($gdb_cv_have_aix_thread_debug) + if test $gdb_cv_have_aix_thread_debug = yes; then + CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c" + CONFIG_LIB_OBS="${CONFIG_LIB_OBS} aix-thread.o" + CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug" + fi + ;; esac AC_SUBST(CONFIG_LDFLAGS) fi |