X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=configure.ac;h=0df658807a570f6600a11587982828cb57d5824c;hb=refs%2Fheads%2Flibsigrok-0.4.x;hp=88424a8b6f956a4d9712a0a27a74ec4105d57e4d;hpb=e469259a577069529e60c9741f098a0c5c56f813;p=libsigrok.git diff --git a/configure.ac b/configure.ac index 88424a8b..0df65880 100644 --- a/configure.ac +++ b/configure.ac @@ -67,7 +67,8 @@ SR_PKG_VERSION_SET([SR_PACKAGE_VERSION], [AC_PACKAGE_VERSION]) # Carefully read the libtool docs before updating these numbers! # The algorithm for determining which number to change (and how) is nontrivial! # http://www.gnu.org/software/libtool/manual/libtool.html#Updating-version-info -SR_LIB_VERSION_SET([SR_LIB_VERSION], [2:0:0]) +# Format: current:revision:age. +SR_LIB_VERSION_SET([SR_LIB_VERSION], [3:0:0]) AM_CONDITIONAL([WIN32], [test -z "${host_os##mingw*}" || test -z "${host_os##cygwin*}"]) @@ -403,10 +404,16 @@ AS_IF([test "x$BINDINGS_CXX" = xyes], [sr_ruby_missing=], [sr_ruby_missing='C++ bindings']) -AX_RUBY_EXT +AC_PATH_PROGS(RUBY, ["${RUBY-ruby}"], []) +AS_IF([test "x$RUBY" != x], + AC_MSG_CHECKING([for Ruby version]) + [RUBY_VERSION=`$RUBY -e 'puts RUBY_VERSION'`] + AC_MSG_RESULT([$RUBY_VERSION]) + [RUBY_DLEXT=`$RUBY -rrbconfig -e 'puts RbConfig::CONFIG[["DLEXT"]]'`] + AC_SUBST(RUBY_DLEXT)) AS_IF([test "x$RUBY" = x], - [SR_APPEND([sr_ruby_missing], [', '], ['Ruby'])]) + [SR_APPEND([sr_ruby_missing], [', '], [Ruby])]) # Extract major and minor version number of the Ruby interpreter. sr_rbmajor=${RUBY_VERSION%%.*} @@ -430,7 +437,6 @@ AS_IF([test "x$SWIG" = x], AS_IF([test -z "$sr_ruby_missing"], [BINDINGS_RUBY=$enable_ruby], [BINDINGS_RUBY=no]) AM_CONDITIONAL([BINDINGS_RUBY], [test "x$BINDINGS_RUBY" = xyes]) -# AC_SUBST(RUBY_EXT_DLEXT, $RUBY_EXT_DLEXT) #################### ## Java bindings ##