changeset 15043:0527dd6759fc

memset: Move AC_LIBOBJ invocations to module description. * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from here... * modules/memset (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 15:28:17 +0200
parents 8e387f7f0bf9
children 761f4b6451f0
files ChangeLog m4/memset.m4 modules/memset
diffstat 3 files changed, 14 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	memset: Move AC_LIBOBJ invocations to module description.
+	* m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
+	AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
+	here...
+	* modules/memset (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	memrchr: Move AC_LIBOBJ invocations to module description.
--- a/m4/memset.m4
+++ b/m4/memset.m4
@@ -1,4 +1,4 @@
-# memset.m4 serial 3
+# memset.m4 serial 4
 dnl Copyright (C) 2002, 2009-2011 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -6,10 +6,7 @@
 
 AC_DEFUN([gl_FUNC_MEMSET],
 [
-  AC_REPLACE_FUNCS([memset])
-  if test $ac_cv_func_memset = no; then
-    gl_PREREQ_MEMSET
-  fi
+  AC_CHECK_FUNCS([memset])
 ])
 
 # Prerequisites of lib/memset.c.
--- a/modules/memset
+++ b/modules/memset
@@ -15,6 +15,10 @@
 
 configure.ac:
 gl_FUNC_MEMSET
+if test $ac_cv_func_memset = no; then
+  AC_LIBOBJ([memset])
+  gl_PREREQ_MEMSET
+fi
 
 Makefile.am: