From: Bruno Haible Date: Sun, 22 May 2011 16:53:14 +0000 (+0200) Subject: wctype: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2360 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=9f35d916b23497e282394370b61c94afc4de1835;p=gnulib.git wctype: Move AC_LIBOBJ invocations to module description. * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ invocation from here... * modules/wctype (configure.ac): ... to here. (Depends-on): Update conditions. --- diff --git a/ChangeLog b/ChangeLog index 1cd2c4e09..7d7be3a05 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,13 @@ 2011-05-22 Bruno Haible + wctype: Move AC_LIBOBJ invocations to module description. + * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ + invocation from here... + * modules/wctype (configure.ac): ... to here. + (Depends-on): Update conditions. + +2011-05-22 Bruno Haible + wctrans: Move AC_LIBOBJ invocations to module description. * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ invocation from here... diff --git a/m4/wctype.m4 b/m4/wctype.m4 index 93c50d3fa..f6e85addc 100644 --- a/m4/wctype.m4 +++ b/m4/wctype.m4 @@ -1,4 +1,4 @@ -# wctype.m4 serial 1 +# wctype.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_WCTYPE], [ AC_REQUIRE([gl_WCTYPE_H_DEFAULTS]) AC_REQUIRE([gl_WCTYPE_H]) - if test $HAVE_WCTYPE_T = 0; then - AC_LIBOBJ([wctype]) - fi + HAVE_WCTYPE=$HAVE_WCTYPE_T ]) diff --git a/modules/wctype b/modules/wctype index ffc76a863..4a9a004b1 100644 --- a/modules/wctype +++ b/modules/wctype @@ -14,10 +14,13 @@ m4/wctype.m4 Depends-on: wctype-h -iswblank [test $HAVE_WCTYPE_T = 0] +iswblank [test $HAVE_WCTYPE = 0] configure.ac: gl_FUNC_WCTYPE +if test $HAVE_WCTYPE = 0; then + AC_LIBOBJ([wctype]) +fi gl_WCTYPE_MODULE_INDICATOR([wctype]) Makefile.am: