4 dnl A wrapper around AC_FUNC_GETGROUPS.
6 # Copyright (C) 1996, 1997, 1999, 2000, 2001, 2002, 2003, 2004 Free
7 # Software Foundation, Inc.
9 # This file is free software; the Free Software Foundation
10 # gives unlimited permission to copy and/or distribute it,
11 # with or without modifications, as long as this notice is preserved.
13 AC_DEFUN([gl_FUNC_GETGROUPS],
15 AC_REQUIRE([AC_FUNC_GETGROUPS])
16 if test $ac_cv_func_getgroups_works = no; then
18 AC_DEFINE(getgroups, rpl_getgroups,
19 [Define as rpl_getgroups if getgroups doesn't work right.])
22 test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS"
25 # Prerequisites of lib/getgroups.c.
26 AC_DEFUN([gl_PREREQ_GETGROUPS],
28 AC_REQUIRE([AC_TYPE_GETGROUPS])