changeset 15093:07cf2accb5ec

sigaction: Move AC_LIBOBJ invocations to module description. * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and gl_PREREQ_SIGACTION invocations from here... * modules/sigaction (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sun, 22 May 2011 00:14:35 +0200
parents b62edef35094
children 0045e29408f4
files ChangeLog m4/sigaction.m4 modules/sigaction
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+	sigaction: Move AC_LIBOBJ invocations to module description.
+	* m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
+	gl_PREREQ_SIGACTION invocations from here...
+	* modules/sigaction (configure.ac): ... to here.
+
+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
--- a/m4/sigaction.m4
+++ b/m4/sigaction.m4
@@ -1,4 +1,4 @@
-# sigaction.m4 serial 5
+# sigaction.m4 serial 6
 dnl Copyright (C) 2008-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,
@@ -17,8 +17,6 @@
     fi
   else
     HAVE_SIGACTION=0
-    AC_LIBOBJ([sigaction])
-    gl_PREREQ_SIGACTION
   fi
 ])
 
--- a/modules/sigaction
+++ b/modules/sigaction
@@ -12,6 +12,10 @@
 
 configure.ac:
 gl_SIGACTION
+if test $HAVE_SIGACTION = 0; then
+  AC_LIBOBJ([sigaction])
+  gl_PREREQ_SIGACTION
+fi
 gl_SIGNAL_MODULE_INDICATOR([sigaction])
 
 Makefile.am: