summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-12-26 21:55:53 +0100
committerSébastien Helleu <flashcode@flashtux.org>2017-12-26 21:55:53 +0100
commit4a4424442292465490389093b8d1f2460a7eb855 (patch)
treebbb2a2badb4bfc47b61bae2d7a40680e9b558594
parente1e549b37e1976ed35dc8bdad6575e9211c69bc8 (diff)
downloadweechat-4a4424442292465490389093b8d1f2460a7eb855.zip
core: add detection of Ruby 2.5 in autotools (issue #1122)
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 471271746..3ad16dd47 100644
--- a/configure.ac
+++ b/configure.ac
@@ -611,7 +611,7 @@ RUBY_VERSION=
if test "x$enable_ruby" = "xyes" ; then
RUBY_CFLAGS=""
RUBY_LFLAGS=""
- for v in "2.3" "2.2" "2.1" "2.0" "1.9" "1.8" ; do
+ for v in "2.5" "2.4" "2.3" "2.2" "2.1" "2.0" "1.9" "1.8" ; do
pkgconfig_ruby_found=`$PKGCONFIG --exists ruby-$v 2>/dev/null`
if test "x$?" = "x0" ; then
RUBY_VERSION=`$PKGCONFIG --modversion ruby-$v`
@@ -621,6 +621,7 @@ if test "x$enable_ruby" = "xyes" ; then
fi
done
+ # detect old Ruby versions
if test "x$RUBY_CFLAGS" = "x" -o "x$RUBY_LFLAGS" = "x" ; then
AC_PATH_PROGS(RUBY, ruby1.9.3 ruby1.9.2 ruby1.9.1 ruby1.9 ruby1.8 ruby)
if test -z $RUBY ; then