fsync: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sat, 7 May 2011 11:34:55 +0000 (13:34 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:06:01 +0000 (00:06 +0200)
* m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
invocations from here...
* modules/fsync (configure.ac): ... to here.

ChangeLog
m4/fsync.m4
modules/fsync

index 9546161..18546a2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
+       fsync: Move AC_LIBOBJ invocations to module description.
+       * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
+       invocations from here...
+       * modules/fsync (configure.ac): ... to here.
+
+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...
index 1aacdfa..c0b601a 100644 (file)
@@ -1,4 +1,4 @@
-# fsync.m4 serial 1
+# fsync.m4 serial 2
 dnl Copyright (C) 2008-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,
@@ -10,8 +10,6 @@ AC_DEFUN([gl_FUNC_FSYNC],
   AC_CHECK_FUNCS_ONCE([fsync])
   if test $ac_cv_func_fsync = no; then
     HAVE_FSYNC=0
-    AC_LIBOBJ([fsync])
-    gl_PREREQ_FSYNC
   fi
 ])
 
index fa01e9b..0092226 100644 (file)
@@ -10,6 +10,10 @@ unistd
 
 configure.ac:
 gl_FUNC_FSYNC
+if test $HAVE_FSYNC = 0; then
+  AC_LIBOBJ([fsync])
+  gl_PREREQ_FSYNC
+fi
 gl_UNISTD_MODULE_INDICATOR([fsync])
 
 Makefile.am: