From a5762d31398650fb8f914a19d94553d1139c9672 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Fri, 22 Jun 2012 09:45:06 +0100 Subject: ruby: Fix libruby test. If -lruby was not available, this used to define HAVE_LIBRUBY=0. However this meant that the later test -n "$HAVE_LIBRUBY" would be successful, whereas it should fail in this case. (cherry picked from commit 823ba05ebd8f1a12574a3f154aaf7c8b4f2aeeac) --- configure.ac | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 5f596017..8ad5374c 100644 --- a/configure.ac +++ b/configure.ac @@ -1017,11 +1017,10 @@ AC_ARG_ENABLE([ruby], AS_HELP_STRING([--disable-ruby], [Disable Ruby language bindings]), [], [enable_ruby=yes]) -AS_IF([test "x$enable_ruby" != "xno"], - [ +AS_IF([test "x$enable_ruby" != "xno"],[ AC_CHECK_PROG([RUBY],[ruby],[ruby],[no]) AC_CHECK_PROG([RAKE],[rake],[rake],[no]) - AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=0]) + AC_CHECK_LIB([ruby],[ruby_init],[HAVE_LIBRUBY=1],[HAVE_LIBRUBY=]) AC_SUBST([RAKE]) ]) AM_CONDITIONAL([HAVE_RUBY], -- cgit