changeset 15054:18b690708865

mountlist: Move AC_LIBOBJ invocations to module description. * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and gl_PREREQ_MOUNTLIST_EXTRA invocations from here... * modules/mountlist (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 21 May 2011 16:17:22 +0200
parents d8eeaab555f5
children a8e98ddfd3a1
files ChangeLog m4/mountlist.m4 modules/mountlist
diffstat 3 files changed, 12 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-21  Bruno Haible  <bruno@clisp.org>
+
+	mountlist: Move AC_LIBOBJ invocations to module description.
+	* m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
+	gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
+	* modules/mountlist (configure.ac): ... to here.
+
 2011-05-21  Bruno Haible  <bruno@clisp.org>
 
 	mktime: Respect rules for use of AC_LIBOBJ.
--- a/m4/mountlist.m4
+++ b/m4/mountlist.m4
@@ -1,4 +1,4 @@
-# serial 10
+# serial 11
 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,
@@ -8,10 +8,6 @@
 [
   gl_LIST_MOUNTED_FILE_SYSTEMS([gl_cv_list_mounted_fs=yes],
                                [gl_cv_list_mounted_fs=no])
-  if test $gl_cv_list_mounted_fs = yes; then
-    AC_LIBOBJ([mountlist])
-    gl_PREREQ_MOUNTLIST_EXTRA
-  fi
 ])
 
 # Prerequisites of lib/mountlist.c not done by gl_LIST_MOUNTED_FILE_SYSTEMS.
--- a/modules/mountlist
+++ b/modules/mountlist
@@ -16,6 +16,10 @@
 
 configure.ac:
 gl_MOUNTLIST
+if test $gl_cv_list_mounted_fs = yes; then
+  AC_LIBOBJ([mountlist])
+  gl_PREREQ_MOUNTLIST_EXTRA
+fi
 
 Makefile.am: