From 41d7a701b4d32af0f1a858ab633e598d8c0f1229 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 17:46:30 +0200 Subject: [PATCH] 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. --- ChangeLog | 7 +++++++ m4/utimensat.m4 | 4 +--- modules/utimensat | 3 +++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index ca1d6e8ee..6c8fb2f47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + 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 + usleep: Move AC_LIBOBJ invocations to module description. * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from here... diff --git a/m4/utimensat.m4 b/m4/utimensat.m4 index 78472a5fb..ddba72607 100644 --- a/m4/utimensat.m4 +++ b/m4/utimensat.m4 @@ -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 ]) diff --git a/modules/utimensat b/modules/utimensat index 858fee18b..a70ca8cbb 100644 --- a/modules/utimensat +++ b/modules/utimensat @@ -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: -- 2.11.0