From: Bruno Haible Date: Sat, 21 May 2011 09:31:07 +0000 (+0200) Subject: trunc: Move AC_LIBOBJ invocations to module description. X-Git-Tag: v0.1~2518 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=a4c436136b4aaa0259add12435af3bbec862e5f7;p=gnulib.git trunc: Move AC_LIBOBJ invocations to module description. * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here... * modules/trunc (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index a7fa93b91..b5a4a8bcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-21 Bruno Haible + trunc: Move AC_LIBOBJ invocations to module description. + * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here... + * modules/trunc (configure.ac): ... to here. + +2011-05-21 Bruno Haible + truncf: Move AC_LIBOBJ invocations to module description. * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here... * modules/truncf (configure.ac): ... to here. diff --git a/m4/trunc.m4 b/m4/trunc.m4 index e1069115c..953f5b131 100644 --- a/m4/trunc.m4 +++ b/m4/trunc.m4 @@ -1,4 +1,4 @@ -# trunc.m4 serial 5 +# trunc.m4 serial 6 dnl Copyright (C) 2007, 2010-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, @@ -79,7 +79,7 @@ int main() HAVE_DECL_TRUNC=0 fi if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then - AC_LIBOBJ([trunc]) + dnl No libraries are needed to link lib/trunc.c. TRUNC_LIBM= fi AC_SUBST([TRUNC_LIBM]) diff --git a/modules/trunc b/modules/trunc index 71863a54a..34f33391e 100644 --- a/modules/trunc +++ b/modules/trunc @@ -12,6 +12,9 @@ float [test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1] configure.ac: gl_FUNC_TRUNC +if test $HAVE_DECL_TRUNC = 0 || test $REPLACE_TRUNC = 1; then + AC_LIBOBJ([trunc]) +fi gl_MATH_MODULE_INDICATOR([trunc]) Makefile.am: