changeset 14979:7a1b4cd6d351

group-member: Move AC_LIBOBJ invocations to module description. * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Set HAVE_GROUP_MEMBER. Move AC_LIBOBJ and gl_PREREQ_GROUP_MEMBER invocations from here... * modules/group-member (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 08 May 2011 20:42:41 +0200
parents d68b0e2957f5
children 8894cea69a3b
files ChangeLog m4/group-member.m4 modules/group-member
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+	group-member: Move AC_LIBOBJ invocations to module description.
+	* m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
+	gl_PREREQ_GROUP_MEMBER invocations from here...
+	* modules/group-member (configure.ac): ... to here.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
 	grantpt: Move AC_LIBOBJ invocations to module description.
--- a/m4/group-member.m4
+++ b/m4/group-member.m4
@@ -1,4 +1,4 @@
-# serial 13
+# serial 14
 
 # Copyright (C) 1999-2001, 2003-2007, 2009-2011 Free Software Foundation, Inc.
 
@@ -20,10 +20,6 @@
   AC_CHECK_FUNC([group_member], , [
     HAVE_GROUP_MEMBER=0
   ])
-  if test $HAVE_GROUP_MEMBER = 0; then
-    AC_LIBOBJ([group-member])
-    gl_PREREQ_GROUP_MEMBER
-  fi
 ])
 
 # Prerequisites of lib/group-member.c.
--- a/modules/group-member
+++ b/modules/group-member
@@ -14,6 +14,10 @@
 
 configure.ac:
 gl_FUNC_GROUP_MEMBER
+if test $HAVE_GROUP_MEMBER = 0; then
+  AC_LIBOBJ([group-member])
+  gl_PREREQ_GROUP_MEMBER
+fi
 gl_UNISTD_MODULE_INDICATOR([group-member])
 
 Makefile.am: