summaryrefslogtreecommitdiff
path: root/qpid/cpp
diff options
context:
space:
mode:
authorAndrew Stitcher <astitcher@apache.org>2009-11-30 18:55:13 +0000
committerAndrew Stitcher <astitcher@apache.org>2009-11-30 18:55:13 +0000
commitf4b13c8d16754f29a331fe7ec2c7e1bc7995c524 (patch)
tree9b122d6e0385f63e91434580e7b7a7ad88151a3f /qpid/cpp
parente1574fe486743fe0c162d5c4b9825cbfc116ee63 (diff)
downloadqpid-python-f4b13c8d16754f29a331fe7ec2c7e1bc7995c524.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@885536 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp')
-rw-r--r--qpid/cpp/configure.ac3
1 files changed, 1 insertions, 2 deletions
diff --git a/qpid/cpp/configure.ac b/qpid/cpp/configure.ac
index 98ebe37364..859e849130 100644
--- a/qpid/cpp/configure.ac
+++ b/qpid/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