summaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authormikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se <>2006-04-19 12:05:44 -0400
committermikael@c-870ae253.1238-1-64736c10.cust.bredbandsbolaget.se <>2006-04-19 12:05:44 -0400
commit22ed19e43434f8d9aaf9e76095f39d370d53be97 (patch)
treec62f968e9e061d213ede8ca40de2193cae721dd3 /configure.in
parent8ae26a2868cd5dce266251c557cc5b71a4b8a3d9 (diff)
downloadmariadb-git-22ed19e43434f8d9aaf9e76095f39d370d53be97.tar.gz
WL 2826: Error handling of ALTER TABLE for partitioning
Moved error inject from being flags to compiler to being part of config.h Also error inject only defined if debug is also defined +Small fixes
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in27
1 files changed, 15 insertions, 12 deletions
diff --git a/configure.in b/configure.in
index bfd2ec21869..157d2549d62 100644
--- a/configure.in
+++ b/configure.in
@@ -1588,18 +1588,6 @@ then
DEBUG_OPTIMIZE_CXX=""
fi
-# If we should allow error injection tests
-AC_ARG_WITH(error-inject,
- [ --with-error-inject Enable error injection in MySQL Server],
- [ with_error_inject=$withval ],
- [ with_error_inject=no ])
-
-if test "$with_error_inject" = "yes"
-then
- CFLAGS="-DERROR_INJECT_SUPPORT $CFLAGS"
- CXXFLAGS="-DERROR_INJECT_SUPPORT $CXXFLAGS"
-fi
-
AC_ARG_WITH(debug,
[ --with-debug Add debug code
--with-debug=full Add debug code (adds memory checker, very slow)],
@@ -1621,6 +1609,21 @@ else
CXXFLAGS="$OPTIMIZE_CXXFLAGS -DDBUG_OFF $CXXFLAGS"
fi
+# If we should allow error injection tests
+AC_ARG_WITH(error-inject,
+ [ --with-error-inject Enable error injection in MySQL Server],
+ [ with_error_inject=$withval ],
+ [ with_error_inject=no ])
+
+if test $with_debug != "no"
+then
+ if test "$with_error_inject" = "yes"
+ then
+ AC_DEFINE([ERROR_INJECT_SUPPORT], [1],
+ [Enable error injection in MySQL Server])
+ fi
+fi
+
AC_ARG_WITH([fast-mutexes],
AC_HELP_STRING([--with-fast-mutexes],
[Compile with fast mutexes (default is disabled)]),