utimensat: Move AC_LIBOBJ invocations to module description.
authorBruno Haible <bruno@clisp.org>
Sun, 22 May 2011 15:46:30 +0000 (17:46 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 15 Jun 2011 22:07:04 +0000 (00:07 +0200)
* m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
here...
* modules/utimensat (configure.ac): ... to here.

ChangeLog
m4/utimensat.m4
modules/utimensat

index ca1d6e8ee0b79729c8986bf9bc6db454b5099559..6c8fb2f47aa10b840af5ab08005997cad7035795 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-05-22  Bruno Haible  <bruno@clisp.org>
+
+       utimensat: Move AC_LIBOBJ invocations to module description.
+       * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
+       here...
+       * modules/utimensat (configure.ac): ... to here.
+
 2011-05-22  Bruno Haible  <bruno@clisp.org>
 
        usleep: Move AC_LIBOBJ invocations to module description.
index 78472a5fbd7edcbfd569161e9c0b7f8753748d21..ddba7260717138c55a3416cec53eee1c1c9eed5f 100644 (file)
@@ -1,4 +1,4 @@
-# serial 4
+# serial 5
 # See if we need to provide utimensat replacement.
 
 dnl Copyright (C) 2009-2011 Free Software Foundation, Inc.
@@ -15,7 +15,6 @@ AC_DEFUN([gl_FUNC_UTIMENSAT],
   AC_CHECK_FUNCS_ONCE([utimensat])
   if test $ac_cv_func_utimensat = no; then
     HAVE_UTIMENSAT=0
-    AC_LIBOBJ([utimensat])
   else
     AC_CACHE_CHECK([whether utimensat works],
       [gl_cv_func_utimensat_works],
@@ -67,7 +66,6 @@ choke me
          [gl_cv_func_utimensat_works="guessing no"])])
     if test "$gl_cv_func_utimensat_works" != yes; then
       REPLACE_UTIMENSAT=1
-      AC_LIBOBJ([utimensat])
     fi
   fi
 ])
index 858fee18b75cf5e59c391c47ceebd6fd26692af2..a70ca8cbb2909c5c7216f99fb77bf24d8bb85cbc 100644 (file)
@@ -13,6 +13,9 @@ utimens         [test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1]
 
 configure.ac:
 gl_FUNC_UTIMENSAT
+if test $HAVE_UTIMENSAT = 0 || test $REPLACE_UTIMENSAT = 1; then
+  AC_LIBOBJ([utimensat])
+fi
 gl_SYS_STAT_MODULE_INDICATOR([utimensat])
 
 Makefile.am: