From 0f5610c0565a61de2607a011f62254973b019f89 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 22 May 2011 17:50:15 +0200 Subject: [PATCH] waitpid: Move AC_LIBOBJ invocations to module description. * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ invocation from here... * modules/waitpid (configure.ac): ... to here. --- ChangeLog | 7 +++++++ m4/waitpid.m4 | 7 +++---- modules/waitpid | 3 +++ 3 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c8fb2f47..773cd3400 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2011-05-22 Bruno Haible + waitpid: Move AC_LIBOBJ invocations to module description. + * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ + invocation from here... + * modules/waitpid (configure.ac): ... to here. + +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... diff --git a/m4/waitpid.m4 b/m4/waitpid.m4 index ccc25e4c5..ceeeeeddf 100644 --- a/m4/waitpid.m4 +++ b/m4/waitpid.m4 @@ -1,4 +1,4 @@ -# waitpid.m4 serial 1 +# waitpid.m4 serial 2 dnl Copyright (C) 2010-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, @@ -7,9 +7,8 @@ dnl with or without modifications, as long as this notice is preserved. AC_DEFUN([gl_FUNC_WAITPID], [ AC_REQUIRE([AC_CANONICAL_HOST]) + HAVE_WAITPID=1 case $host_os in - mingw*) - AC_LIBOBJ([waitpid]) - ;; + mingw*) HAVE_WAITPID=0 ;; esac ]) diff --git a/modules/waitpid b/modules/waitpid index f9699c6c5..59e0375bb 100644 --- a/modules/waitpid +++ b/modules/waitpid @@ -10,6 +10,9 @@ sys_wait configure.ac: gl_FUNC_WAITPID +if test $HAVE_WAITPID = 0; then + AC_LIBOBJ([waitpid]) +fi gl_SYS_WAIT_MODULE_INDICATOR([waitpid]) Makefile.am: -- 2.11.0