Hallo Antonio, * barbalace@xxxxxxxxxx wrote on Mon, Mar 10, 2008 at 06:41:43PM CET: > > I have a program that when cross compiled need a program that must be built on > the build platform (assuming cross compiling when build != host and host == > target). > Like I've read on the autotool book, on the autoconf manual and on the autoconf > forum I've tried to use the CC_FOR_BUILD substituition variable and the > config.guess and config.sub invoking > AC_CANONICAL_BUILD/AC_CANONICAL_HOST/AC_CANONICAL_TARGET. After this macros, > running ./configure using --build=i686-pc-linux-gnu > --host=powerpc-7450-linux-gnu, CC_FOR_BUILD is empty. But this is not my only > problem because I need to use AR, RANLIB and LD from the Makefiles and I can't > find AR_FOR_BUILD and co. Yep. There is no code in Autoconf that sets these *_FOR_BUILD variables. If you like you can go look how GCC does it, and copy that. If somebody implements something general along these lines that is useful for several packages, it would be nice to have in Autoconf! Cheers, Ralf _______________________________________________ Autoconf mailing list Autoconf@xxxxxxx http://lists.gnu.org/mailman/listinfo/autoconf