From 43e69d5a85dc008c1110300fcd0d536d37148fc7 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 21 May 2011 15:50:21 +0200 Subject: [PATCH] mkfifoat: Move AC_LIBOBJ invocations to module description. * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from here... * modules/mkfifoat (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/mkfifoat.m4 | 4 +--- modules/mkfifoat | 6 ++++++ 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 680d73b5ef..4e5f0cbd04 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-05-21 Bruno Haible + + mkfifoat: Move AC_LIBOBJ invocations to module description. + * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from + here... + * modules/mkfifoat (configure.ac): ... to here. + 2011-05-21 Bruno Haible mkfifo: Respect rules for use of AC_LIBOBJ. diff --git a/m4/mkfifoat.m4 b/m4/mkfifoat.m4 index fe7fcdff60..1cc94ef569 100644 --- a/m4/mkfifoat.m4 +++ b/m4/mkfifoat.m4 @@ -1,4 +1,4 @@ -# serial 2 +# serial 3 # See if we need to provide mkfifoat/mknodat replacement. dnl Copyright (C) 2009-2011 Free Software Foundation, Inc. @@ -18,7 +18,5 @@ AC_DEFUN([gl_FUNC_MKFIFOAT], # No known system has mkfifoat but not mknodat HAVE_MKFIFOAT=0 HAVE_MKNODAT=0 - AC_LIBOBJ([mkfifoat]) - AC_LIBOBJ([mknodat]) fi ]) diff --git a/modules/mkfifoat b/modules/mkfifoat index 705fb4f9cf..6197d64b0f 100644 --- a/modules/mkfifoat +++ b/modules/mkfifoat @@ -16,6 +16,12 @@ openat [test $HAVE_MKFIFOAT = 0 || test $HAVE_MKNODAT = 0] configure.ac: gl_FUNC_MKFIFOAT +if test $HAVE_MKFIFOAT = 0; then + AC_LIBOBJ([mkfifoat]) +fi +if test $HAVE_MKNODAT = 0; then + AC_LIBOBJ([mknodat]) +fi gl_UNISTD_MODULE_INDICATOR([mkfifoat]) gl_UNISTD_MODULE_INDICATOR([mknodat]) -- 2.30.2