This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Add 'getthrds' declaration check in configure for AIX
> > +# 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>]])
> > +
>
> Any reason this isn't done close to where we check for AIX
> thread support, and decide to whether to build aix-thread.c in the
> first place? Look for "AiX thread debugging library" further down.
No specific reason, no. I placed the check there because it seemed
to be the general area where we make cheks of this kind (checks for
library functions, ptrace prototypes, etc). But I'm happy to move
it next to the AIX thread detection check. We could even perform
the check on AIX only, although I had the feeling that we usually
this type of check regardless of the host (this is the case for
the ptrace checks, for instance).
--
Joel