On Wed, 2006-04-19 at 14:17 +0200, Baurzhan Ismagulov wrote:
> 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).
Pardon, there seems to be some miscommunication.
Nothing in autoconf nor automake's macros checks nor uses "nm".
If a Makefile wants to use NM it must check for it by itself.
Normally, the corresponding configure.ac will want to use some
auto*magic around AC_CHECK_TOOL.
> Regarding BUILD_CC,
> I guess I'll have to hack AC_PROG_CC.
Well, there are much better approaches. If you want to avoid hacking
autoconf macros, you're better off splitting the source tree into 2
parts, a $host and a $build compiled subtree and implement a separate
toplevel configure script, calling these subtree's configure scripts
with appropriate --host/--build pairs. Unfortunately autoconf doesn't
provide any support for this.
Ralf
_______________________________________________
Autoconf mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/autoconf