summaryrefslogtreecommitdiff
path: root/acinclude.m4
diff options
context:
space:
mode:
authorunknown <magnus@neptunus.(none)>2004-04-14 17:17:51 +0200
committerunknown <magnus@neptunus.(none)>2004-04-14 17:17:51 +0200
commit501392277e0150685ed6dd49c29efe5f41c6a287 (patch)
tree71565999bd020599fa9df4c02b3e9825a85b10c0 /acinclude.m4
parentf6686a6e76a6aaa59744769ca1df1b41ff92b34e (diff)
downloadmariadb-git-501392277e0150685ed6dd49c29efe5f41c6a287.tar.gz
Check if NDB should be built to to support MySQL Cluster
acconfig.h: Clear variable that defines if NDB Cluster should be supported acinclude.m4: Check for NDB Cluster included in the build configure.in: Check if NDB Cluster should be supported
Diffstat (limited to 'acinclude.m4')
-rw-r--r--acinclude.m441
1 files changed, 41 insertions, 0 deletions
diff --git a/acinclude.m4 b/acinclude.m4
index 2eb45b2e8ce..a67273f3ed8 100644
--- a/acinclude.m4
+++ b/acinclude.m4
@@ -1302,6 +1302,47 @@ dnl ---------------------------------------------------------------------------
dnl END OF MYSQL_CHECK_INNODB SECTION
dnl ---------------------------------------------------------------------------
+dnl ---------------------------------------------------------------------------
+dnl Macro: MYSQL_CHECK_NDBCLUSTER
+dnl Sets HAVE_NDBCLUSTER_DB if --with-ndbcluster is used
+dnl ---------------------------------------------------------------------------
+
+AC_DEFUN([MYSQL_CHECK_NDBCLUSTER], [
+ AC_ARG_WITH([ndbcluster],
+ [
+ --with-ndbcluster Include the NDB Cluster table handler],
+ [ndbcluster="$withval"],
+ [ndbcluster=no])
+
+ AC_MSG_CHECKING([for NDB Cluster])
+
+ have_ndbcluster=no
+ ndbcluster_includes=
+ ndbcluster_libs=
+ case "$ndbcluster" in
+ yes )
+ AC_MSG_RESULT([Using NDB Cluster])
+ AC_DEFINE(HAVE_NDBCLUSTER_DB)
+ have_ndbcluster="yes"
+ ndbcluster_includes="-I../ndb/include -I../ndb/include/ndbapi"
+ ndbcluster_libs="\$(top_builddir)/ndb/lib/libNDB_API.a"
+ ndbcluster_system_libs=""
+ ;;
+ * )
+ AC_MSG_RESULT([Not using NDB Cluster])
+ ;;
+ esac
+
+ AC_SUBST(ndbcluster_includes)
+ AC_SUBST(ndbcluster_libs)
+ AC_SUBST(ndbcluster_system_libs)
+])
+
+dnl ---------------------------------------------------------------------------
+dnl END OF MYSQL_CHECK_NDBCLUSTER SECTION
+dnl ---------------------------------------------------------------------------
+
+
dnl By default, many hosts won't let programs access large files;
dnl one must use special compiler options to get large-file access to work.
dnl For more details about this brain damage please see: