Set default optimization flags to -xO5 if using Sun Studio

This commit is contained in:
DRC
2010-02-16 22:35:25 +00:00
parent 9c5f5a5314
commit 00c5bcbd7b

View File

@@ -46,6 +46,16 @@ if test "x${GCC}" = "xyes"; then
fi
fi
AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
if test "x${SUNCC}" = "xyes"; then
if test "x${SAVED_CFLAGS}" = "x"; then
CFLAGS=-xO5
fi
if test "x${SAVED_CXXFLAGS}" = "x"; then
CXXFLAGS=-xO5
fi
fi
# Checks for libraries.
# Checks for header files.