summaryrefslogtreecommitdiff
path: root/m4/include-exclude-prog.m4
diff options
context:
space:
mode:
Diffstat (limited to 'm4/include-exclude-prog.m4')
-rw-r--r--m4/include-exclude-prog.m43
1 files changed, 2 insertions, 1 deletions
diff --git a/m4/include-exclude-prog.m4 b/m4/include-exclude-prog.m4
index d0addc776..c5e31d9a1 100644
--- a/m4/include-exclude-prog.m4
+++ b/m4/include-exclude-prog.m4
@@ -20,7 +20,8 @@ AC_DEFUN([gl_ADD_PROG],
AC_DEFUN([gl_REMOVE_PROG],
[{
$1=`for gl_rem_i in $$1; do
- test "$gl_rem_i" = "$2" || echo "$gl_rem_i" done | tr '\012' ' '; echo`
+ test "$gl_rem_i" = "$2" || echo "$gl_rem_i"
+ done | tr '\012' ' ' | sed 's/ $//'; echo`
}])
# Given the name of a variable containing a space-separated list of