From: Bruno Haible <bruno@clisp.org>
Date: Sun, 22 May 2011 16:09:19 +0000 (+0200)
Subject: wcschr: Move AC_LIBOBJ invocations to module description.
X-Git-Tag: v0.1~2383
X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=65aed478d4f78a9b26da321b9e1917ded95ab49a;p=gnulib.git

wcschr: Move AC_LIBOBJ invocations to module description.

* m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
* modules/wcschr (configure.ac): ... to here.
---

diff --git a/ChangeLog b/ChangeLog
index 1d87fb180c..9d721c772c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+	wcschr: Move AC_LIBOBJ invocations to module description.
+	* m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
+	* modules/wcschr (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
 	wcscat: Move AC_LIBOBJ invocations to module description.
diff --git a/m4/wcschr.m4 b/m4/wcschr.m4
index 1813a06f45..7f5301a5c2 100644
--- a/m4/wcschr.m4
+++ b/m4/wcschr.m4
@@ -1,4 +1,4 @@
-# wcschr.m4 serial 1
+# wcschr.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_DEFUN([gl_FUNC_WCSCHR],
   AC_CHECK_FUNCS_ONCE([wcschr])
   if test $ac_cv_func_wcschr = no; then
     HAVE_WCSCHR=0
-    AC_LIBOBJ([wcschr])
   fi
 ])
diff --git a/modules/wcschr b/modules/wcschr
index a84a91a861..756d057967 100644
--- a/modules/wcschr
+++ b/modules/wcschr
@@ -17,6 +17,9 @@ wchar
 
 configure.ac:
 gl_FUNC_WCSCHR
+if test $HAVE_WCSCHR = 0; then
+  AC_LIBOBJ([wcschr])
+fi
 gl_WCHAR_MODULE_INDICATOR([wcschr])
 
 Makefile.am: