2 getopt() function: process command line arguments.
16 gettext-h [test $REPLACE_GETOPT = 1]
20 if test $REPLACE_GETOPT = 1; then
24 dnl Arrange for unistd.h to include getopt.h.
25 GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT=1
27 AC_SUBST([GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT])
30 BUILT_SOURCES += $(GETOPT_H)
32 # We need the following in order to create <getopt.h> when the system
33 # doesn't have one that works with the given compiler.
34 getopt.h: getopt.in.h $(top_builddir)/config.status $(ARG_NONNULL_H)
35 $(AM_V_GEN)rm -f $@-t $@ && \
36 { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
37 sed -e 's|@''GUARD_PREFIX''@|${gl_include_guard_prefix}|g' \
38 -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \
39 -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
40 -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
41 -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
42 -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \
43 -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \
44 < $(srcdir)/getopt.in.h; \
47 MOSTLYCLEANFILES += getopt.h getopt.h-t