libposix: Add _HEADERS primaries to posix modules.
[gnulib.git] / modules / getopt-posix
1 Description:
2 getopt() function: process command line arguments.
3
4 Files:
5 lib/getopt.in.h
6 lib/getopt.c
7 lib/getopt1.c
8 lib/getopt_int.h
9 m4/getopt.m4
10
11 Depends-on:
12 gettext-h
13 unistd
14 extensions
15 include_next
16 arg-nonnull
17
18 configure.ac:
19 gl_FUNC_GETOPT_POSIX
20
21 Makefile.am:
22 nodist_pkginclude_HEADERS += $(GETOPT_H)
23 EXTRA_HEADERS += getopt.h
24
25 BUILT_SOURCES += $(GETOPT_H)
26
27 # We need the following in order to create <getopt.h> when the system
28 # doesn't have one that works with the given compiler.
29 getopt.h: getopt.in.h $(ARG_NONNULL_H)
30         $(AM_V_GEN)rm -f $@-t $@ && \
31         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
32           sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
33               -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
34               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
35               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
36               -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
37               -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
38               < $(srcdir)/getopt.in.h; \
39         } > $@-t && \
40         mv -f $@-t $@
41 MOSTLYCLEANFILES += getopt.h getopt.h-t
42
43 Include:
44 <unistd.h>
45
46 License:
47 LGPLv2+
48
49 Maintainer:
50 all, glibc