changeset 14948:f3ac4841af77

fsusage: Move AC_LIBOBJ invocations to module description. * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FSUSAGE_EXTRA invocations from here... * modules/fsusage (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 13:32:46 +0200
parents 5f944f7ea38d
children 4b78b9a95439
files ChangeLog m4/fsusage.m4 modules/fsusage
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
+	fsusage: Move AC_LIBOBJ invocations to module description.
+	* m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
+	gl_PREREQ_FSUSAGE_EXTRA invocations from here...
+	* modules/fsusage (configure.ac): ... to here.
+
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
 	freopen: Move AC_LIBOBJ invocations to module description.
--- a/m4/fsusage.m4
+++ b/m4/fsusage.m4
@@ -1,4 +1,4 @@
-# serial 27
+# serial 28
 # Obtaining file system usage information.
 
 # Copyright (C) 1997-1998, 2000-2001, 2003-2011 Free Software Foundation, Inc.
@@ -19,10 +19,6 @@
        #include <sys/param.h>
       #endif]])
   gl_FILE_SYSTEM_USAGE([gl_cv_fs_space=yes], [gl_cv_fs_space=no])
-  if test $gl_cv_fs_space = yes; then
-    AC_LIBOBJ([fsusage])
-    gl_PREREQ_FSUSAGE_EXTRA
-  fi
 ])
 
 # Try to determine how a program can obtain file system usage information.
--- a/modules/fsusage
+++ b/modules/fsusage
@@ -13,6 +13,10 @@
 
 configure.ac:
 gl_FSUSAGE
+if test $gl_cv_fs_space = yes; then
+  AC_LIBOBJ([fsusage])
+  gl_PREREQ_FSUSAGE_EXTRA
+fi
 
 Makefile.am: