changeset 15234:0966aa04021c

safe-read: Move AC_LIBOBJ invocations to module description. * m4/safe-read.m4 (gl_SAFE_READ): Remove macro. * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead of gl_SAFE_READ. (Makefile.am): Augment lib_SOURCES.
author Bruno Haible <bruno@clisp.org>
date Tue, 24 May 2011 01:28:26 +0200
parents c1518e50c76f
children 3887949e54f2
files ChangeLog m4/safe-read.m4 modules/safe-read
diffstat 3 files changed, 11 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-05-23  Bruno Haible  <bruno@clisp.org>
+
+	safe-read: Move AC_LIBOBJ invocations to module description.
+	* m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
+	* modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
+	of gl_SAFE_READ.
+	(Makefile.am): Augment lib_SOURCES.
+
 2011-05-23  Bruno Haible  <bruno@clisp.org>
 
 	safe-alloc: Move AC_LIBOBJ invocations to module description.
--- a/m4/safe-read.m4
+++ b/m4/safe-read.m4
@@ -1,17 +1,10 @@
-# safe-read.m4 serial 5
+# safe-read.m4 serial 6
 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2011 Free Software Foundation,
 dnl 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_SAFE_READ],
-[
-  AC_LIBOBJ([safe-read])
-
-  gl_PREREQ_SAFE_READ
-])
-
 # Prerequisites of lib/safe-read.c.
 AC_DEFUN([gl_PREREQ_SAFE_READ],
 [
--- a/modules/safe-read
+++ b/modules/safe-read
@@ -11,9 +11,10 @@
 ssize_t
 
 configure.ac:
-gl_SAFE_READ
+gl_PREREQ_SAFE_READ
 
 Makefile.am:
+lib_SOURCES += safe-read.c
 
 Include:
 "safe-read.h"