changeset 15169:66e9b74a4b8e

wmemchr: Move AC_LIBOBJ invocations to module description. * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from here... * modules/wmemchr (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 19:03:12 +0200
parents 6a22832c8bd6
children f5f0af38d010
files ChangeLog m4/wmemchr.m4 modules/wmemchr
diffstat 3 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	wmemchr: Move AC_LIBOBJ invocations to module description.
+	* m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
+	here...
+	* modules/wmemchr (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wcswidth: Move AC_LIBOBJ invocations to module description.
--- a/m4/wmemchr.m4
+++ b/m4/wmemchr.m4
@@ -1,4 +1,4 @@
-# wmemchr.m4 serial 1
+# wmemchr.m4 serial 2
 dnl Copyright (C) 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,
@@ -10,6 +10,5 @@
   AC_CHECK_FUNCS_ONCE([wmemchr])
   if test $ac_cv_func_wmemchr = no; then
     HAVE_WMEMCHR=0
-    AC_LIBOBJ([wmemchr])
   fi
 ])
--- a/modules/wmemchr
+++ b/modules/wmemchr
@@ -11,6 +11,9 @@
 
 configure.ac:
 gl_FUNC_WMEMCHR
+if test $HAVE_WMEMCHR = 0; then
+  AC_LIBOBJ([wmemchr])
+fi
 gl_WCHAR_MODULE_INDICATOR([wmemchr])
 
 Makefile.am: