* m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke AC_LIBOBJ and
gl_PREREQ_FCHDIR.
* modules/fchdir (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_FCHDIR.
+2022-01-09 Bruno Haible <bruno@clisp.org>
+
+ fchdir: Move AC_LIBOBJ invocation to the module description.
+ * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke AC_LIBOBJ and
+ gl_PREREQ_FCHDIR.
+ * modules/fchdir (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_FCHDIR.
+
2022-01-09 Bruno Haible <bruno@clisp.org>
Remove influence of Automake conditionals on conditional dependencies.
-# fchdir.m4 serial 26
+# fchdir.m4 serial 27
dnl Copyright (C) 2006-2022 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_REQUIRE([gl_TEST_FCHDIR])
if test $HAVE_FCHDIR = 0; then
- AC_LIBOBJ([fchdir])
- gl_PREREQ_FCHDIR
AC_DEFINE([REPLACE_FCHDIR], [1],
[Define to 1 if gnulib's fchdir() replacement is used.])
dnl We must also replace anything that can manipulate a directory fd,
configure.ac:
gl_FUNC_FCHDIR
+if test $HAVE_FCHDIR = 0; then
+ AC_LIBOBJ([fchdir])
+ gl_PREREQ_FCHDIR
+fi
gl_UNISTD_MODULE_INDICATOR([fchdir])
Makefile.am: