changeset 15069:ce7894c75267

pwrite: Move AC_LIBOBJ invocations to module description. * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here... * modules/pwrite (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 17:31:29 +0200
parents fa9d03b9c554
children 221318b8a54e
files ChangeLog m4/pwrite.m4 modules/pwrite
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	pwrite: Move AC_LIBOBJ invocations to module description.
+	* m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
+	* modules/pwrite (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	putenv: Move AC_LIBOBJ invocations to module description.
--- a/m4/pwrite.m4
+++ b/m4/pwrite.m4
@@ -1,4 +1,4 @@
-# pwrite.m4 serial 3
+# pwrite.m4 serial 4
 dnl Copyright (C) 2010-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,
@@ -100,7 +100,4 @@
   else
     HAVE_PWRITE=0
   fi
-  if test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1; then
-    AC_LIBOBJ([pwrite])
-  fi
 ])
--- a/modules/pwrite
+++ b/modules/pwrite
@@ -13,6 +13,9 @@
 
 configure.ac:
 gl_FUNC_PWRITE
+if test $HAVE_PWRITE = 0 || test $REPLACE_PWRITE = 1; then
+  AC_LIBOBJ([pwrite])
+fi
 gl_UNISTD_MODULE_INDICATOR([pwrite])
 
 Makefile.am: