Default to optimised builds when using a Sun Studio compiler.
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>
Mon, 31 Aug 2009 22:02:53 +0000 (23:02 +0100)
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>
Thu, 3 Sep 2009 19:51:22 +0000 (22:51 +0300)
commit61b616067c3e8b2ff84fbf57f479a90cc9fa5344
tree0a4f8eaf3c33200a82c180fea0d3ebb1e669dc35
parent20acda6fde8441e18aab33980a33b099a16063eb
Default to optimised builds when using a Sun Studio compiler.

Autoconf's AC_PROG_CC sets the default CFLAGS to -O2 -g for
gcc and -g for every other compiler.  This patch defaults
CFLAGS to the equivalent -O -g when we're using Sun Studio's cc
if the user or site admin hasn't already set CFLAGS.
configure.ac