diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-06-22 09:45:06 +0100 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-06-28 09:09:10 +0100 |
commit | a5762d31398650fb8f914a19d94553d1139c9672 (patch) | |
tree | 506c0932d871c9f72416f1e8e936d7d7ccaf6379 | |
parent | 7e37bcfa2670cda780fc76b1456f26b0c2a1408c (diff) | |
download | libguestfs-a5762d31398650fb8f914a19d94553d1139c9672.tar.gz libguestfs-a5762d31398650fb8f914a19d94553d1139c9672.tar.xz libguestfs-a5762d31398650fb8f914a19d94553d1139c9672.zip |
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)
-rw-r--r-- | configure.ac | 5 |
1 files 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], |