summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorbrian@zim.(none) <>2005-03-25 13:43:42 -0800
committerbrian@zim.(none) <>2005-03-25 13:43:42 -0800
commit8e50a98e71b0751c89bc5ed146318eac387c37ce (patch)
treeea97e988fc603398a781792456bf05293c6f5023 /config
parent3d2554bcef6c94cccdfc5a12eaddd86b16de630c (diff)
downloadmariadb-git-8e50a98e71b0751c89bc5ed146318eac387c37ce.tar.gz
Adding rules for building blackhole, also updating test case.
Diffstat (limited to 'config')
-rw-r--r--config/ac-macros/ha_blackhole.m429
1 files changed, 29 insertions, 0 deletions
diff --git a/config/ac-macros/ha_blackhole.m4 b/config/ac-macros/ha_blackhole.m4
new file mode 100644
index 00000000000..cc4d360f5a8
--- /dev/null
+++ b/config/ac-macros/ha_blackhole.m4
@@ -0,0 +1,29 @@
+dnl ---------------------------------------------------------------------------
+dnl Macro: MYSQL_CHECK_BLACKHOLEDB
+dnl Sets HAVE_BLACKHOLE_DB if --with-blackhole-storage-engine is used
+dnl ---------------------------------------------------------------------------
+AC_DEFUN([MYSQL_CHECK_BLACKHOLEDB], [
+ AC_ARG_WITH([blackhole-storage-engine],
+ [
+ --with-blackhole-storage-engine
+ Enable the Blackhole Storage Engine],
+ [blackholedb="$withval"],
+ [blackholedb=no])
+ AC_MSG_CHECKING([for blackhole storage engine])
+
+ case "$blackholedb" in
+ yes )
+ AC_DEFINE([HAVE_BLACKHOLE_DB], [1], [Builds Blackhole Storage Engine])
+ AC_MSG_RESULT([yes])
+ [blackholedb=yes]
+ ;;
+ * )
+ AC_MSG_RESULT([no])
+ [blackholedb=no]
+ ;;
+ esac
+
+])
+dnl ---------------------------------------------------------------------------
+dnl END OF MYSQL_CHECK_BLACKHOLE SECTION
+dnl ---------------------------------------------------------------------------