Maybe you should at least check for "grp.h" and getgrent etc in a separate check, since they are in a separate header file ... although "pwd.h" might imply the existence of "grp.h", it could make errors if it didn't harder to work out if there wasn't a separate configure check.
Yeah, I figured that, too. Thanks, Martin