aboutsummaryrefslogtreecommitdiff
path: root/build-aux/getopt.m4
diff options
context:
space:
mode:
Diffstat (limited to 'build-aux/getopt.m4')
-rw-r--r--build-aux/getopt.m47
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
265dnl LASTOPT() 265dnl LASTOPT()
266dnl Stop option processing (as if "--" has been encountered 266dnl Stop option processing (as if "--" has been encountered
267define([<LASTOPT>],[<goto lastoptlab>]) 267define([<LASTOPT>],[<dnl
268define([<__GETOPT_LASTOPT>],[<lastoptlab:>])dnl
269goto lastoptlab>])
268 270
269dnl GETOPT(argc, argv, [long_index], [onerr]) 271dnl GETOPT(argc, argv, [long_index], [onerr])
270dnl Emit option parsing code. Arguments: 272dnl Emit option parsing code. Arguments:
@@ -295,7 +297,7 @@ define([<GETOPT>],[<
295 undivert(4) 297 undivert(4)
296 } 298 }
297 } 299 }
298lastoptlab: 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
353define([<OPTIONS_BEGIN>], 355define([<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>],

Return to:

Send suggestions and report system problems to the System administrator.