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.m45
1 files changed, 5 insertions, 0 deletions
diff --git a/build-aux/getopt.m4 b/build-aux/getopt.m4
index cf375ca..d424088 100644
--- a/build-aux/getopt.m4
+++ b/build-aux/getopt.m4
@@ -262,6 +262,10 @@ define([<OPTNODE>],[<do {
} while(0)
>])
+dnl LASTOPT()
+dnl Stop option processing (as if "--" has been encountered
+define([<LASTOPT>],[<goto lastoptlab>])
+
dnl GETOPT(argc, argv, [long_index], [onerr])
dnl Emit option parsing code. Arguments:
dnl
@@ -291,6 +295,7 @@ define([<GETOPT>],[<
undivert(4)
}
}
+lastoptlab:
ifelse([<$3>],,[<
if (optind < argc) {
fprintf(stderr, "%s: unexpected arguments\n", $2[0]);

Return to:

Send suggestions and report system problems to the System administrator.