mountlist: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 21 May 2011 14:17:22 +0000 (16:17 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:34 +0000 (00:06 +0200)
* m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
* modules/mountlist (configure.ac): ... to here.

ChangeLog
m4/mountlist.m4
modules/mountlist

index 216727a..17e47fc 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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.
        * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
        (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
index 12c9d0e..a00082d 100644 (file)
@@ -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 @@ AC_DEFUN([gl_MOUNTLIST],
 [
   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.
index 65af9c1..1e7d22a 100644 (file)
@@ -16,6 +16,10 @@ xalloc
 
 configure.ac:
 gl_MOUNTLIST
+if test $gl_cv_list_mounted_fs = yes; then
+  AC_LIBOBJ([mountlist])
+  gl_PREREQ_MOUNTLIST_EXTRA
+fi
 
 Makefile.am: