summaryrefslogtreecommitdiffstats
path: root/korundum
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-09-18 11:53:05 -0500
committerSlávek Banko <slavek.banko@axis.cz>2012-10-13 20:22:45 +0200
commit208e2511add30d440be7f0690408d3bfe0ec79af (patch)
tree70d09de3829a8195bb7a3cf4b57968b77a5f2f53 /korundum
parent591ffa4e6b4a99f792a674392f4f730d218de516 (diff)
downloadtdebindings-208e2511add30d440be7f0690408d3bfe0ec79af.tar.gz
tdebindings-208e2511add30d440be7f0690408d3bfe0ec79af.zip
Fall back to ruby-1.9 pkgconfig file if needed
(cherry picked from commit 2f6e9c735fe8486ee3484c47c0e8ff999b699abc)
Diffstat (limited to 'korundum')
-rw-r--r--korundum/rubylib/korundum/configure.in.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/korundum/rubylib/korundum/configure.in.in b/korundum/rubylib/korundum/configure.in.in
index e4ab2fdd..924f42f8 100644
--- a/korundum/rubylib/korundum/configure.in.in
+++ b/korundum/rubylib/korundum/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"@:>@)'`