read: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 16:03:38 +0000 (18:03 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:40 +0000 (00:06 +0200)
* m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
* modules/read (configure.ac): ... to here.

ChangeLog
m4/read.m4
modules/read

index dd102d4d37c5964d0e3a6b7fde18f1b502a33cf1..02c6a7c4db0b0d22560d5e252eb10d5af5e980af 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+       read: Move AC_LIBOBJ invocations to module description.
+       * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
+       * modules/read (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
        rawmemchr: Move AC_LIBOBJ invocations to module description.
index 032761f1bab7e4bf79d1d35b4c98131ffcf225dd..310e5ebcfb2f047931faccd0f0e5f2f5fa43aeba 100644 (file)
@@ -1,4 +1,4 @@
-# read.m4 serial 1
+# read.m4 serial 2
 dnl Copyright (C) 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,
@@ -14,7 +14,6 @@ AC_DEFUN([gl_FUNC_READ],
     gl_NONBLOCKING_IO
     if test $gl_cv_have_nonblocking != yes; then
       REPLACE_READ=1
-      AC_LIBOBJ([read])
     fi
   ])
 ])
index 85a9e02bbf7e56c5b3eff63f10bbdc7763d27266..12d97c75fb2976c7e879f948f05c5d5a2b3447a5 100644 (file)
@@ -10,6 +10,9 @@ unistd
 
 configure.ac:
 gl_FUNC_READ
+if test $REPLACE_READ = 1; then
+  AC_LIBOBJ([read])
+fi
 gl_UNISTD_MODULE_INDICATOR([read])
 
 Makefile.am: