summaryrefslogtreecommitdiffstats
path: root/qtruby
diff options
context:
space:
mode:
authorFrancois Andriot <[email protected]>2013-08-25 15:50:36 +0200
committerSlávek Banko <[email protected]>2013-08-25 15:51:15 +0200
commitdcb2a2fbc7235fff7757f1e7af661db9cdd21afd (patch)
tree7765a1c5a54e024406debd1cc2e445d759638b76 /qtruby
parent03f7d427741642bc80d1174c6af6e826d6315e09 (diff)
downloadtdebindings-dcb2a2fbc7235fff7757f1e7af661db9cdd21afd.tar.gz
tdebindings-dcb2a2fbc7235fff7757f1e7af661db9cdd21afd.zip
Fix libtool refuses to install in RUBY directory
Diffstat (limited to 'qtruby')
-rw-r--r--qtruby/rubylib/qtruby/configure.in.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/qtruby/rubylib/qtruby/configure.in.in b/qtruby/rubylib/qtruby/configure.in.in
index f42716c4..09795d6e 100644
--- a/qtruby/rubylib/qtruby/configure.in.in
+++ b/qtruby/rubylib/qtruby/configure.in.in
@@ -54,6 +54,13 @@ else
RUBY_INCLUDEDIR=$RUBY_ARCHDIR
RUBY_LIBRUBYARG=`$RUBY -r rbconfig -e 'printf("%s",Config::CONFIG@<:@"LIBRUBYARG_SHARED"@:>@)'`
fi
+
+ # Removes trailing slashes, if any, to avoid fail to install with recent libtool.
+ RUBY_ARCHDIR=${RUBY_ARCHDIR%/}
+ RUBY_SITEDIR=${RUBY_SITEDIR%/}
+ RUBY_LIBDIR=${RUBY_LIBDIR%/}
+ RUBY_RUBYLIBDIR=${RUBY_RUBYLIBDIR%/}
+
AC_MSG_RESULT([
archdir $RUBY_ARCHDIR,
sitearchdir $RUBY_SITEARCHDIR,