From f9c05953abe71226e9714b22251327b8cbad8462 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 14:08:12 +0200 Subject: [PATCH] strtoul: Move AC_LIBOBJ invocations to module description. * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here... * modules/strtoul (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/strtoul.m4 | 4 ++-- modules/strtoul | 3 +++ 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0b67636e3..5ab0c71e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + strtoul: Move AC_LIBOBJ invocations to module description. + * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here... + * modules/strtoul (configure.ac): ... to here. + +2011-05-22 Bruno Haible + strtol: Move AC_LIBOBJ invocations to module description. * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here... diff --git a/m4/strtoul.m4 b/m4/strtoul.m4 index 06979d16c..0f80e33ec 100644 --- a/m4/strtoul.m4 +++ b/m4/strtoul.m4 @@ -1,4 +1,4 @@ -# strtoul.m4 serial 4 +# strtoul.m4 serial 5 dnl Copyright (C) 2002, 2006, 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, @@ -6,5 +6,5 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_STRTOUL], [ - AC_REPLACE_FUNCS([strtoul]) + AC_CHECK_FUNCS([strtoul]) ]) diff --git a/modules/strtoul b/modules/strtoul index dc2b50b12..7f3139ca4 100644 --- a/modules/strtoul +++ b/modules/strtoul @@ -16,6 +16,9 @@ Depends-on: configure.ac: gl_FUNC_STRTOUL +if test $ac_cv_func_strtoul = no; then + AC_LIBOBJ([strtoul]) +fi Makefile.am: -- 2.11.0