On Wed, 25 Mar 2009, Eric Blake wrote:
I think a more important question is which test caused this #define to be
generated in the first place.
This was generated by AC_FUNC_GETGROUPS:
AN_FUNCTION([getgroups], [AC_FUNC_GETGROUPS])
AC_DEFUN([AC_FUNC_GETGROUPS],
[AC_REQUIRE([AC_TYPE_GETGROUPS])dnl
AC_REQUIRE([AC_TYPE_SIZE_T])dnl
AC_CHECK_FUNC(getgroups)
As you can see, it unconditionally runs AC_TYPE_SIZE_T, which in turn
generates the problem code.
Can you post a simple configure.ac to reproduce this?
Sure:
AC_INIT
AC_FUNC_GETGROUPS
The generated configure adds the code
#define size_t unsigned int
to confdefs.h at line 3556 on my system (using autoconf 1.10.1).
--
http://rrt.sc3d.org/ | think tank, n. a safe container for noxious gases