poll: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 14:58:50 +0000 (16:58 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:36 +0000 (00:06 +0200)
* m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
invocations from here...
* modules/poll (configure.ac): ... to here.

ChangeLog
m4/poll.m4
modules/poll

index f2cd4ef83115baaa93601c08277af85d070e9a1b..9f4d73ca8133623ce20b689e6a0dee597eaf69b7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       poll: Move AC_LIBOBJ invocations to module description.
+       * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
+       invocations from here...
+       * modules/poll (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        pipe-posix: Move AC_LIBOBJ invocations to module description.
index d226e1c01160337d3f98ca1c025c23a5d1f3681a..e489df7a00899fb2bdc38f26c19993cf228c96c3 100644 (file)
@@ -1,4 +1,4 @@
-# poll.m4 serial 13
+# poll.m4 serial 14
 dnl Copyright (c) 2003, 2005-2007, 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,
@@ -63,8 +63,7 @@ This is MacOSX or AIX
     fi
   fi
   if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
-    AC_LIBOBJ([poll])
-    gl_PREREQ_POLL
+    :
   else
     AC_DEFINE([HAVE_POLL], [1],
       [Define to 1 if you have the 'poll' function and it works.])
index 478e99ba74b9b5618616bde4040135ba54a4db92..f1f22bfd814efc5520f08130ab9f7f08a7098206 100644 (file)
@@ -15,6 +15,10 @@ errno           [test $HAVE_POLL = 0 || test $REPLACE_POLL = 1]
 
 configure.ac:
 gl_FUNC_POLL
+if test $HAVE_POLL = 0 || test $REPLACE_POLL = 1; then
+  AC_LIBOBJ([poll])
+  gl_PREREQ_POLL
+fi
 gl_POLL_MODULE_INDICATOR([poll])
 
 Makefile.am: