From 3e5de6c5160e5d0263c789120e43d52f0d5fc819 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 11:25:14 +0200 Subject: [PATCH] round: Move AC_LIBOBJ invocations to module description. * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here... * modules/round (configure.ac): ... to here. --- ChangeLog | 6 ++++++ m4/round.m4 | 4 ++-- modules/round | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 678be92a9..08c6d2e5f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-05-21 Bruno Haible + round: Move AC_LIBOBJ invocations to module description. + * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here... + * modules/round (configure.ac): ... to here. + +2011-05-21 Bruno Haible + roundf: Move AC_LIBOBJ invocations to module description. * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here... * modules/roundf (configure.ac): ... to here. diff --git a/m4/round.m4 b/m4/round.m4 index a95d905ef..d8abbcdb5 100644 --- a/m4/round.m4 +++ b/m4/round.m4 @@ -1,4 +1,4 @@ -# round.m4 serial 10 +# round.m4 serial 11 dnl Copyright (C) 2007, 2009-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, @@ -92,7 +92,7 @@ int main() HAVE_DECL_ROUND=0 fi if test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1; then - AC_LIBOBJ([round]) + dnl Find libraries needed to link lib/round.c. gl_FUNC_FLOOR_LIBS gl_FUNC_CEIL_LIBS ROUND_LIBM= diff --git a/modules/round b/modules/round index 07dcd880b..6fe95a23b 100644 --- a/modules/round +++ b/modules/round @@ -16,6 +16,9 @@ floor [test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1] configure.ac: gl_FUNC_ROUND +if test $HAVE_DECL_ROUND = 0 || test $REPLACE_ROUND = 1; then + AC_LIBOBJ([round]) +fi gl_MATH_MODULE_INDICATOR([round]) Makefile.am: -- 2.11.0