diff options
Diffstat (limited to 'build-aux/getopt.m4')
-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 { | |||
264 | 264 | ||
265 | dnl LASTOPT() | 265 | dnl LASTOPT() |
266 | dnl Stop option processing (as if "--" has been encountered | 266 | dnl Stop option processing (as if "--" has been encountered |
267 | define([<LASTOPT>],[<goto lastoptlab>]) | 267 | define([<LASTOPT>],[<dnl |
268 | define([<__GETOPT_LASTOPT>],[<lastoptlab:>])dnl | ||
269 | goto lastoptlab>]) | ||
268 | 270 | ||
269 | dnl GETOPT(argc, argv, [long_index], [onerr]) | 271 | dnl GETOPT(argc, argv, [long_index], [onerr]) |
270 | dnl Emit option parsing code. Arguments: | 272 | dnl Emit option parsing code. Arguments: |
@@ -295,7 +297,7 @@ define([<GETOPT>],[< | |||
295 | undivert(4) | 297 | undivert(4) |
296 | } | 298 | } |
297 | } | 299 | } |
298 | lastoptlab: | 300 | __GETOPT_LASTOPT |
299 | ifelse([<$3>],,[< | 301 | ifelse([<$3>],,[< |
300 | if (optind < argc) { | 302 | if (optind < argc) { |
301 | fprintf(stderr, "%s: unexpected arguments\n", $2[0]); | 303 | fprintf(stderr, "%s: unexpected arguments\n", $2[0]); |
@@ -352,6 +354,7 @@ divert(-1) | |||
352 | 354 | ||
353 | define([<OPTIONS_BEGIN>], | 355 | define([<OPTIONS_BEGIN>], |
354 | [<divert(-1) | 356 | [<divert(-1) |
357 | define([<__GETOPT_LASTOPT>]) | ||
355 | _getopt_set_options(shift(shift(shift($@)))) | 358 | _getopt_set_options(shift(shift(shift($@)))) |
356 | _getopt_if_option_set([<gnu>], | 359 | _getopt_if_option_set([<gnu>], |
357 | [<STDFUNC([<$1 " (" PACKAGE_NAME ") " PACKAGE_VERSION>], | 360 | [<STDFUNC([<$1 " (" PACKAGE_NAME ") " PACKAGE_VERSION>], |