popen: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 15:04:18 +0000 (17:04 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:36 +0000 (00:06 +0200)
* m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
invocations from here...
* modules/popen (configure.ac): ... to here.

ChangeLog
m4/popen.m4
modules/popen

index 9f4d73c..951ff38 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
+       popen: Move AC_LIBOBJ invocations to module description.
+       * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
+       invocations from here...
+       * modules/popen (configure.ac): ... to here.
+
+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...
index 7477923..c452981 100644 (file)
@@ -1,4 +1,4 @@
-# popen.m4 serial 3
+# popen.m4 serial 4
 dnl Copyright (C) 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,
@@ -27,8 +27,6 @@ AC_DEFUN([gl_FUNC_POPEN],
   ])
   if test "$gl_cv_func_popen_works" = no; then
     REPLACE_POPEN=1
-    AC_LIBOBJ([popen])
-    gl_PREREQ_POPEN
   fi
 ])
 
index d4ba0ab..37b3cf6 100644 (file)
@@ -11,6 +11,10 @@ open            [test $REPLACE_POPEN = 1]
 
 configure.ac:
 gl_FUNC_POPEN
+if test $REPLACE_POPEN = 1; then
+  AC_LIBOBJ([popen])
+  gl_PREREQ_POPEN
+fi
 gl_STDIO_MODULE_INDICATOR([popen])
 
 Makefile.am: