Hello all, thanks much for all the answers! To summarize: configure does check for nm ("checking for BSD-compatible nm... /usr/bin/arm-linux-nm -B"), but doesn't set it in Makefile.in (I did regenerate all files). I can live with AC_SUBST. Regarding BUILD_CC, I guess I'll have to hack AC_PROG_CC. With kind regards, Baurzhan. On Tue, Apr 18, 2006 at 11:27:26AM -0700, Noah Misch wrote: > On Tue, Apr 18, 2006 at 07:53:13PM +0200, Baurzhan Ismagulov wrote: > > AC_SUBST(NM, "$NM") > > > > Questions: > > > > 1. Why isn't it available to make by default, like $(CC)? > > It should be. Automake needs to regenerate `Makefile.in' to add the `NM = @NM@' > line, but this should happen automatically when you edit `configure.ac' and then > run `make'. > > Try regenerating everything. Does `Makefile.in' then contain `NM = @NM@'? If > yes, and it still does not work, perhaps that nothing in `configure' sets $NM. > In that case, you will need to decide how to identify a proper value for $NM and > then set it accordingly. > > > 2. $(CC) is the compiler generating code for the host system. What is > > the var containing the name of the compiler generating code for the > > build system? > > None of Autoconf, Automake, or Libtool detect such a compiler, so they do not > provide the name of one in any variable. You will need to detect such a > compiler in `configure' and then substitute it in a variable of your choice. _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf