+2000-09-20 Pavel Roskin <proski@gnu.org>
+
+ * libm4.m4 (m4_ifvanl): Don't output a newline for empty
+ arguments
+
2000-09-19 Akim Demaille <akim@epita.fr>
* tests/atspecific.m4 (AT_TEST_MACRO): Rename as...
# m4_ifvanl(COND, [IF-TRUE], [IF-FALSE])
# --------------------------------------
-# Same as `ifval', but add an extra newline to IF-TRUE or IF-FALSE.
+# Same as `ifval', but add an extra newline to IF-TRUE or IF-FALSE
+# unless that argument is empty.
define([m4_ifvanl], [ifelse([$1], [],
-[$3
-],
-[$2
-])])
+[ifelse([$3], [], [], [$3
+])],
+[ifelse([$2], [], [], [$2
+])])])
# ifset(MACRO, [IF-TRUE], [IF-FALSE])