You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by tr...@apache.org on 2009/06/01 23:42:42 UTC

svn commit: r780844 - in /qpid/trunk/qpid/cpp: INSTALL configure.ac

Author: tross
Date: Mon Jun  1 21:42:42 2009
New Revision: 780844

URL: http://svn.apache.org/viewvc?rev=780844&view=rev
Log:
QPID-1874 - Add check for "swig" program in configure.ac.  Mention in cpp/INSTALL.

Modified:
    qpid/trunk/qpid/cpp/INSTALL
    qpid/trunk/qpid/cpp/configure.ac

Modified: qpid/trunk/qpid/cpp/INSTALL
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/INSTALL?rev=780844&r1=780843&r2=780844&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/INSTALL (original)
+++ qpid/trunk/qpid/cpp/INSTALL Mon Jun  1 21:42:42 2009
@@ -84,6 +84,13 @@
 
 NOTE: make sure to install the related '-devel' packages also!
 
+To build the QMF (Qpid Management Framework) bindings for Ruby and Python,
+the following must also be installed:
+
+ * ruby-devel
+ * python-devel
+ * swig       <http://www.swig.org>                     (1.3.35)
+
 
 2.2. How to Install
 ===================

Modified: qpid/trunk/qpid/cpp/configure.ac
URL: http://svn.apache.org/viewvc/qpid/trunk/qpid/cpp/configure.ac?rev=780844&r1=780843&r2=780844&view=diff
==============================================================================
--- qpid/trunk/qpid/cpp/configure.ac (original)
+++ qpid/trunk/qpid/cpp/configure.ac Mon Jun  1 21:42:42 2009
@@ -149,6 +149,10 @@
 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 @@
    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 @@
     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  



---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:commits-subscribe@qpid.apache.org