From fdfc1fcada2d062b008aeaa4ae2e2facb69efe19 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 17:14:51 +0200 Subject: [PATCH] unlink: Respect rules for use of AC_LIBOBJ. * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here... * modules/unlink (configure.ac): ... to here. --- ChangeLog | 6 ++++++ m4/unlink.m4 | 3 +-- modules/unlink | 3 +++ 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index e395bb53f0..b3264eecbc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-05-22 Bruno Haible + + unlink: Respect rules for use of AC_LIBOBJ. + * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here... + * modules/unlink (configure.ac): ... to here. + 2011-05-22 Bruno Haible uname: Move AC_LIBOBJ invocations to module description. diff --git a/m4/unlink.m4 b/m4/unlink.m4 index a49a692878..49cd3bb80a 100644 --- a/m4/unlink.m4 +++ b/m4/unlink.m4 @@ -1,4 +1,4 @@ -# unlink.m4 serial 7 +# unlink.m4 serial 8 dnl Copyright (C) 2009-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, @@ -108,6 +108,5 @@ AC_DEFUN([gl_FUNC_UNLINK], esac }; then REPLACE_UNLINK=1 - AC_LIBOBJ([unlink]) fi ]) diff --git a/modules/unlink b/modules/unlink index 26af43ddcc..63720aaf10 100644 --- a/modules/unlink +++ b/modules/unlink @@ -12,6 +12,9 @@ lstat [test $REPLACE_UNLINK = 1] configure.ac: gl_FUNC_UNLINK +if test $REPLACE_UNLINK = 1; then + AC_LIBOBJ([unlink]) +fi gl_UNISTD_MODULE_INDICATOR([unlink]) Makefile.am: -- 2.30.2