bug#7833: automake uses two different values for DejaGNU srcdir

2011-01-13 Thread Stefano Lattarini
On Thursday 13 January 2011, Ian Lance wrote: > Stefano Lattarini writes: > > > Relative (as I expected): > > > > $ cat dejagnu-srcdir-is-absolute.dir/site.exp > > ## these variables are automatically generated by make ## > > # Do not edit here. If you wish to override these values > >

bug#7833: automake uses two different values for DejaGNU srcdir

2011-01-13 Thread Ian Lance Taylor
Stefano Lattarini writes: > Relative (as I expected): > > $ cat dejagnu-srcdir-is-absolute.dir/site.exp > ## these variables are automatically generated by make ## > # Do not edit here. If you wish to override these values > # edit the last section > set srcdir . > set objdir /home/

bug#7833: automake uses two different values for DejaGNU srcdir

2011-01-13 Thread Ian Lance Taylor
Ralf Wildenhues writes: > Am I correct in assuming that it is hopeless to assume GCC will work > when either values are relative? Actually, as far as I know, GCC is likely to work with a relative srcdir. The problem arises with DejaGNU .exp files which themselves change directories. As far as

bug#7833: automake uses two different values for DejaGNU srcdir

2011-01-13 Thread Stefano Lattarini
Hello Ian. On Wednesday 12 January 2011, Ian Lance wrote: > When automake is configured to use DejaGNU, it uses two different values > for srcdir. There are two different cases in lib/am/dejagnu.am: > > The first is in check-DEJAGNU: > > check-DEJAGNU: site.exp > ## Life is easiest with an abso