changeset 14953:632892f73130

fwriting: Move AC_LIBOBJ invocations to module description. * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from here... * modules/fwriting (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 13:48:53 +0200
parents 36cb7e4a23d5
children ec17d168ffc6
files ChangeLog m4/fwriting.m4 modules/fwriting
diffstat 3 files changed, 11 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
+	fwriting: Move AC_LIBOBJ invocations to module description.
+	* m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
+	here...
+	* modules/fwriting (configure.ac): ... to here.
+
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
 	fwritable: Move AC_LIBOBJ invocations to module description.
--- a/m4/fwriting.m4
+++ b/m4/fwriting.m4
@@ -1,4 +1,4 @@
-# fwriting.m4 serial 1
+# fwriting.m4 serial 2
 dnl Copyright (C) 2007, 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,
@@ -7,7 +7,4 @@
 AC_DEFUN([gl_FUNC_FWRITING],
 [
   AC_CHECK_FUNCS_ONCE([__fwriting])
-  if test $ac_cv_func___fwriting = no; then
-    AC_LIBOBJ([fwriting])
-  fi
 ])
--- a/modules/fwriting
+++ b/modules/fwriting
@@ -12,6 +12,9 @@
 
 configure.ac:
 gl_FUNC_FWRITING
+if test $ac_cv_func___fwriting = no; then
+  AC_LIBOBJ([fwriting])
+fi
 
 Makefile.am: