wctrans: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 16:51:09 +0000 (18:51 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:13 +0000 (00:07 +0200)
* m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
invocation from here...
* modules/wctrans (configure.ac): ... to here.

ChangeLog
m4/wctrans.m4
modules/wctrans

index d4590ac..1cd2c4e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
+       wctrans: Move AC_LIBOBJ invocations to module description.
+       * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
+       invocation from here...
+       * modules/wctrans (configure.ac): ... to here.
+
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
        wctomb: Move AC_LIBOBJ invocations to module description.
        * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
        invocations from here...
index f09b3fc..7b956d8 100644 (file)
@@ -1,4 +1,4 @@
-# wctrans.m4 serial 1
+# wctrans.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,
@@ -8,7 +8,5 @@ AC_DEFUN([gl_FUNC_WCTRANS],
 [
   AC_REQUIRE([gl_WCTYPE_H_DEFAULTS])
   AC_REQUIRE([gl_WCTYPE_H])
-  if test $HAVE_WCTRANS_T = 0; then
-    AC_LIBOBJ([wctrans])
-  fi
+  HAVE_WCTRANS=$HAVE_WCTRANS_T
 ])
index c1eaeaa..5147a16 100644 (file)
@@ -11,6 +11,9 @@ wctype-h
 
 configure.ac:
 gl_FUNC_WCTRANS
+if test $HAVE_WCTRANS = 0; then
+  AC_LIBOBJ([wctrans])
+fi
 gl_WCTYPE_MODULE_INDICATOR([wctrans])
 
 Makefile.am: