aboutsummaryrefslogtreecommitdiff
path: root/build-aux/getopt.m4
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-07 01:57:27 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-07 01:57:27 +0300
commit366e821d28a007a0ca49b9deb97c6c9cea97f2b9 (patch)
treef6fe2cbb59982a952a9383e8361e4cbe9922aa65 /build-aux/getopt.m4
parent72b77743f20f909e83eacca3b47558d943ac2fcb (diff)
downloadgrecs-366e821d28a007a0ca49b9deb97c6c9cea97f2b9.tar.gz
grecs-366e821d28a007a0ca49b9deb97c6c9cea97f2b9.tar.bz2
Minor fix.
* build-aux/getopt.m4: Fixup cmdline_tree, if needed.
Diffstat (limited to 'build-aux/getopt.m4')
-rw-r--r--build-aux/getopt.m46
1 files changed, 6 insertions, 0 deletions
diff --git a/build-aux/getopt.m4 b/build-aux/getopt.m4
index e38cfe9..b63baaf 100644
--- a/build-aux/getopt.m4
+++ b/build-aux/getopt.m4
@@ -284,6 +284,12 @@ define([<GETOPT>],[<
exit(EX_USAGE);
}
>],[<$3 = optind;>])
+ if (cmdline_tree)
+ {
+ struct grecs_node *rn = grecs_node_create(grecs_node_root, NULL);
+ rn->down = cmdline_tree;
+ cmdline_tree = rn;
+ }
}
>])

Return to:

Send suggestions and report system problems to the System administrator.