wixed ndb-debug option for configure

parent ee3953c5
...@@ -1628,7 +1628,7 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [ ...@@ -1628,7 +1628,7 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [
[ [
--without-ndb-debug Disable special ndb debug features], --without-ndb-debug Disable special ndb debug features],
[ndb_debug="$withval"], [ndb_debug="$withval"],
[ndb_debug="no"]) [ndb_debug="default"])
AC_MSG_CHECKING([for NDB Cluster options]) AC_MSG_CHECKING([for NDB Cluster options])
AC_MSG_RESULT([]) AC_MSG_RESULT([])
...@@ -1671,18 +1671,18 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [ ...@@ -1671,18 +1671,18 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [
case "$ndb_debug" in case "$ndb_debug" in
yes ) yes )
AC_MSG_RESULT([-- including ndb extra debug options]) AC_MSG_RESULT([-- including ndb extra debug options])
with_ndb_debug="yes" have_ndb_debug="yes"
;; ;;
full ) full )
AC_MSG_RESULT([-- including ndb extra extra debug options]) AC_MSG_RESULT([-- including ndb extra extra debug options])
with_ndb_debug="full" have_ndb_debug="full"
;; ;;
no ) no )
AC_MSG_RESULT([-- not including ndb extra debug options]) AC_MSG_RESULT([-- not including ndb extra debug options])
with_ndb_debug="no" have_ndb_debug="no"
;; ;;
* ) * )
with_ndb_debug="default" have_ndb_debug="default"
;; ;;
esac esac
......
...@@ -3039,16 +3039,16 @@ then ...@@ -3039,16 +3039,16 @@ then
MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --with-ndbcluster" MAKE_BINARY_DISTRIBUTION_OPTIONS="$MAKE_BINARY_DISTRIBUTION_OPTIONS --with-ndbcluster"
CXXFLAGS="$CXXFLAGS \$(NDB_CXXFLAGS)" CXXFLAGS="$CXXFLAGS \$(NDB_CXXFLAGS)"
if test "$with_ndb_debug" = "default" if test "$have_ndb_debug" = "default"
then then
with_ndb_debug = $with_debug have_ndb_debug=$with_debug
fi fi
if test "$with_ndb_debug" = "yes" if test "$have_ndb_debug" = "yes"
then then
# Medium debug. # Medium debug.
NDB_DEFS="-DNDB_DEBUG -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD" NDB_DEFS="-DNDB_DEBUG -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD"
elif test "$with_ndb_debug" = "full" elif test "$have_ndb_debug" = "full"
then then
NDB_DEFS="-DNDB_DEBUG_FULL -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD" NDB_DEFS="-DNDB_DEBUG_FULL -DVM_TRACE -DERROR_INSERT -DARRAY_GUARD"
else else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment