isapipe: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 8 May 2011 22:39:35 +0000 (00:39 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:12 +0000 (00:06 +0200)
* m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
gl_PREREQ_ISAPIPE invocations from here...
* modules/isapipe (configure.ac): ... to here.
(Depends-on): Update condition.

ChangeLog
m4/isapipe.m4
modules/isapipe

index 9eec8fb518f7af265745bf7511c504c4875236d0..e8faac176742776812d6b598257029c4b34289fa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-08  Bruno Haible  <bruno@clisp.org>
+
+       isapipe: Move AC_LIBOBJ invocations to module description.
+       * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
+       gl_PREREQ_ISAPIPE invocations from here...
+       * modules/isapipe (configure.ac): ... to here.
+       (Depends-on): Update condition.
+
 2011-05-08  Bruno Haible  <bruno@clisp.org>
 
        ioctl: Move AC_LIBOBJ invocations to module description.
index 76402ff89a209b492ddcc7795af08dddc3fbb340..3f6ff91f502c6e18486e419b423f209f5a8d2a46 100644 (file)
@@ -11,9 +11,11 @@ dnl Written by Paul Eggert.
 AC_DEFUN([gl_ISAPIPE],
 [
   # OpenVMS has isapipe already, so check for it.
-  AC_REPLACE_FUNCS([isapipe])
-  if test $ac_cv_func_isapipe = no; then
-    gl_PREREQ_ISAPIPE
+  AC_CHECK_FUNCS([isapipe])
+  if test $ac_cv_func_isapipe = yes; then
+    HAVE_ISAPIPE=1
+  else
+    HAVE_ISAPIPE=0
   fi
 ])
 
index ee1c2202d6989210f00c88e733fb42c13c46edbf..cc62ea8ce71a20aa22e857335e17b942b6836928 100644 (file)
@@ -7,12 +7,16 @@ lib/isapipe.h
 m4/isapipe.m4
 
 Depends-on:
-stdbool         [test $ac_cv_func_isapipe = no]
-sys_stat        [test $ac_cv_func_isapipe = no]
-unistd          [test $ac_cv_func_isapipe = no]
+stdbool         [test $HAVE_ISAPIPE = 0]
+sys_stat        [test $HAVE_ISAPIPE = 0]
+unistd          [test $HAVE_ISAPIPE = 0]
 
 configure.ac:
 gl_ISAPIPE
+if test $HAVE_ISAPIPE = 0; then
+  AC_LIBOBJ([isapipe])
+  gl_PREREQ_ISAPIPE
+fi
 
 Makefile.am: