Add 'getthrds' declaration check in configure for AIX
[deliverable/binutils-gdb.git] / gdb / configure.ac
index d2b75f637526113dc2eef744139ffe5ae4ec8a1d..96e0a7b79bc023a1031fe7ef510979ea48e1f62e 100644 (file)
@@ -1593,6 +1593,11 @@ if test ${build} = ${host} -a ${host} = ${target} ; then
          CONFIG_SRCS="${CONFIG_SRCS} aix-thread.c"
          CONFIG_OBS="${CONFIG_OBS} aix-thread.o"
          CONFIG_LDFLAGS="${CONFIG_LDFLAGS} -lpthdebug"
+
+         # Older versions of AIX do not provide the declaration for
+         # the getthrds function (it appears that it was introduced
+         # with AIX 6.x).
+         AC_CHECK_DECLS(getthrds, [], [], [[#include <procinfo.h>]])
       fi
       ;;
    esac
This page took 0.026057 seconds and 4 git commands to generate.