From 355f1de54abe6f4ac302c35fa68ba0cbe4038ac6 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 13:58:24 +0200 Subject: [PATCH] strtod: Move AC_LIBOBJ invocations to module description. * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD invocations from here... * modules/strtod (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/strtod.m4 | 6 +----- modules/strtod | 4 ++++ 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1081c94a5f..3f7f0975dc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-22 Bruno Haible + + strtod: Move AC_LIBOBJ invocations to module description. + * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD + invocations from here... + * modules/strtod (configure.ac): ... to here. + 2011-05-22 Bruno Haible strstr*: Move AC_LIBOBJ invocations to module description. diff --git a/m4/strtod.m4 b/m4/strtod.m4 index f40e342f43..bd97667b26 100644 --- a/m4/strtod.m4 +++ b/m4/strtod.m4 @@ -1,4 +1,4 @@ -# strtod.m4 serial 20 +# strtod.m4 serial 21 dnl Copyright (C) 2002-2003, 2006-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, @@ -118,10 +118,6 @@ numeric_equal (double x, double y) REPLACE_STRTOD=1 fi fi - if test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1; then - AC_LIBOBJ([strtod]) - gl_PREREQ_STRTOD - fi ]) # Prerequisites of lib/strtod.c. diff --git a/modules/strtod b/modules/strtod index 4c2151962a..e8b72b4ff3 100644 --- a/modules/strtod +++ b/modules/strtod @@ -14,6 +14,10 @@ stdbool [test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1] configure.ac: gl_FUNC_STRTOD +if test $HAVE_STRTOD = 0 || test $REPLACE_STRTOD = 1; then + AC_LIBOBJ([strtod]) + gl_PREREQ_STRTOD +fi gl_STDLIB_MODULE_INDICATOR([strtod]) Makefile.am: -- 2.30.2