changeset 14949:4b78b9a95439

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.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 13:34:55 +0200
parents f3ac4841af77
children 94995b9f1d9a
files ChangeLog m4/fsync.m4 modules/fsync
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+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.
--- a/m4/fsync.m4
+++ b/m4/fsync.m4
@@ -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_CHECK_FUNCS_ONCE([fsync])
   if test $ac_cv_func_fsync = no; then
     HAVE_FSYNC=0
-    AC_LIBOBJ([fsync])
-    gl_PREREQ_FSYNC
   fi
 ])
 
--- a/modules/fsync
+++ b/modules/fsync
@@ -10,6 +10,10 @@
 
 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: