4 dnl A wrapper around AC_FUNC_GETGROUPS.
6 AC_DEFUN([gl_FUNC_GETGROUPS],
8 AC_REQUIRE([AC_FUNC_GETGROUPS])
9 if test $ac_cv_func_getgroups_works = no; then
11 AC_DEFINE(getgroups, rpl_getgroups,
12 [Define as rpl_getgroups if getgroups doesn't work right.])
15 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
18 # Prerequisites of lib/getgroups.c.
19 AC_DEFUN([gl_PREREQ_GETGROUPS],
21 AC_REQUIRE([AC_TYPE_GETGROUPS])