Merge commit 'a39d4083cab589d7cd6a13e8a4b8db8875261d75'
[gnulib.git] / modules / fchdir
index 8d9fca8..39a62e5 100644 (file)
@@ -3,40 +3,40 @@ fchdir() function: change current directory, given an open file descriptor.
 
 Files:
 lib/fchdir.c
-lib/dirent_.h
 m4/fchdir.m4
 
 Depends-on:
-absolute-header
-fcntl
 unistd
-canonicalize-lgpl
-dirfd
-strdup
+chdir            [test $HAVE_FCHDIR = 0]
+close            [test $HAVE_FCHDIR = 0]
+dirent           [test $HAVE_FCHDIR = 0]
+dirfd            [test $HAVE_FCHDIR = 0]
+dosname          [test $HAVE_FCHDIR = 0]
+dup2             [test $HAVE_FCHDIR = 0]
+fcntl            [test $HAVE_FCHDIR = 0]
+fcntl-h          [test $HAVE_FCHDIR = 0]
+filenamecat-lgpl [test $HAVE_FCHDIR = 0]
+fstat            [test $HAVE_FCHDIR = 0]
+getcwd-lgpl      [test $HAVE_FCHDIR = 0]
+malloc-posix     [test $HAVE_FCHDIR = 0]
+open             [test $HAVE_FCHDIR = 0]
+realloc-posix    [test $HAVE_FCHDIR = 0]
+stat             [test $HAVE_FCHDIR = 0]
+stdbool          [test $HAVE_FCHDIR = 0]
+strdup-posix     [test $HAVE_FCHDIR = 0]
+sys_stat         [test $HAVE_FCHDIR = 0]
 
 configure.ac:
 gl_FUNC_FCHDIR
+gl_UNISTD_MODULE_INDICATOR([fchdir])
 
 Makefile.am:
-BUILT_SOURCES += $(DIRENT_H)
-
-# We need the following in order to create <dirent.h> when the system
-# doesn't have one that works with the given compiler.
-dirent.h: dirent_.h
-       rm -f $@-t $@
-       { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
-         sed -e 's|@''ABSOLUTE_DIRENT_H''@|$(ABSOLUTE_DIRENT_H)|g' \
-             < $(srcdir)/dirent_.h; \
-       } > $@-t
-       mv $@-t $@
-MOSTLYCLEANFILES += dirent.h dirent.h-t
 
 Include:
-#include <unistd.h>
+<unistd.h>
 
 License:
 LGPL
 
 Maintainer:
 Bruno Haible
-