THRIFT-175. Specs in Ruby library should be run during make check

This patch makes 'make check' run 'rake spec' in the appropriate scenarios. There is still another bug that will break the build though.



git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@762838 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/configure.ac b/configure.ac
index f512871..b4c50b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -95,8 +95,11 @@
 AX_THRIFT_LIB(ruby, [Ruby], yes)
 if test "$with_ruby" = "yes"; then
   AC_PATH_PROG([RUBY], [ruby])
+  AC_PATH_PROG([RSPEC], [spec])
 fi
 AM_CONDITIONAL(WITH_RUBY, [test -n "$RUBY"])
+AM_CONDITIONAL(HAVE_RSPEC, [test -n "$RSPEC"])
+
 
 AC_C_CONST
 AC_C_INLINE