diff options
author | Andrew Stitcher <astitcher@apache.org> | 2009-11-30 18:55:13 +0000 |
---|---|---|
committer | Andrew Stitcher <astitcher@apache.org> | 2009-11-30 18:55:13 +0000 |
commit | d3e2aeef6229259be003071988706c934677ff43 (patch) | |
tree | c354446e9ead174e5f9c2d04281ee26e6b3f4d52 /cpp | |
parent | dd297f92d257c8d6487d5af9d29228db2fb68519 (diff) | |
download | qpid-python-d3e2aeef6229259be003071988706c934677ff43.tar.gz |
Rearranged chack for ruby so that we only need ruby if we need to generate code
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@885536 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/configure.ac | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cpp/configure.ac b/cpp/configure.ac index 98ebe37364..859e849130 100644 --- a/cpp/configure.ac +++ b/cpp/configure.ac @@ -146,8 +146,6 @@ AM_CONDITIONAL([HAS_RPMLINT], [test -n "$RPMLINT"]) # It requires several external tools and files, which we check for here. 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_PROG_SWIG(1.3.26) @@ -239,6 +237,7 @@ specdir=`pwd`/$srcdir/../specs AMQP_FINAL_XML=$specdir/amqp.0-10-qpid-errata.xml AC_SUBST(AMQP_FINAL_XML) AM_CONDITIONAL([GENERATE], [test -f $AMQP_FINAL_XML]) +test -f $AMQP_FINAL_XML -a -z "$RUBY" && AC_MSG_ERROR([Missing ruby installation (try "yum install ruby").]) # URL and download URL for the package. URL=http://rhm.et.redhat.com/qpidc |