Commit 02a47843 authored by unknown's avatar unknown

BUG#11538 mysql compile fails with certain ndb options

--with-ndb-ccflags would include "yes" as a CFLAG and pass it to GCC (who didn't agree).


acinclude.m4:
  Test value of --with-ndb-ccflags and don't do anything (fail with error to config.log)
  unless there is a sensible value (i.e. not "yes")
parent bcaff837
...@@ -1723,10 +1723,19 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [ ...@@ -1723,10 +1723,19 @@ AC_DEFUN([MYSQL_CHECK_NDB_OPTIONS], [
[ndb_debug="$withval"], [ndb_debug="$withval"],
[ndb_debug="default"]) [ndb_debug="default"])
AC_ARG_WITH([ndb-ccflags], AC_ARG_WITH([ndb-ccflags],
[ AC_HELP_STRING([--with-ndb-ccflags=CFLAGS],
--with-ndb-ccflags Extra CC options for ndb compile], [Extra CFLAGS for ndb compile]),
[ndb_cxxflags_fix="$ndb_cxxflags_fix $withval"], [ndb_ccflags=${withval}],
[ndb_cxxflags_fix=$ndb_cxxflags_fix]) [ndb_ccflags=""])
case "$ndb_ccflags" in
"yes")
AC_MSG_RESULT([The --ndb-ccflags option requires a parameter (passed to CC for ndb compilation)])
;;
*)
ndb_cxxflags_fix="$ndb_cxxflags_fix $ndb_ccflags"
;;
esac
AC_MSG_CHECKING([for NDB Cluster options]) AC_MSG_CHECKING([for NDB Cluster options])
AC_MSG_RESULT([]) AC_MSG_RESULT([])
......
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