From 4eabb309b98fd80e91542d3149375e374412b623 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Fri, 1 Jan 2016 20:04:33 +0100 Subject: [PATCH] Add ruby 2.2 detection MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- lib/kross/configure.in.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/kross/configure.in.in b/lib/kross/configure.in.in index 19c438ecb..a1aba27c3 100644 --- a/lib/kross/configure.in.in +++ b/lib/kross/configure.in.in @@ -35,6 +35,12 @@ if test "x$compile_kross" = "xyes" ; then if test -n "$RUBY_VERSION"; then RUBY_CFLAGS=`$PKGCONFIG ruby --cflags` fi + if test -z "$RUBY_VERSION"; then + RUBY_VERSION=`$PKGCONFIG ruby-2.2 --modversion 2>/dev/null` + if test -n "$RUBY_VERSION"; then + RUBY_CFLAGS=`$PKGCONFIG ruby-2.2 --cflags` + fi + fi if test -z "$RUBY_VERSION"; then RUBY_VERSION=`$PKGCONFIG ruby-2.1 --modversion 2>/dev/null` if test -n "$RUBY_VERSION"; then