From 69d741ae8e8fcd1c18c965bac6e7cf147e96361b Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 17 Aug 2003 17:57:38 +0000 Subject: Sync with gnulib. --- m4/getgroups.m4 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'm4/getgroups.m4') diff --git a/m4/getgroups.m4 b/m4/getgroups.m4 index 06213ae49..8f3101056 100644 --- a/m4/getgroups.m4 +++ b/m4/getgroups.m4 @@ -1,14 +1,22 @@ -#serial 7 +#serial 8 dnl From Jim Meyering. dnl A wrapper around AC_FUNC_GETGROUPS. AC_DEFUN([jm_FUNC_GETGROUPS], -[AC_REQUIRE([AC_FUNC_GETGROUPS])dnl +[ + AC_REQUIRE([AC_FUNC_GETGROUPS]) if test $ac_cv_func_getgroups_works = no; then AC_LIBOBJ(getgroups) AC_DEFINE(getgroups, rpl_getgroups, [Define as rpl_getgroups if getgroups doesn't work right.]) + gl_PREREQ_GETGROUPS fi test -n "$GETGROUPS_LIB" && LIBS="$GETGROUPS_LIB $LIBS" ]) + +# Prerequisites of lib/getgroups.c. +AC_DEFUN([gl_PREREQ_GETGROUPS], +[ + AC_REQUIRE([AC_TYPE_GETGROUPS]) +]) -- cgit v1.2.3-54-g00ecf