summaryrefslogtreecommitdiff
path: root/m4/getgroups.m4
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-08-17 17:57:38 +0000
committerJim Meyering <jim@meyering.net>2003-08-17 17:57:38 +0000
commit69d741ae8e8fcd1c18c965bac6e7cf147e96361b (patch)
tree62e073815068d79325944748054095e31aba1134 /m4/getgroups.m4
parent56f3c86407c47dde33e1c558312525a4a671b157 (diff)
downloadcoreutils-69d741ae8e8fcd1c18c965bac6e7cf147e96361b.tar.xz
Sync with gnulib.
Diffstat (limited to 'm4/getgroups.m4')
-rw-r--r--m4/getgroups.m412
1 files changed, 10 insertions, 2 deletions
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])
+])