Hello, * Eric Blake wrote on Wed, Sep 15, 2010 at 04:15:13PM CEST: > On 09/15/2010 04:37 AM, langdead wrote: > >Whether does "ACLOCAL_AMFLAGS= -I @path" only work for "Makefile.am"? > > In the context of autoreconf (the only part of the equation > belonging to autoconf), we merely call aclocal without grepping for > ACLOCAL_AMFLAGS,
That's not true. autoreconf.in:autoreconf_current_directory greps for /^ACLOCAL_[A-Z_]*FLAGS\s*=\s*(.*)/ so it really only works with autoreconf to put literal stuff in that line. When aclocal is run from make, as triggered by the automake-generated rule, $(ACLOCAL_AMFLAGS) undergoes usual make expansion of course. Cheers, Ralf