Reduce the number of AC_LIBOBJ invocations by 1.
[gnulib.git] / modules / fchdir
1 Description:
2 fchdir() function: change current directory, given an open file descriptor.
3
4 Files:
5 lib/fchdir.c
6 lib/dirent_.h
7 m4/fchdir.m4
8
9 Depends-on:
10 absolute-header
11 fcntl
12 unistd
13 canonicalize-lgpl
14 dirfd
15 strdup
16
17 configure.ac:
18 gl_FUNC_FCHDIR
19
20 Makefile.am:
21 BUILT_SOURCES += $(DIRENT_H) $(UNISTD_H2)
22
23 # We need the following in order to create <dirent.h> when the system
24 # doesn't have one that works with the given compiler.
25 dirent.h: dirent_.h
26         rm -f $@-t $@
27         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
28           sed -e 's|@''ABSOLUTE_DIRENT_H''@|$(ABSOLUTE_DIRENT_H)|g' \
29               < $(srcdir)/dirent_.h; \
30         } > $@-t
31         mv $@-t $@
32 MOSTLYCLEANFILES += dirent.h dirent.h-t
33
34 Include:
35 #include <unistd.h>
36
37 License:
38 LGPL
39
40 Maintainer:
41 Bruno Haible
42