diff options
-rw-r--r-- | build-aux/getopt.m4 | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/build-aux/getopt.m4 b/build-aux/getopt.m4 index d424088..86bac99 100644 --- a/build-aux/getopt.m4 +++ b/build-aux/getopt.m4 @@ -264,7 +264,9 @@ define([<OPTNODE>],[<do { dnl LASTOPT() dnl Stop option processing (as if "--" has been encountered -define([<LASTOPT>],[<goto lastoptlab>]) +define([<LASTOPT>],[<dnl +define([<__GETOPT_LASTOPT>],[<lastoptlab:>])dnl +goto lastoptlab>]) dnl GETOPT(argc, argv, [long_index], [onerr]) dnl Emit option parsing code. Arguments: @@ -295,7 +297,7 @@ define([<GETOPT>],[< undivert(4) } } -lastoptlab: +__GETOPT_LASTOPT ifelse([<$3>],,[< if (optind < argc) { fprintf(stderr, "%s: unexpected arguments\n", $2[0]); @@ -352,6 +354,7 @@ divert(-1) define([<OPTIONS_BEGIN>], [<divert(-1) + define([<__GETOPT_LASTOPT>]) _getopt_set_options(shift(shift(shift($@)))) _getopt_if_option_set([<gnu>], [<STDFUNC([<$1 " (" PACKAGE_NAME ") " PACKAGE_VERSION>], |