diff options
author | Ted Ross <tross@apache.org> | 2009-06-01 21:42:42 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-06-01 21:42:42 +0000 |
commit | 20a83ba3acd18fffdf20785ef8c39fb6c1997143 (patch) | |
tree | 3cc104cb2f04490b65ebc41baeaeade70cc07006 /cpp/configure.ac | |
parent | d30c482b6a5070c5fcd97291c901ddcde77f351f (diff) | |
download | qpid-python-20a83ba3acd18fffdf20785ef8c39fb6c1997143.tar.gz |
QPID-1874 - Add check for "swig" program in configure.ac. Mention in cpp/INSTALL.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@780844 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/configure.ac')
-rw-r--r-- | cpp/configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac index 53de8828fb..408faf99b3 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -149,6 +149,10 @@ AC_CHECK_PROG([RUBY], [ruby], [ruby]) test -n "$RUBY" && generate=yes test -z "$RUBY" && AC_MSG_ERROR([Missing ruby installation (try "yum install ruby").]) +# Swig binding generator is needed for the script (Ruby, Python, etc.) bindings. +AC_CHECK_PROG([SWIG], [swig], [swig]) +AM_CONDITIONAL([HAVE_SWIG], [test -n "$SWIG"]) + # Ruby bindings: To build ruby wrappers, the ruby-devel files must be present. AC_PATH_PROGS(RUBY, [ruby1.8 ruby], []) @@ -190,7 +194,7 @@ if test -n "$RUBY" ; then RUBY_DLEXT=`$RUBY -rrbconfig -e 'puts Config::CONFIG[["DLEXT"]]'` AC_SUBST(RUBY_DLEXT) fi -AM_CONDITIONAL([HAVE_RUBY_DEVEL], [test -f $RUBY_INC/ruby.h]) +AM_CONDITIONAL([HAVE_RUBY_DEVEL], [test -f $RUBY_INC/ruby.h && test -n "$SWIG"]) # Python bindings: To build python wrappers, the ruby-devel files must be present. @@ -220,7 +224,7 @@ if test -n "$PYTHON" ; then AC_SUBST(PYTHON_LIBS) AC_MSG_RESULT([$PYTHON_LIBS]) fi -AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test -f $PYTHON_INC/Python.h]) +AM_CONDITIONAL([HAVE_PYTHON_DEVEL], [test -f $PYTHON_INC/Python.h && test -n "$SWIG"]) specdir=`pwd`/$srcdir/../specs |