* 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 <bruno@clisp.org>
+
+ 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 <bruno@clisp.org>
utimensat: Move AC_LIBOBJ invocations to module description.
-# 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,
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
])
configure.ac:
gl_FUNC_WAITPID
+if test $HAVE_WAITPID = 0; then
+ AC_LIBOBJ([waitpid])
+fi
gl_SYS_WAIT_MODULE_INDICATOR([waitpid])
Makefile.am: