aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a6adfc26a..680414595 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1264,6 +1264,15 @@ if test "$GCC" = yes; then
CFLAGS="$CFLAGS -Wall"
fi
+ # This is handy for debugging so the compiler doesn't rearrange
+ # things and eliminate variables.
+ AC_ARG_ENABLE(optimization,
+ AC_HELP_STRING([--disable-optimization],
+ [disable compiler optimization]),
+ [if test $enableval = no ; then
+ CFLAGS=`echo $CFLAGS | sed 's/-O[[0-9]]//'`
+ fi])
+
AC_MSG_CHECKING([if gcc supports -Wno-pointer-sign])
_gcc_cflags_save=$CFLAGS