[cairo] [PATCH] pixman: add --disable-optimize option
Jeff Muizelaar
jeff at infidigm.net
Wed Aug 6 10:37:12 PDT 2008
See attached.
-Jeff
-------------- next part --------------
Add option to disable optimization.
From: Jeff Muizelaar <jmuizelaar at mozilla.com>
---
configure.ac | 20 ++++++++++++++++++++
1 files changed, 20 insertions(+), 0 deletions(-)
diff --git a/configure.ac b/configure.ac
index 05e66ae..bab5cc1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -169,6 +169,26 @@ fi
AM_CONDITIONAL(USE_MMX, test $have_mmx_intrinsics = yes)
+dnl ===========================================================================
+AC_ARG_ENABLE(optimize,
+ AS_HELP_STRING([--disable-optimize],
+ [Disable optimization]), [
+if test "x$enableval" = "xno"; then
+ # A value of 'no' for $enableval means that they want to disable, which
+ # means 'yes' for $disable_optimize.
+ disable_optimize=yes
+fi
+], [disable_optimize=no])
+
+AM_CONDITIONAL(DISABLE_OPTIMIZE,
+ test "x$disable_optimize" = "xyes")
+if test "x$disable_optimize" = "xyes"; then
+ dnl Remove all optimization flags from CFLAGS
+ changequote({,})
+ CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
+ changequote([,])
+fi
+
dnl =======================================================
dnl GCC 4.2 when compiling with -msse will generate SSE instructions
More information about the cairo
mailing list