Mercurial > hg > octave-lojdl > gnulib-hg
annotate modules/sys_file @ 12536:cd64e80f94e4
link-warning: always build headers with link warnings
Replacement headers must be built unconditionally if they use
GL_LINK_WARNING, if the warning is to ever trigger on a
glibc system during CFLAGS=-DGNULIB_POSIXCHECK.
* modules/arpa_inet (Makefile.am): Always build replacement
header.
* modules/ctype (Makefile.am): Likewise.
* modules/dirent (Makefile.am): Likewise.
* modules/inttypes (Makefile.am): Likewise.
* modules/langinfo (Makefile.am): Likewise.
* modules/locale (Makefile.am): Likewise.
* modules/spawn (Makefile.am): Likewise.
* modules/sys_file (Makefile.am): Likewise.
* modules/sys_ioctl (Makefile.am): Likewise.
* modules/sys_select (Makefile.am): Likewise.
* modules/sys_socket (Makefile.am): Likewise.
* modules/sys_times (Makefile.am): Likewise.
* modules/sys_utsname (Makefile.am): Likewise.
* modules/sys_wait (Makefile.am): Likewise.
* modules/wchar (Makefile.am): Likewise.
* m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
(gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
* m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
* m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
* m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
Likewise.
* m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
* m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
* m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
Likewise.
* m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
Likewise.
* m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
* m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
(gl_SYS_IOCTL_H_DEFAULTS): Likewise.
* m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
* m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
* m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
(gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
* m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
(gl_WCHAR_H_DEFAULTS): Likewise.
author | Eric Blake <ebb9@byu.net> |
---|---|
date | Thu, 24 Dec 2009 12:06:48 -0700 |
parents | 8db404cb2e51 |
children | 2c14f1e449e5 |
rev | line source |
---|---|
10598 | 1 Description: |
2 <sys/file.h> for systems with an incomplete header. | |
3 | |
4 Files: | |
5 lib/sys_file.in.h | |
6 m4/sys_file_h.m4 | |
7 | |
8 Depends-on: | |
9 include_next | |
10 link-warning | |
11 | |
12 configure.ac: | |
13 gl_HEADER_SYS_FILE_H | |
14 AC_PROG_MKDIR_P | |
15 | |
16 Makefile.am: | |
12536
cd64e80f94e4
link-warning: always build headers with link warnings
Eric Blake <ebb9@byu.net>
parents:
12524
diff
changeset
|
17 BUILT_SOURCES += sys/file.h |
10598 | 18 |
19 # We need the following in order to create <sys/file.h> when the system | |
20 # has one that is incomplete. | |
12524
8db404cb2e51
link-warning: make usage consistent
Eric Blake <ebb9@byu.net>
parents:
12008
diff
changeset
|
21 sys/file.h: sys_file.in.h $(LINK_WARNING_H) |
11926
79c91e5cce7a
Use $(MKDIR_P) instead of @MKDIR_P@.
Simon Josefsson <simon@josefsson.org>
parents:
11868
diff
changeset
|
22 $(AM_V_at)$(MKDIR_P) sys |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
10598
diff
changeset
|
23 $(AM_V_GEN)rm -f $@-t $@ && \ |
10598 | 24 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ |
25 sed -e 's/@''HAVE_SYS_FILE_H''@/$(HAVE_SYS_FILE_H)/g' \ | |
26 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ | |
27 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ | |
28 -e 's|@''NEXT_SYS_FILE_H''@|$(NEXT_SYS_FILE_H)|g' \ | |
29 -e 's/@''HAVE_FLOCK''@/$(HAVE_FLOCK)/g' \ | |
30 -e 's/@''GNULIB_FLOCK''@/$(GNULIB_FLOCK)/g' \ | |
12524
8db404cb2e51
link-warning: make usage consistent
Eric Blake <ebb9@byu.net>
parents:
12008
diff
changeset
|
31 -e '/definition of GL_LINK_WARNING/r $(LINK_WARNING_H)' \ |
10598 | 32 < $(srcdir)/sys_file.in.h; \ |
11868
67c2b22aff08
annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
Jim Meyering <meyering@redhat.com>
parents:
10598
diff
changeset
|
33 } > $@-t && \ |
10598 | 34 mv $@-t $@ |
35 MOSTLYCLEANFILES += sys/file.h sys/file.h-t | |
36 MOSTLYCLEANDIRS += sys | |
37 | |
38 Include: | |
12008
18ea6ab4e81d
maint: make Include sections of modules consistent
Eric Blake <ebb9@byu.net>
parents:
11926
diff
changeset
|
39 <sys/file.h> |
10598 | 40 |
41 License: | |
42 LGPLv2+ | |
43 | |
44 Maintainer: | |
45 all |