summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2012-09-18 11:00:14 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2012-09-18 11:00:14 +1000
commitc31366b3335b907a7aa7fd429ab46f61079627b1 (patch)
treed690f2ad6c84f825c502a76693986b5dd9ecb916
parentf83d18e49f82937f6d0f68fc9b0ac78d1158c4ad (diff)
downloadmongo-c31366b3335b907a7aa7fd429ab46f61079627b1.tar.gz
Check that SWIG has Python support enabled.
-rw-r--r--build_posix/configure.ac.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/build_posix/configure.ac.in b/build_posix/configure.ac.in
index 8c5436ded23..8443bd54fc7 100644
--- a/build_posix/configure.ac.in
+++ b/build_posix/configure.ac.in
@@ -55,6 +55,10 @@ if test "$wt_cv_enable_python" = "yes"; then
AM_PATH_PYTHON([2.6])
AX_PKG_SWIG(2.0.4, [],
[ AC_MSG_ERROR([SWIG is required to build Python support.]) ])
+ touch swigtest.i
+ $SWIG -python -module swigtest swigtest.i > /dev/null 2>&1 || \
+ AC_MSG_ERROR([$SWIG does not include Python support.])
+ rm -f swigtest*
fi
AM_TYPES