From ddc86dda9ca916de94b03764e3e0455821676c08 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 11:23:03 +0200 Subject: [PATCH] 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. --- ChangeLog | 6 ++++++ m4/roundf.m4 | 4 ++-- modules/roundf | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 82ce8d87a..678be92a9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 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. + +2011-05-21 Bruno Haible + truncl: Move AC_LIBOBJ invocations to module description. * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here... * modules/truncl (configure.ac): ... to here. diff --git a/m4/roundf.m4 b/m4/roundf.m4 index a2a1464e6..0ff964608 100644 --- a/m4/roundf.m4 +++ b/m4/roundf.m4 @@ -1,4 +1,4 @@ -# roundf.m4 serial 10 +# roundf.m4 serial 11 dnl Copyright (C) 2007-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, @@ -89,7 +89,7 @@ int main() HAVE_DECL_ROUNDF=0 fi if test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then - AC_LIBOBJ([roundf]) + dnl Find libraries needed to link lib/roundf.c. AC_CHECK_DECLS([ceilf, floorf], , , [#include ]) if test "$ac_cv_have_decl_floorf" = yes \ && test "$ac_cv_have_decl_ceilf" = yes; then diff --git a/modules/roundf b/modules/roundf index d9c283eb3..86d758b90 100644 --- a/modules/roundf +++ b/modules/roundf @@ -16,6 +16,9 @@ float [test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1] configure.ac: gl_FUNC_ROUNDF +if test $HAVE_DECL_ROUNDF = 0 || test $REPLACE_ROUNDF = 1; then + AC_LIBOBJ([roundf]) +fi gl_MATH_MODULE_INDICATOR([roundf]) Makefile.am: -- 2.11.0