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