X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fgetopt-posix;h=cbcf4a00279fc78cb4d2d85cab7acf067c812136;hb=0c37a90329c2c87423aff707d44c676d81a68f2f;hp=6b20f15462c5d4e9591b6a86e11560a7fb8e17ed;hpb=bd8cfad4eb68e459d9fd24144df7a106765f8c09;p=gnulib.git diff --git a/modules/getopt-posix b/modules/getopt-posix index 6b20f1546..cbcf4a002 100644 --- a/modules/getopt-posix +++ b/modules/getopt-posix @@ -12,6 +12,8 @@ Depends-on: gettext-h unistd extensions +include_next +arg-nonnull configure.ac: gl_FUNC_GETOPT_POSIX @@ -21,11 +23,16 @@ BUILT_SOURCES += $(GETOPT_H) # We need the following in order to create when the system # doesn't have one that works with the given compiler. -getopt.h: getopt.in.h - rm -f $@-t $@ +getopt.h: getopt.in.h $(ARG_NONNULL_H) + $(AM_V_GEN)rm -f $@-t $@ && \ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ - cat $(srcdir)/getopt.in.h; \ - } > $@-t + sed -e 's|@''HAVE_GETOPT_H''@|$(HAVE_GETOPT_H)|g' \ + -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \ + -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \ + -e 's|@''NEXT_GETOPT_H''@|$(NEXT_GETOPT_H)|g' \ + -e '/definition of _GL_ARG_NONNULL/r $(ARG_NONNULL_H)' \ + < $(srcdir)/getopt.in.h; \ + } > $@-t && \ mv -f $@-t $@ MOSTLYCLEANFILES += getopt.h getopt.h-t @@ -33,7 +40,7 @@ Include: License: -LGPL +LGPLv2+ Maintainer: all, glibc