configure.ac: Don't use -O3 if debug is enabled.

This commit is contained in:
Pierre d'Herbemont 2007-08-28 03:30:28 +00:00
parent f2db40e401
commit 632de9e45d
1 changed files with 1 additions and 1 deletions

View File

@ -988,7 +988,7 @@ AC_CACHE_CHECK([if \$CC accepts -O3],
[ac_cv_c_o3],
[CFLAGS="${CFLAGS_save} -O3"
AC_TRY_COMPILE([],,ac_cv_c_o3=yes, ac_cv_c_o3=no)])
if test "${ac_cv_c_o3}" != "no"; then
if test "${ac_cv_c_o3}" != "no" -a "x${enable_debug}" = "xno"; then
CFLAGS_OPTIM_SPEED="${CFLAGS_OPTIM_SPEED} -O3"
else
AC_CACHE_CHECK([if \$CC accepts -O2],