From f5d5c90de1d7a944224e9e8b4132fee006602dde Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 00:11:35 +0200 Subject: [PATCH] sig2str: Move AC_LIBOBJ invocations to module description. * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from here... * modules/sig2str (configure.ac): ... to here. --- ChangeLog | 8 ++++++++ m4/sig2str.m4 | 8 ++------ modules/sig2str | 4 ++++ 3 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index b02cc3e576..281dfd85f7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-05-21 Bruno Haible + + sig2str: Move AC_LIBOBJ invocations to module description. + * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of + AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from + here... + * modules/sig2str (configure.ac): ... to here. + 2011-05-21 Bruno Haible setlocale: Move AC_LIBOBJ invocations to module description. diff --git a/m4/sig2str.m4 b/m4/sig2str.m4 index bafc6b6f95..2c394cf39b 100644 --- a/m4/sig2str.m4 +++ b/m4/sig2str.m4 @@ -1,4 +1,4 @@ -# serial 6 +# serial 7 dnl Copyright (C) 2002, 2005-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,11 +6,7 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_SIG2STR], [ - - AC_REPLACE_FUNCS([sig2str]) - if test $ac_cv_func_sig2str = no; then - gl_PREREQ_SIG2STR - fi + AC_CHECK_FUNCS([sig2str]) ]) # Prerequisites of lib/sig2str.c. diff --git a/modules/sig2str b/modules/sig2str index 89d00cc63e..ccc26a90f6 100644 --- a/modules/sig2str +++ b/modules/sig2str @@ -11,6 +11,10 @@ intprops configure.ac: gl_FUNC_SIG2STR +if test $ac_cv_func_sig2str = no; then + AC_LIBOBJ([sig2str]) + gl_PREREQ_SIG2STR +fi Makefile.am: -- 2.30.2