changeset 15230:99f3a0b0d70a

read-file: Move AC_LIBOBJ invocations to module description. * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro. * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead of gl_FUNC_READ_FILE. (Makefile.am): Augment lib_SOURCES.
author Bruno Haible <bruno@clisp.org>
date Tue, 24 May 2011 01:12:53 +0200
parents 850d61f60d1f
children 0722ede3f033
files ChangeLog m4/read-file.m4 modules/read-file
diffstat 3 files changed, 11 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-23  Bruno Haible  <bruno@clisp.org>
+
+	read-file: Move AC_LIBOBJ invocations to module description.
+	* m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
+	* modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
+	of gl_FUNC_READ_FILE.
+	(Makefile.am): Augment lib_SOURCES.
+
 2011-05-23  Bruno Haible  <bruno@clisp.org>
 
 	quotearg: Move AC_LIBOBJ invocations to module description.
--- a/m4/read-file.m4
+++ b/m4/read-file.m4
@@ -1,14 +1,8 @@
-# read-file.m4 serial 2
+# read-file.m4 serial 3
 dnl Copyright (C) 2002-2006, 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,
 dnl with or without modifications, as long as this notice is preserved.
 
-AC_DEFUN([gl_FUNC_READ_FILE],
-[
-  AC_LIBOBJ([read-file])
-  gl_PREREQ_READ_FILE
-])
-
 # Prerequisites of lib/read-file.c.
 AC_DEFUN([gl_PREREQ_READ_FILE], [:])
--- a/modules/read-file
+++ b/modules/read-file
@@ -14,9 +14,10 @@
 sys_stat
 
 configure.ac:
-gl_FUNC_READ_FILE
+gl_PREREQ_READ_FILE
 
 Makefile.am:
+lib_SOURCES += read-file.c
 
 Include:
 "read-file.h"