sig2str: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 22:11:35 +0000 (00:11 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:46 +0000 (00:06 +0200)
* 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
m4/sig2str.m4
modules/sig2str

index b02cc3e..281dfd8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       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  <bruno@clisp.org>
+
        setlocale: Move AC_LIBOBJ invocations to module description.
        * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
        gl_PREREQ_SETLOCALE invocations from here...
index bafc6b6..2c394cf 100644 (file)
@@ -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.
index 89d00cc..ccc26a9 100644 (file)
@@ -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: