diff options
author | Bruno Haible <bruno@clisp.org> | 2023-04-14 12:48:46 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2023-04-14 12:48:46 +0200 |
commit | 09596027f260ff0de0e9932b88b90e0d06c71b6f (patch) | |
tree | afbbfabaea64581bb316a9987555c27d04bcb37f /modules | |
parent | e8bbebe5b5cc672aa28e5b4fb91e3624415d0e00 (diff) | |
download | gnulib-09596027f260ff0de0e9932b88b90e0d06c71b6f.tar.gz |
sys_shm: New module.
* lib/sys_shm.in.h: New file.
* m4/sys_shm_h.m4: New file.
* modules/sys_shm: New file.
* doc/posix-headers/sys_shm.texi: Mention the new module.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/sys_shm | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/modules/sys_shm b/modules/sys_shm new file mode 100644 index 0000000000..fd2a5fb196 --- /dev/null +++ b/modules/sys_shm @@ -0,0 +1,48 @@ +Description: +<sys/shm.h> with extra checks. + +Files: +lib/sys_shm.in.h +m4/sys_shm_h.m4 + +Depends-on: +gen-header +include_next + +configure.ac: +gl_SYS_SHM_H +gl_CONDITIONAL_HEADER([sys/shm.h]) +AC_PROG_MKDIR_P + +Makefile.am: +BUILT_SOURCES += $(SYS_SHM_H) + +# We need the following in order to create <sys/shm.h> when desired. +if GL_GENERATE_SYS_SHM_H +sys/shm.h: sys_shm.in.h $(top_builddir)/config.status + $(AM_V_GEN)$(MKDIR_P) '%reldir%/sys' + $(AM_V_at)$(SED_HEADER_STDOUT) \ + -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \ + -e 's|@''NEXT_SYS_SHM_H''@|$(NEXT_SYS_SHM_H)|g' \ + $(srcdir)/sys_shm.in.h > $@-t + $(AM_V_at)mv $@-t $@ +else +sys/shm.h: $(top_builddir)/config.status + rm -f $@ +endif +MOSTLYCLEANFILES += sys/shm.h sys/shm.h-t +MOSTLYCLEANDIRS += sys + +Include: +#if HAVE_SYS_SHM_H +<sys/shm.h> +#endif + +License: +LGPLv2+ + +Maintainer: +all |