From: Keith M. <kei...@to...> - 2005-03-18 18:09:44
|
> Keith MARSHALL wrote: >> Your idea of `RANLIB = @RANLIB_FOR_TARGET@' is on the right lines; >> you need to adapt the autoconf scripts to implement it, though -- you >> would likely need an `AC_PATH_TOOL(RANLIB_FOR_TARGET,ranlib)', or >> something similar, in configure.ac, followed by a regeneration of the >> configure script itself. > > I'm not very familiar with automake/autoconf stuff. After a configure I > grepped for "i586-mingw32msvc-ranlib" and found it inside a > config.status, but the variable was not just called RANLIB_FOR_TARGET > but had some prefix in lower case and starting with "ac_" (I think). > Does this mean, I can just use that variable? No. Variables named "ac_*" are autoconf internal variables, and will not be substituted into the output files -- `Makefile' in this case. Having "ac_*_RANLIB_FOR_TARGET" present suggests that the configure script has performed a check to find the appropriate `ranlib', but has neglected to invoke AC_SUBST(RANLIB_FOR_TARGET), which *will* enable the required substitution, when AC_OUTPUT is eventually invoked at the end of `configure'. This looks like a possible bug in the autoconf.ac, or aclocal.m4, spec used to generate your configure script. Best regards, Keith. |