| 1 |
# group-member.m4 |
| 2 |
# serial 14 |
| 3 |
dnl Copyright (C) 1999-2001, 2003-2007, 2009-2024 Free Software Foundation, Inc. |
| 4 |
dnl This file is free software; the Free Software Foundation |
| 5 |
dnl gives unlimited permission to copy and/or distribute it, |
| 6 |
dnl with or without modifications, as long as this notice is preserved. |
| 7 |
dnl This file is offered as-is, without any warranty. |
| 8 |
|
| 9 |
dnl Written by Jim Meyering |
| 10 |
|
| 11 |
AC_DEFUN([gl_FUNC_GROUP_MEMBER], |
| 12 |
[ |
| 13 |
AC_REQUIRE([gl_UNISTD_H_DEFAULTS]) |
| 14 |
|
| 15 |
dnl Persuade glibc <unistd.h> to declare group_member(). |
| 16 |
AC_REQUIRE([AC_USE_SYSTEM_EXTENSIONS]) |
| 17 |
|
| 18 |
dnl Do this replacement check manually because I want the hyphen |
| 19 |
dnl (not the underscore) in the filename. |
| 20 |
AC_CHECK_FUNC([group_member], , [ |
| 21 |
HAVE_GROUP_MEMBER=0 |
| 22 |
]) |
| 23 |
]) |
| 24 |
|
| 25 |
# Prerequisites of lib/group-member.c. |
| 26 |
AC_DEFUN([gl_PREREQ_GROUP_MEMBER], |
| 27 |
[ |
| 28 |
AC_REQUIRE([AC_FUNC_GETGROUPS]) |
| 29 |
]) |