Hello,
On Mon, May 09, 2005 at 06:02:24PM +0200, Harald Dunkel wrote:
> I tried to replace $(top_builddir)
> in a Makefile.am by $(abs_top_builddir), but the new
> Makefile did not define this macro.
Actually, this is a bug/feature of Automake, that these variables
are not propagated by default.
A possible workaround is to place
AC_SUBST([abs_top_builddir])
to your configure.ac.
I suggest that Automake automatically sets these make variables:
abs_srcdir
abs_builddir
abs_top_srcdir
abs_top_builddir
(Another variable, which is documented in the Autoconf manual but not
propagated to Automake-generated makefiles, is ``builddir'', which
is always set to ``.''--but that was already discussed here.)
Have a nice day,
Stepan