2 getopt() function: process command line arguments.
22 BUILT_SOURCES += $(GETOPT_H)
24 # We need the following in order to create <getopt.h> when the system
25 # doesn't have one that works with the given compiler.
26 getopt.h: getopt.in.h $(ARG_NONNULL_H)
27 $(AM_V_GEN)rm -f $@-t $@ && \
28 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
29 sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
30 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
31 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
32 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
33 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
34 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
35 < $(srcdir)/getopt.in.h; \
38 MOSTLYCLEANFILES += getopt.h getopt.h-t