|
|
e25038b |
diff -up sudo-1.6.9p4/acsite.m4.autotoolsRecursion sudo-1.6.9p4/acsite.m4
|
|
|
e25038b |
--- sudo-1.6.9p4/acsite.m4.autotoolsRecursion 2007-08-27 12:33:37.000000000 +0400
|
|
|
e25038b |
+++ sudo-1.6.9p4/acsite.m4 2007-08-27 12:33:52.000000000 +0400
|
|
|
e25038b |
@@ -6319,19 +6319,32 @@ m4_define([lt_join],
|
|
|
e25038b |
])
|
|
|
e25038b |
|
|
|
e25038b |
|
|
|
e25038b |
+# lt_car(LIST)
|
|
|
e25038b |
+# lt_cdr(LIST)
|
|
|
e25038b |
+# ------------
|
|
|
e25038b |
+# Manipulate m4 lists.
|
|
|
e25038b |
+# These macros are necessary as long as will still need to support
|
|
|
e25038b |
+# Autoconf-2.59 which quotes differently.
|
|
|
e25038b |
+m4_define([lt_car], [[$1]])
|
|
|
e25038b |
+m4_define([lt_cdr],
|
|
|
e25038b |
+[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
|
|
|
e25038b |
+ [$#], 1, [],
|
|
|
e25038b |
+ [m4_dquote(m4_shift($@))])])
|
|
|
e25038b |
+
|
|
|
e25038b |
+
|
|
|
e25038b |
# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
|
|
|
e25038b |
# ----------------------------------------------------------
|
|
|
e25038b |
# Produce a SEP delimited list of all paired combinations of elements of
|
|
|
e25038b |
# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
|
|
|
e25038b |
# has the form PREFIXmINFIXSUFFIXn.
|
|
|
e25038b |
m4_define([lt_combine],
|
|
|
e25038b |
-[m4_if([$2], [[]], [],
|
|
|
e25038b |
- [lt_join(m4_quote(m4_default([$1], [, ])),
|
|
|
e25038b |
- _$0([$1], m4_car($2)[$3], m4_shiftn(3, $@)),
|
|
|
e25038b |
- $0([$1], m4_cdr($2), m4_shiftn(2, $@)))])])
|
|
|
e25038b |
+[m4_if([$2], [], [],
|
|
|
e25038b |
+ [lt_join(m4_quote(m4_default([$1], [[, ]])),
|
|
|
e25038b |
+ _$0([$1], lt_car($2)[$3], m4_shiftn(3, $@)),
|
|
|
e25038b |
+ $0([$1], lt_cdr($2), m4_shiftn(2, $@)))])])
|
|
|
e25038b |
m4_define([_lt_combine],
|
|
|
e25038b |
[m4_if([$3], [], [],
|
|
|
e25038b |
- [lt_join(m4_quote(m4_default([$1], [, ])),
|
|
|
e25038b |
+ [lt_join(m4_quote(m4_default([$1], [[, ]])),
|
|
|
e25038b |
[$2$3],
|
|
|
e25038b |
$0([$1], [$2], m4_shiftn(3, $@)))])[]dnl
|
|
|
e25038b |
])
|