changeset 14951:1814adb9a476

futimens: Move AC_LIBOBJ invocations to module description. * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from here... * modules/futimens (configure.ac): ... to here.
author Bruno Haible <bruno@clisp.org>
date Sat, 07 May 2011 13:45:40 +0200
parents 94995b9f1d9a
children 36cb7e4a23d5
files ChangeLog m4/futimens.m4 modules/futimens
diffstat 3 files changed, 11 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-07  Bruno Haible  <bruno@clisp.org>
+
+	futimens: Move AC_LIBOBJ invocations to module description.
+	* m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
+	here...
+	* modules/futimens (configure.ac): ... to here.
+
 2011-05-07  Bruno Haible  <bruno@clisp.org>
 
 	ftruncate: Move AC_LIBOBJ invocations to module description.
--- a/m4/futimens.m4
+++ b/m4/futimens.m4
@@ -1,4 +1,4 @@
-# serial 5
+# serial 6
 # See if we need to provide futimens replacement.
 
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@ -15,7 +15,6 @@
   AC_CHECK_FUNCS_ONCE([futimens])
   if test $ac_cv_func_futimens = no; then
     HAVE_FUTIMENS=0
-    AC_LIBOBJ([futimens])
   else
     AC_CACHE_CHECK([whether futimens works],
       [gl_cv_func_futimens_works],
@@ -55,7 +54,6 @@
       rm -f conftest.file])
     if test "$gl_cv_func_futimens_works" != yes; then
       REPLACE_FUTIMENS=1
-      AC_LIBOBJ([futimens])
     fi
   fi
 ])
--- a/modules/futimens
+++ b/modules/futimens
@@ -12,6 +12,9 @@
 
 configure.ac:
 gl_FUNC_FUTIMENS
+if test $HAVE_FUTIMENS = 0 || test $REPLACE_FUTIMENS = 1; then
+  AC_LIBOBJ([futimens])
+fi
 gl_SYS_STAT_MODULE_INDICATOR([futimens])
 
 Makefile.am: