From: Bruno Haible Date: Sat, 21 May 2011 08:54:40 +0000 (+0200) Subject: floorl: Respect rules for use of AC_LIBOBJ. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13ebbbd5b53127e51b34532465119c97ec6c23ca;p=pspp floorl: Respect rules for use of AC_LIBOBJ. * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here... * modules/floorl (configure.ac): ... to here. --- diff --git a/ChangeLog b/ChangeLog index 28f7104b46..11ef54954d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-05-21 Bruno Haible + + floorl: Respect rules for use of AC_LIBOBJ. + * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here... + * modules/floorl (configure.ac): ... to here. + 2011-05-21 Bruno Haible floor: Respect rules for use of AC_LIBOBJ. diff --git a/m4/floorl.m4 b/m4/floorl.m4 index 2741dd8b13..f21285d24e 100644 --- a/m4/floorl.m4 +++ b/m4/floorl.m4 @@ -1,4 +1,4 @@ -# floorl.m4 serial 7 +# floorl.m4 serial 8 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, @@ -23,7 +23,7 @@ AC_DEFUN([gl_FUNC_FLOORL], HAVE_DECL_FLOORL=0 fi if test $HAVE_DECL_FLOORL = 0 || test $REPLACE_FLOORL = 1; then - AC_LIBOBJ([floorl]) + dnl No libraries are needed to link lib/floorl.c. FLOORL_LIBM= fi AC_SUBST([FLOORL_LIBM]) diff --git a/modules/floorl b/modules/floorl index e21199335e..9d1bac2840 100644 --- a/modules/floorl +++ b/modules/floorl @@ -13,6 +13,9 @@ float [test $HAVE_DECL_FLOORL = 0 || test $REPLACE_FLOORL = 1] configure.ac: gl_FUNC_FLOORL +if test $HAVE_DECL_FLOORL = 0 || test $REPLACE_FLOORL = 1; then + AC_LIBOBJ([floorl]) +fi gl_MATH_MODULE_INDICATOR([floorl]) Makefile.am: