Only force a specific compiler where necessary
authorRuss Allbery <rra@stanford.edu>
Sat, 22 Aug 2009 07:31:22 +0000 (00:31 -0700)
committerDerrick Brashear <shadow|account-1000005@unknown>
Tue, 8 Sep 2009 17:54:07 +0000 (10:54 -0700)
commit1992b702f64f561c75cc74d4645bb0e1afeec6bd
tree617d7d846c901cdfc785144ae5b683ea282c3a32
parent950b96f290d0874e5a8e6d8bc693d4d03a3e88f2
Only force a specific compiler where necessary

Rather than setting the compiler to cc on all platforms by default,
use the Autoconf default unless the specific compiler might matter.
Conservatively set the compiler to cc for all non-Linux, non-BSD
operating systems that previously didn't explicitly set it.  Fix a
few places on Linux where the compiler was set to gcc explicitly
rather than using the Autoconf result.

Don't bother setting the Linux i386 compiler to gcc -pipe.  The compile
performance difference isn't enough to bother with the special
exception, and we don't do this for other Linux systems.

With this change, setting CC at Autoconf time will correctly set the
compiler per the user's preferences unless they're on an operating
system where we care about having a particular compiler for kernel
purposes.  This can be relaxed further in the future, particularly if
the kernel compiler is broken out to a separate setting.

Reviewed-on: http://gerrit.openafs.org/337
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/cf/osconf.m4