diff options
Diffstat (limited to 'config/ac-macros')
-rw-r--r-- | config/ac-macros/ha_ndbcluster.m4 | 3 | ||||
-rw-r--r-- | config/ac-macros/ha_partition.m4 | 30 |
2 files changed, 32 insertions, 1 deletions
diff --git a/config/ac-macros/ha_ndbcluster.m4 b/config/ac-macros/ha_ndbcluster.m4 index f26c62ee214..28b41b522fc 100644 --- a/config/ac-macros/ha_ndbcluster.m4 +++ b/config/ac-macros/ha_ndbcluster.m4 @@ -128,8 +128,9 @@ AC_DEFUN([MYSQL_CHECK_NDBCLUSTER], [ ndb_mgmclient_libs= case "$ndbcluster" in yes ) - AC_MSG_RESULT([Using NDB Cluster]) + AC_MSG_RESULT([Using NDB Cluster and Partitioning]) AC_DEFINE([HAVE_NDBCLUSTER_DB], [1], [Using Ndb Cluster DB]) + AC_DEFINE([HAVE_PARTITION_DB], [1], [Builds Partition DB]) have_ndbcluster="yes" ndbcluster_includes="-I\$(top_builddir)/storage/ndb/include -I\$(top_builddir)/storage/ndb/include/ndbapi" ndbcluster_libs="\$(top_builddir)/storage/ndb/src/.libs/libndbclient.a" diff --git a/config/ac-macros/ha_partition.m4 b/config/ac-macros/ha_partition.m4 new file mode 100644 index 00000000000..1cfb5135771 --- /dev/null +++ b/config/ac-macros/ha_partition.m4 @@ -0,0 +1,30 @@ +dnl --------------------------------------------------------------------------- +dnl Macro: MYSQL_CHECK_PARTITIONDB +dnl Sets HAVE_PARTITION_DB if --with-partition is used +dnl --------------------------------------------------------------------------- +AC_DEFUN([MYSQL_CHECK_PARTITIONDB], [ + AC_ARG_WITH([partition], + [ + --with-partition + Enable the Partition Storage Engine], + [partitiondb="$withval"], + [partitiondb=no]) + AC_MSG_CHECKING([for partition]) + + case "$partitiondb" in + yes ) + AC_DEFINE([HAVE_PARTITION_DB], [1], [Builds Partition DB]) + AC_MSG_RESULT([yes]) + [partitiondb=yes] + ;; + * ) + AC_MSG_RESULT([no]) + [partitiondb=no] + ;; + esac + +]) +dnl --------------------------------------------------------------------------- +dnl END OF MYSQL_CHECK_PARTITION SECTION +dnl --------------------------------------------------------------------------- + |