futimens: fix configure check
[gnulib.git] / modules / sys_ioctl
1 Description:
2 A <sys/ioctl.h> for systems with missing declarations.
3
4 Files:
5 lib/sys_ioctl.in.h
6 m4/sys_ioctl_h.m4
7
8 Depends-on:
9 include_next
10 c++defs
11 unistd
12 warn-on-use
13
14 configure.ac:
15 gl_SYS_IOCTL_H
16 AC_PROG_MKDIR_P
17
18 Makefile.am:
19 BUILT_SOURCES += sys/ioctl.h
20
21 # We need the following in order to create <sys/ioctl.h> when the system
22 # does not have a complete one.
23 sys/ioctl.h: sys_ioctl.in.h $(CXXDEFS_H) $(WARN_ON_USE_H)
24         $(AM_V_at)$(MKDIR_P) sys
25         $(AM_V_GEN)rm -f $@-t $@ && \
26         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
27           sed -e 's|@''HAVE_SYS_IOCTL_H''@|$(HAVE_SYS_IOCTL_H)|g' \
28               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
29               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
30               -e 's|@''NEXT_SYS_IOCTL_H''@|$(NEXT_SYS_IOCTL_H)|g' \
31               -e 's|@''GNULIB_IOCTL''@|$(GNULIB_IOCTL)|g' \
32               -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H)|g' \
33               -e 's|@''SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS''@|$(SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS)|g' \
34               -e 's|@''REPLACE_IOCTL''@|$(REPLACE_IOCTL)|g' \
35               -e '/definitions of _GL_FUNCDECL_RPL/r $(CXXDEFS_H)' \
36               -e '/definition of _GL_WARN_ON_USE/r $(WARN_ON_USE_H)' \
37               < $(srcdir)/sys_ioctl.in.h; \
38         } > $@-t && \
39         mv $@-t $@
40 MOSTLYCLEANFILES += sys/ioctl.h sys/ioctl.h-t
41 MOSTLYCLEANDIRS += sys
42
43 Include:
44 <sys/ioctl.h>
45
46 License:
47 LGPLv2+
48
49 Maintainer:
50 all