>>>>> "Akim" == Akim Demaille <[EMAIL PROTECTED]> writes:
Akim> First I want to write/enhance a test that fails on this.
Sorry for being that dumb. I finally understood the problem. Here is
what I'm applying:
Index: ChangeLog
from Akim Demaille <[EMAIL PROTECTED]>
* automake.in (add_depend2): Quote properly $obj and $source.
Index: automake.in
===================================================================
RCS file: /cvs/automake/automake/automake.in,v
retrieving revision 1.844
diff -u -u -r1.844 automake.in
--- automake.in 2001/01/31 16:50:01 1.844
+++ automake.in 2001/01/31 17:31:52
@@ -3035,13 +3035,13 @@
'BASE' => $obj,
'SOURCE' => $source)
# Generate rule for `.o'.
- . 's/^\@EXT\@\.o:/' . $obj . '.o: ' . $source . '/g;'
+ . 's/^\@EXT\@\.o:/' . "\Q$obj.o: $source\E" . '/g;'
# Maybe generate rule for `.lo'. Might be eliminated
# by $XFORM.
- . 's/^\@EXT\@\.lo:/' . $obj . '.lo: ' . $source . '/g;'
+ . 's/^\@EXT\@\.lo:/' . "\Q$obj.lo: $source\E" . '/g;'
# Maybe generate rule for `.obj'. Might be
# eliminated by $XFORM.
- . 's/^\@EXT\@\.obj:/' . $obj . '.obj: ' . $source . '/g;');
+ . 's/^\@EXT\@\.obj:/' . "\Q$obj.obj: $source\E" . '/g;');
}
}
Alternatively we could use a better scheme in depend2.am (to tell the
truth, I'd like to have *only* @FOO@ substitutions).