[OpenAFS-devel] configure not honoring 'CC' environment variable

Harald Barth haba@pdc.kth.se
Thu, 17 Mar 2005 22:47:49 +0100 (MET)


> - It is impossible for the Makefiles, or even most of the configure tests,
>   to tell the difference between a value of CC that was set on the command
>   line and one that was set by AC_PROG_CC

I thought that my solaris-cc.m4 actually checked if the CC did things
"right" and if not it let the user override it anyway. Thus the
save_CC in the beginnig and the CC=$save_CC at the end.

> - It is a bad idea to assume that a user who sets CC on the command line
>   "knows what they are doing" and expects to use that compiler to build
>   the kernel module, because they probably don't know what they're doing
>   wrt the kernel compiler issue, and if they do, they probably don't want
>   to use that compiler for the kernel module.

But to assume that /opt/SUNWspro/bin/cc is _the_ solution is not better.
I vote for the user ;-)

Harald.