summaryrefslogtreecommitdiff
path: root/win
diff options
context:
space:
mode:
authorJonathan Perkin <jperkin@sun.com>2009-09-30 15:46:51 +0100
committerJonathan Perkin <jperkin@sun.com>2009-09-30 15:46:51 +0100
commit16b41f1056138f79d1c5b2598d9aa787772f662d (patch)
tree11800585d31cc887ac601e24fa8e2cace4a902e1 /win
parentf4d20df9dcb2078cb8b0cc465bad4c541b7f2f38 (diff)
downloadmariadb-git-16b41f1056138f79d1c5b2598d9aa787772f662d.tar.gz
bug#27693: Windows compilation from bk fails using WITH_BERKELEY_STORAGE_ENGINE
Make configure.js bail with an error if trying to build bdb from a bzr tree.
Diffstat (limited to 'win')
-rwxr-xr-xwin/configure.js16
1 files changed, 15 insertions, 1 deletions
diff --git a/win/configure.js b/win/configure.js
index 8370497ea4b..54345522ab8 100755
--- a/win/configure.js
+++ b/win/configure.js
@@ -41,7 +41,6 @@ try
{
case "WITH_COMMUNITY_FEATURES":
case "WITH_ARCHIVE_STORAGE_ENGINE":
- case "WITH_BERKELEY_STORAGE_ENGINE":
case "WITH_BLACKHOLE_STORAGE_ENGINE":
case "WITH_EXAMPLE_STORAGE_ENGINE":
case "WITH_FEDERATED_STORAGE_ENGINE":
@@ -51,6 +50,21 @@ try
case "EMBED_MANIFESTS":
configfile.WriteLine("SET (" + args.Item(i) + " TRUE)");
break;
+ // BDB includes auto-generated files which are not handled by
+ // cmake, so only allow this option if building from a source
+ // distribution
+ case "WITH_BERKELEY_STORAGE_ENGINE":
+ if (!fso.FileExists("bdb\\btree\\btree_auto.c"))
+ {
+ BDBSourceError = new Error("BDB cannot be built directly" +
+ " from a bzr tree, see comment in bdb\\CMakeLists.txt");
+ throw BDBSourceError;
+ }
+ else
+ {
+ configfile.WriteLine("SET (" + args.Item(i) + " TRUE)");
+ break;
+ }
case "MYSQL_SERVER_SUFFIX":
case "MYSQLD_EXE_SUFFIX":
configfile.WriteLine("SET (" + parts[0] + " \""