summaryrefslogtreecommitdiffstats
path: root/qtruby/rubylib/qtruby
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-18 11:53:05 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-18 11:53:05 -0500
commit2f6e9c735fe8486ee3484c47c0e8ff999b699abc (patch)
tree4985104713149532bab3bf1d9cd4dea594b1595c /qtruby/rubylib/qtruby
parent0828cbd00ed9bc7743e2ffae5f9954b58317fa83 (diff)
downloadtdebindings-2f6e9c735fe8486ee3484c47c0e8ff999b699abc.tar.gz
tdebindings-2f6e9c735fe8486ee3484c47c0e8ff999b699abc.zip
Fall back to ruby-1.9 pkgconfig file if needed
Diffstat (limited to 'qtruby/rubylib/qtruby')
-rw-r--r--qtruby/rubylib/qtruby/configure.in.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/qtruby/rubylib/qtruby/configure.in.in b/qtruby/rubylib/qtruby/configure.in.in
index 7ad0e4d4..e7f4f2c9 100644
--- a/qtruby/rubylib/qtruby/configure.in.in
+++ b/qtruby/rubylib/qtruby/configure.in.in
@@ -10,6 +10,9 @@ else
AC_MSG_CHECKING(for ruby dirs)
if test -n "$PKGCONFIG"; then
RUBY_VERSION=`$PKGCONFIG ruby --modversion 2>/dev/null`
+ if test -z "$RUBY_VERSION"; then
+ RUBY_VERSION=`$PKGCONFIG ruby-1.9 --modversion 2>/dev/null`
+ fi
if test -n "$RUBY_VERSION"; then
RUBY_ARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG@<:@"archdir"@:>@)'`
RUBY_SITEARCHDIR=`$RUBY -r rbconfig -e 'printf("%s",RbConfig::CONFIG@<:@"sitearchdir"@:>@)'`