summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2009-06-03 13:08:35 +0000
committerGordon Sim <gsim@apache.org>2009-06-03 13:08:35 +0000
commit69ab06fde895f73def7084faaae320d95cba86de (patch)
treed843850421f7d50cfd7ee7aed9f0218486d2dc93 /cpp
parent6c6ab59c8ce6b9beee45e7171a5eaa6a50c0e65a (diff)
downloadqpid-python-69ab06fde895f73def7084faaae320d95cba86de.tar.gz
Allow conrol at configure time over generation of qmf bindings via swig (--with-swig/--without-swig)
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@781358 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r--cpp/configure.ac7
1 files changed, 7 insertions, 0 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac
index 408faf99b3..054ebb16f1 100644
--- a/cpp/configure.ac
+++ b/cpp/configure.ac
@@ -151,6 +151,13 @@ test -z "$RUBY" && AC_MSG_ERROR([Missing ruby installation (try "yum install rub
# Swig binding generator is needed for the script (Ruby, Python, etc.) bindings.
AC_CHECK_PROG([SWIG], [swig], [swig])
+AC_ARG_WITH([swig],
+ [AS_HELP_STRING([--with-swig], [Use swig to generate qmf bindings.])],
+ [case "$withval" in
+ yes) test -z "$SWIG" && AC_MSG_ERROR([swig not found.]) ;;
+ no) SWIG="" ;;
+ *) AC_MSG_ERROR([Bad value ${withval} for --with-swig.]) ;;
+ esac])
AM_CONDITIONAL([HAVE_SWIG], [test -n "$SWIG"])
# Ruby bindings: To build ruby wrappers, the ruby-devel files must be present.