memmove: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 13:21:38 +0000 (15:21 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:29 +0000 (00:06 +0200)
* m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
here...
* modules/memmove (configure.ac): ... to here.

ChangeLog
m4/memmove.m4
modules/memmove

index 55d5524..756b753 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       memmove: Move AC_LIBOBJ invocations to module description.
+       * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
+       AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
+       here...
+       * modules/memmove (configure.ac): ... to here.
+
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
        memmem*: Move AC_LIBOBJ invocations to module description.
        * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
        AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
index 08c8feb..fda34f3 100644 (file)
@@ -1,4 +1,4 @@
-# memmove.m4 serial 3
+# memmove.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 @@ dnl with or without modifications, as long as this notice is preserved.
 
 AC_DEFUN([gl_FUNC_MEMMOVE],
 [
-  AC_REPLACE_FUNCS([memmove])
-  if test $ac_cv_func_memmove = no; then
-    gl_PREREQ_MEMMOVE
-  fi
+  AC_CHECK_FUNCS([memmove])
 ])
 
 # Prerequisites of lib/memmove.c.
index 53ca972..a6fdff4 100644 (file)
@@ -15,6 +15,10 @@ Depends-on:
 
 configure.ac:
 gl_FUNC_MEMMOVE
+if test $ac_cv_func_memmove = no; then
+  AC_LIBOBJ([memmove])
+  gl_PREREQ_MEMMOVE
+fi
 
 Makefile.am: